drizzle-kit 0.22.7-d639166 → 0.22.7-fbc7b5c

Sign up to get free protection for your applications and to get access to all the features.
package/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { ConnectionOptions } from 'tls';
2
2
 
3
+ type Prefix = "index" | "timestamp" | "supabase" | "unix" | "none";
3
4
  type Driver = "turso" | "d1-http" | "expo" | "aws-data-api";
4
5
 
5
6
  type Dialect = "postgresql" | "mysql" | "sqlite";
@@ -121,6 +122,7 @@ type Config = {
121
122
  migrations?: {
122
123
  table?: string;
123
124
  schema?: string;
125
+ prefix?: Prefix;
124
126
  };
125
127
  introspect?: {
126
128
  casing: "camel" | "preserve";
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { ConnectionOptions } from 'tls';
2
2
 
3
+ type Prefix = "index" | "timestamp" | "supabase" | "unix" | "none";
3
4
  type Driver = "turso" | "d1-http" | "expo" | "aws-data-api";
4
5
 
5
6
  type Dialect = "postgresql" | "mysql" | "sqlite";
@@ -121,6 +122,7 @@ type Config = {
121
122
  migrations?: {
122
123
  table?: string;
123
124
  schema?: string;
125
+ prefix?: Prefix;
124
126
  };
125
127
  introspect?: {
126
128
  casing: "camel" | "preserve";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.22.7-d639166",
3
+ "version": "0.22.7-fbc7b5c",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
package/payload.d.mts CHANGED
@@ -360,7 +360,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
360
360
  schema: string;
361
361
  }>>;
362
362
  schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
363
- sequences: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
363
+ sequences: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
364
364
  name: zod.ZodString;
365
365
  increment: zod.ZodOptional<zod.ZodString>;
366
366
  minValue: zod.ZodOptional<zod.ZodString>;
@@ -387,7 +387,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
387
387
  startWith?: string | undefined;
388
388
  cache?: string | undefined;
389
389
  cycle?: boolean | undefined;
390
- }>>;
390
+ }>>>;
391
391
  _meta: zod.ZodObject<{
392
392
  schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
393
393
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -628,16 +628,6 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
628
628
  values: string[];
629
629
  schema: string;
630
630
  }>;
631
- sequences: Record<string, {
632
- name: string;
633
- schema: string;
634
- increment?: string | undefined;
635
- minValue?: string | undefined;
636
- maxValue?: string | undefined;
637
- startWith?: string | undefined;
638
- cache?: string | undefined;
639
- cycle?: boolean | undefined;
640
- }>;
641
631
  internal?: {
642
632
  tables: Record<string, {
643
633
  columns: Record<string, {
@@ -647,6 +637,16 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
647
637
  } | undefined>;
648
638
  } | undefined>;
649
639
  } | undefined;
640
+ sequences?: Record<string, {
641
+ name: string;
642
+ schema: string;
643
+ increment?: string | undefined;
644
+ minValue?: string | undefined;
645
+ maxValue?: string | undefined;
646
+ startWith?: string | undefined;
647
+ cache?: string | undefined;
648
+ cycle?: boolean | undefined;
649
+ }> | undefined;
650
650
  }>;
651
651
  type PgSchema = TypeOf<typeof pgSchema>;
652
652
 
@@ -1050,14 +1050,14 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1050
1050
  isUnique: boolean;
1051
1051
  using?: "btree" | "hash" | undefined;
1052
1052
  algorithm?: "default" | "inplace" | "copy" | undefined;
1053
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1053
+ lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1054
1054
  }, {
1055
1055
  name: string;
1056
1056
  columns: string[];
1057
1057
  isUnique: boolean;
1058
1058
  using?: "btree" | "hash" | undefined;
1059
1059
  algorithm?: "default" | "inplace" | "copy" | undefined;
1060
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1060
+ lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1061
1061
  }>>;
1062
1062
  foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1063
1063
  name: zod.ZodString;
@@ -1125,7 +1125,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1125
1125
  isUnique: boolean;
1126
1126
  using?: "btree" | "hash" | undefined;
1127
1127
  algorithm?: "default" | "inplace" | "copy" | undefined;
1128
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1128
+ lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1129
1129
  }>;
1130
1130
  foreignKeys: Record<string, {
1131
1131
  name: string;
@@ -1165,7 +1165,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1165
1165
  isUnique: boolean;
1166
1166
  using?: "btree" | "hash" | undefined;
1167
1167
  algorithm?: "default" | "inplace" | "copy" | undefined;
1168
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1168
+ lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1169
1169
  }>;
