drizzle-kit 0.23.2 → 0.24.0-5df8253
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.d.mts +30 -4
- package/api.d.ts +30 -4
- package/api.js +252 -120
- package/api.mjs +252 -120
- package/bin.cjs +439 -251
- package/package.json +2 -1
- package/utils.js +7 -1
- package/utils.mjs +6 -1
package/api.d.mts
CHANGED
@@ -801,23 +801,28 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
801
801
|
isArray: zod.ZodOptional<zod.ZodBoolean>;
|
802
802
|
dimensions: zod.ZodOptional<zod.ZodNumber>;
|
803
803
|
rawType: zod.ZodOptional<zod.ZodString>;
|
804
|
+
isDefaultAnExpression: zod.ZodOptional<zod.ZodBoolean>;
|
804
805
|
}, "strip", zod.ZodTypeAny, {
|
806
|
+
isDefaultAnExpression?: boolean | undefined;
|
805
807
|
isArray?: boolean | undefined;
|
806
808
|
dimensions?: number | undefined;
|
807
809
|
rawType?: string | undefined;
|
808
810
|
}, {
|
811
|
+
isDefaultAnExpression?: boolean | undefined;
|
809
812
|
isArray?: boolean | undefined;
|
810
813
|
dimensions?: number | undefined;
|
811
814
|
rawType?: string | undefined;
|
812
815
|
}>>>;
|
813
816
|
}, "strip", zod.ZodTypeAny, {
|
814
817
|
columns: Record<string, {
|
818
|
+
isDefaultAnExpression?: boolean | undefined;
|
815
819
|
isArray?: boolean | undefined;
|
816
820
|
dimensions?: number | undefined;
|
817
821
|
rawType?: string | undefined;
|
818
822
|
} | undefined>;
|
819
823
|
}, {
|
820
824
|
columns: Record<string, {
|
825
|
+
isDefaultAnExpression?: boolean | undefined;
|
821
826
|
isArray?: boolean | undefined;
|
822
827
|
dimensions?: number | undefined;
|
823
828
|
rawType?: string | undefined;
|
@@ -826,6 +831,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
826
831
|
}, "strip", zod.ZodTypeAny, {
|
827
832
|
tables: Record<string, {
|
828
833
|
columns: Record<string, {
|
834
|
+
isDefaultAnExpression?: boolean | undefined;
|
829
835
|
isArray?: boolean | undefined;
|
830
836
|
dimensions?: number | undefined;
|
831
837
|
rawType?: string | undefined;
|
@@ -834,6 +840,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
834
840
|
}, {
|
835
841
|
tables: Record<string, {
|
836
842
|
columns: Record<string, {
|
843
|
+
isDefaultAnExpression?: boolean | undefined;
|
837
844
|
isArray?: boolean | undefined;
|
838
845
|
dimensions?: number | undefined;
|
839
846
|
rawType?: string | undefined;
|
@@ -936,6 +943,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
936
943
|
internal?: {
|
937
944
|
tables: Record<string, {
|
938
945
|
columns: Record<string, {
|
946
|
+
isDefaultAnExpression?: boolean | undefined;
|
939
947
|
isArray?: boolean | undefined;
|
940
948
|
dimensions?: number | undefined;
|
941
949
|
rawType?: string | undefined;
|
@@ -1025,6 +1033,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1025
1033
|
internal?: {
|
1026
1034
|
tables: Record<string, {
|
1027
1035
|
columns: Record<string, {
|
1036
|
+
isDefaultAnExpression?: boolean | undefined;
|
1028
1037
|
isArray?: boolean | undefined;
|
1029
1038
|
dimensions?: number | undefined;
|
1030
1039
|
rawType?: string | undefined;
|
@@ -1411,7 +1420,7 @@ declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstanc
|
|
1411
1420
|
apply: () => Promise<void>;
|
1412
1421
|
}>;
|
1413
1422
|
declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
1414
|
-
version: "
|
1423
|
+
version: "7";
|
1415
1424
|
dialect: "postgresql";
|
1416
1425
|
tables: Record<string, {
|
1417
1426
|
name: string;
|
@@ -1444,11 +1453,17 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1444
1453
|
}>;
|
1445
1454
|
indexes: Record<string, {
|
1446
1455
|
name: string;
|
1447
|
-
columns:
|
1456
|
+
columns: {
|
1457
|
+
expression: string;
|
1458
|
+
isExpression: boolean;
|
1459
|
+
asc: boolean;
|
1460
|
+
nulls?: string | undefined;
|
1461
|
+
opclass?: string | undefined;
|
1462
|
+
}[];
|
1448
1463
|
isUnique: boolean;
|
1449
1464
|
method: string;
|
1450
1465
|
concurrently: boolean;
|
1451
|
-
with?: Record<string,
|
1466
|
+
with?: Record<string, any> | undefined;
|
1452
1467
|
where?: string | undefined;
|
1453
1468
|
}>;
|
1454
1469
|
foreignKeys: Record<string, {
|
@@ -1477,6 +1492,16 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1477
1492
|
schema: string;
|
1478
1493
|
}>;
|
1479
1494
|
schemas: Record<string, string>;
|
1495
|
+
sequences: Record<string, {
|
1496
|
+
name: string;
|
1497
|
+
schema: string;
|
1498
|
+
increment?: string | undefined;
|
1499
|
+
minValue?: string | undefined;
|
1500
|
+
maxValue?: string | undefined;
|
1501
|
+
startWith?: string | undefined;
|
1502
|
+
cache?: string | undefined;
|
1503
|
+
cycle?: boolean | undefined;
|
1504
|
+
}>;
|
1480
1505
|
_meta: {
|
1481
1506
|
tables: Record<string, string>;
|
1482
1507
|
columns: Record<string, string>;
|
@@ -1490,9 +1515,10 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1490
1515
|
isArray?: boolean | undefined;
|
1491
1516
|
dimensions?: number | undefined;
|
1492
1517
|
rawType?: string | undefined;
|
1518
|
+
isDefaultAnExpression?: boolean | undefined;
|
1493
1519
|
} | undefined>;
|
1494
1520
|
} | undefined>;
|
1495
1521
|
} | undefined;
|
1496
|
-
}
|
1522
|
+
} | Record<string, unknown>;
|
1497
1523
|
|
1498
1524
|
export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema, upPgSnapshot };
|
package/api.d.ts
CHANGED
@@ -801,23 +801,28 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
801
801
|
isArray: zod.ZodOptional<zod.ZodBoolean>;
|
802
802
|
dimensions: zod.ZodOptional<zod.ZodNumber>;
|
803
803
|
rawType: zod.ZodOptional<zod.ZodString>;
|
804
|
+
isDefaultAnExpression: zod.ZodOptional<zod.ZodBoolean>;
|
804
805
|
}, "strip", zod.ZodTypeAny, {
|
806
|
+
isDefaultAnExpression?: boolean | undefined;
|
805
807
|
isArray?: boolean | undefined;
|
806
808
|
dimensions?: number | undefined;
|
807
809
|
rawType?: string | undefined;
|
808
810
|
}, {
|
811
|
+
isDefaultAnExpression?: boolean | undefined;
|
809
812
|
isArray?: boolean | undefined;
|
810
813
|
dimensions?: number | undefined;
|
811
814
|
rawType?: string | undefined;
|
812
815
|
}>>>;
|
813
816
|
}, "strip", zod.ZodTypeAny, {
|
814
817
|
columns: Record<string, {
|
818
|
+
isDefaultAnExpression?: boolean | undefined;
|
815
819
|
isArray?: boolean | undefined;
|
816
820
|
dimensions?: number | undefined;
|
817
821
|
rawType?: string | undefined;
|
818
822
|
} | undefined>;
|
819
823
|
}, {
|
820
824
|
columns: Record<string, {
|
825
|
+
isDefaultAnExpression?: boolean | undefined;
|
821
826
|
isArray?: boolean | undefined;
|
822
827
|
dimensions?: number | undefined;
|
823
828
|
rawType?: string | undefined;
|
@@ -826,6 +831,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
826
831
|
}, "strip", zod.ZodTypeAny, {
|
827
832
|
tables: Record<string, {
|
828
833
|
columns: Record<string, {
|
834
|
+
isDefaultAnExpression?: boolean | undefined;
|
829
835
|
isArray?: boolean | undefined;
|
830
836
|
dimensions?: number | undefined;
|
831
837
|
rawType?: string | undefined;
|
@@ -834,6 +840,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
834
840
|
}, {
|
835
841
|
tables: Record<string, {
|
836
842
|
columns: Record<string, {
|
843
|
+
isDefaultAnExpression?: boolean | undefined;
|
837
844
|
isArray?: boolean | undefined;
|
838
845
|
dimensions?: number | undefined;
|
839
846
|
rawType?: string | undefined;
|
@@ -936,6 +943,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
936
943
|
internal?: {
|
937
944
|
tables: Record<string, {
|
938
945
|
columns: Record<string, {
|
946
|
+
isDefaultAnExpression?: boolean | undefined;
|
939
947
|
isArray?: boolean | undefined;
|
940
948
|
dimensions?: number | undefined;
|
941
949
|
rawType?: string | undefined;
|
@@ -1025,6 +1033,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1025
1033
|
internal?: {
|
1026
1034
|
tables: Record<string, {
|
1027
1035
|
columns: Record<string, {
|
1036
|
+
isDefaultAnExpression?: boolean | undefined;
|
1028
1037
|
isArray?: boolean | undefined;
|
1029
1038
|
dimensions?: number | undefined;
|
1030
1039
|
rawType?: string | undefined;
|
@@ -1411,7 +1420,7 @@ declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstanc
|
|
1411
1420
|
apply: () => Promise<void>;
|
1412
1421
|
}>;
|
1413
1422
|
declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
1414
|
-
version: "
|
1423
|
+
version: "7";
|
1415
1424
|
dialect: "postgresql";
|
1416
1425
|
tables: Record<string, {
|
1417
1426
|
name: string;
|
@@ -1444,11 +1453,17 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1444
1453
|
}>;
|
1445
1454
|
indexes: Record<string, {
|
1446
1455
|
name: string;
|
1447
|
-
columns:
|
1456
|
+
columns: {
|
1457
|
+
expression: string;
|
1458
|
+
isExpression: boolean;
|
1459
|
+
asc: boolean;
|
1460
|
+
nulls?: string | undefined;
|
1461
|
+
opclass?: string | undefined;
|
1462
|
+
}[];
|
1448
1463
|
isUnique: boolean;
|
1449
1464
|
method: string;
|
1450
1465
|
concurrently: boolean;
|
1451
|
-
with?: Record<string,
|
1466
|
+
with?: Record<string, any> | undefined;
|
1452
1467
|
where?: string | undefined;
|
1453
1468
|
}>;
|
1454
1469
|
foreignKeys: Record<string, {
|
@@ -1477,6 +1492,16 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1477
1492
|
schema: string;
|
1478
1493
|
}>;
|
1479
1494
|
schemas: Record<string, string>;
|
1495
|
+
sequences: Record<string, {
|
1496
|
+
name: string;
|
1497
|
+
schema: string;
|
1498
|
+
increment?: string | undefined;
|
1499
|
+
minValue?: string | undefined;
|
1500
|
+
maxValue?: string | undefined;
|
1501
|
+
startWith?: string | undefined;
|
1502
|
+
cache?: string | undefined;
|
1503
|
+
cycle?: boolean | undefined;
|
1504
|
+
}>;
|
1480
1505
|
_meta: {
|
1481
1506
|
tables: Record<string, string>;
|
1482
1507
|
columns: Record<string, string>;
|
@@ -1490,9 +1515,10 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1490
1515
|
isArray?: boolean | undefined;
|
1491
1516
|
dimensions?: number | undefined;
|
1492
1517
|
rawType?: string | undefined;
|
1518
|
+
isDefaultAnExpression?: boolean | undefined;
|
1493
1519
|
} | undefined>;
|
1494
1520
|
} | undefined>;
|
1495
1521
|
} | undefined;
|
1496
|
-
}
|
1522
|
+
} | Record<string, unknown>;
|
1497
1523
|
|
1498
1524
|
export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema, upPgSnapshot };
|