1170
1170
  foreignKeys: Record<string, {
1171
1171
  name: string;
@@ -1278,7 +1278,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1278
1278
  isUnique: boolean;
1279
1279
  using?: "btree" | "hash" | undefined;
1280
1280
  algorithm?: "default" | "inplace" | "copy" | undefined;
1281
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1281
+ lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1282
1282
  }>;
1283
1283
  foreignKeys: Record<string, {
1284
1284
  name: string;
@@ -1340,7 +1340,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1340
1340
  isUnique: boolean;
1341
1341
  using?: "btree" | "hash" | undefined;
1342
1342
  algorithm?: "default" | "inplace" | "copy" | undefined;
1343
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1343
+ lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1344
1344
  }>;
1345
1345
  foreignKeys: Record<string, {
1346
1346
  name: string;
package/payload.d.ts CHANGED
@@ -360,7 +360,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
360
360
  schema: string;
361
361
  }>>;
362
362
  schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
363
- sequences: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
363
+ sequences: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
364
364
  name: zod.ZodString;
365
365
  increment: zod.ZodOptional<zod.ZodString>;
366
366
  minValue: zod.ZodOptional<zod.ZodString>;
@@ -387,7 +387,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
387
387
  startWith?: string | undefined;
388
388
  cache?: string | undefined;
389
389
  cycle?: boolean | undefined;
390
- }>>;
390
+ }>>>;
391
391
  _meta: zod.ZodObject<{
392
392
  schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
393
393
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -628,16 +628,6 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
628
628
  values: string[];
629
629
  schema: string;
630
630
  }>;
631
- sequences: Record<string, {
632
- name: string;
633
- schema: string;
634
- increment?: string | undefined;
635
- minValue?: string | undefined;
636
- maxValue?: string | undefined;
637
- startWith?: string | undefined;
638
- cache?: string | undefined;
639
- cycle?: boolean | undefined;
640
- }>;
641
631
  internal?: {
642
632
  tables: Record<string, {
643
633
  columns: Record<string, {
@@ -647,6 +637,16 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
647
637
  } | undefined>;
648
638
  } | undefined>;
649
639
  } | undefined;
640
+ sequences?: Record<string, {
641
+ name: string;
642
+ schema: string;
643
+ increment?: string | undefined;
644
+ minValue?: string | undefined;
645
+ maxValue?: string | undefined;
646
+ startWith?: string | undefined;
647
+ cache?: string | undefined;
648
+ cycle?: boolean | undefined;
649
+ }> | undefined;
650
650
  }>;
651
651
  type PgSchema = TypeOf<typeof pgSchema>;
652
652
 
@@ -1050,14 +1050,14 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1050
1050
  isUnique: boolean;
1051
1051
  using?: "btree" | "hash" | undefined;
1052
1052
  algorithm?: "default" | "inplace" | "copy" | undefined;
1053
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1053
+ lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1054
1054
  }, {
1055
1055
  name: string;
1056
1056
  columns: string[];
1057
1057
  isUnique: boolean;
1058
1058
  using?: "btree" | "hash" | undefined;
1059
1059
  algorithm?: "default" | "inplace" | "copy" | undefined;
1060
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1060
+ lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1061
1061
  }>>;
1062
1062
  foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1063
1063
  name: zod.ZodString;
@@ -1125,7 +1125,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1125
1125
  isUnique: boolean;
1126
1126
  using?: "btree" | "hash" | undefined;
1127
1127
  algorithm?: "default" | "inplace" | "copy" | undefined;
1128
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1128
+ lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1129
1129
  }>;
1130
1130
  foreignKeys: Record<string, {
1131
1131
  name: string;
@@ -1165,7 +1165,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1165
1165
  isUnique: boolean;
1166
1166
  using?: "btree" | "hash" | undefined;
1167
1167
  algorithm?: "default" | "inplace" | "copy" | undefined;
1168
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1168
+ lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1169
1169
  }>;
1170
1170
  foreignKeys: Record<string, {
1171
1171
  name: string;
@@ -1278,7 +1278,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1278
1278
  isUnique: boolean;
1279
1279
  using?: "btree" | "hash" | undefined;
1280
1280
  algorithm?: "default" | "inplace" | "copy" | undefined;
1281
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1281
+ lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1282
1282
  }>;
1283
1283
  foreignKeys: Record<string, {
1284
1284
  name: string;
@@ -1340,7 +1340,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1340
1340
  isUnique: boolean;
1341
1341
  using?: "btree" | "hash" | undefined;
1342
1342
  algorithm?: "default" | "inplace" | "copy" | undefined;
1343
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1343
+ lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1344
1344
  }>;
1345
1345
  foreignKeys: Record<string, {
1346
1346
  name: string;