drizzle-kit 0.20.17-ab24478 → 0.20.17-ae6e691
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +370 -447
- package/index.d.mts +0 -2
- package/index.d.ts +0 -2
- package/package.json +1 -1
- package/payload.d.mts +4 -69
- package/payload.d.ts +4 -69
- package/payload.js +419 -442
- package/payload.mjs +484 -500
- package/utils-studio.js +10 -26
- package/utils-studio.mjs +10 -26
- package/utils.js +9 -25
- package/utils.mjs +9 -25
package/index.d.mts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { SslOptions } from 'mysql2';
|
2
1
|
import * as zod from 'zod';
|
3
2
|
import { TypeOf } from 'zod';
|
4
3
|
|
@@ -65,7 +64,6 @@ type Config = {
|
|
65
64
|
user?: string;
|
66
65
|
password?: string;
|
67
66
|
database: string;
|
68
|
-
ssl?: string | SslOptions;
|
69
67
|
} | {
|
70
68
|
url: string;
|
71
69
|
};
|
package/index.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { SslOptions } from 'mysql2';
|
2
1
|
import * as zod from 'zod';
|
3
2
|
import { TypeOf } from 'zod';
|
4
3
|
|
@@ -65,7 +64,6 @@ type Config = {
|
|
65
64
|
user?: string;
|
66
65
|
password?: string;
|
67
66
|
database: string;
|
68
|
-
ssl?: string | SslOptions;
|
69
67
|
} | {
|
70
68
|
url: string;
|
71
69
|
};
|
package/package.json
CHANGED
package/payload.d.mts
CHANGED
@@ -389,7 +389,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
389
389
|
type PgSchema = TypeOf<typeof pgSchema>;
|
390
390
|
|
391
391
|
declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
392
|
-
version: zod.ZodLiteral<"
|
392
|
+
version: zod.ZodLiteral<"5">;
|
393
393
|
dialect: zod.ZodEnum<["sqlite"]>;
|
394
394
|
tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
395
395
|
name: zod.ZodString;
|
@@ -594,7 +594,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
594
594
|
}>;
|
595
595
|
id: string;
|
596
596
|
prevId: string;
|
597
|
-
version: "
|
597
|
+
version: "5";
|
598
598
|
dialect: "sqlite";
|
599
599
|
_meta: {
|
600
600
|
columns: Record<string, string>;
|
@@ -638,7 +638,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
638
638
|
}>;
|
639
639
|
id: string;
|
640
640
|
prevId: string;
|
641
|
-
version: "
|
641
|
+
version: "5";
|
642
642
|
dialect: "sqlite";
|
643
643
|
_meta: {
|
644
644
|
columns: Record<string, string>;
|
@@ -998,70 +998,5 @@ declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstanc
|
|
998
998
|
statementsToExecute: string[];
|
999
999
|
apply: () => Promise<void>;
|
1000
1000
|
}>;
|
1001
|
-
declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
1002
|
-
version: "6";
|
1003
|
-
dialect: "postgresql";
|
1004
|
-
tables: Record<string, {
|
1005
|
-
name: string;
|
1006
|
-
schema: string;
|
1007
|
-
columns: Record<string, {
|
1008
|
-
type: string;
|
1009
|
-
name: string;
|
1010
|
-
primaryKey: boolean;
|
1011
|
-
notNull: boolean;
|
1012
|
-
typeSchema?: string | undefined;
|
1013
|
-
default?: any;
|
1014
|
-
isUnique?: any;
|
1015
|
-
uniqueName?: string | undefined;
|
1016
|
-
nullsNotDistinct?: boolean | undefined;
|
1017
|
-
}>;
|
1018
|
-
indexes: Record<string, {
|
1019
|
-
name: string;
|
1020
|
-
columns: string[];
|
1021
|
-
isUnique: boolean;
|
1022
|
-
}>;
|
1023
|
-
foreignKeys: Record<string, {
|
1024
|
-
name: string;
|
1025
|
-
tableFrom: string;
|
1026
|
-
columnsFrom: string[];
|
1027
|
-
tableTo: string;
|
1028
|
-
columnsTo: string[];
|
1029
|
-
schemaTo?: string | undefined;
|
1030
|
-
onUpdate?: string | undefined;
|
1031
|
-
onDelete?: string | undefined;
|
1032
|
-
}>;
|
1033
|
-
compositePrimaryKeys: Record<string, {
|
1034
|
-
name: string;
|
1035
|
-
columns: string[];
|
1036
|
-
}>;
|
1037
|
-
uniqueConstraints: Record<string, {
|
1038
|
-
name: string;
|
1039
|
-
columns: string[];
|
1040
|
-
nullsNotDistinct: boolean;
|
1041
|
-
}>;
|
1042
|
-
}>;
|
1043
|
-
enums: Record<string, {
|
1044
|
-
values: string[];
|
1045
|
-
name: string;
|
1046
|
-
schema: string;
|
1047
|
-
}>;
|
1048
|
-
schemas: Record<string, string>;
|
1049
|
-
_meta: {
|
1050
|
-
tables: Record<string, string>;
|
1051
|
-
columns: Record<string, string>;
|
1052
|
-
schemas: Record<string, string>;
|
1053
|
-
};
|
1054
|
-
id: string;
|
1055
|
-
prevId: string;
|
1056
|
-
internal?: {
|
1057
|
-
tables: Record<string, {
|
1058
|
-
columns: Record<string, {
|
1059
|
-
isArray?: boolean | undefined;
|
1060
|
-
dimensions?: number | undefined;
|
1061
|
-
rawType?: string | undefined;
|
1062
|
-
} | undefined>;
|
1063
|
-
} | undefined>;
|
1064
|
-
} | undefined;
|
1065
|
-
};
|
1066
1001
|
|
1067
|
-
export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema
|
1002
|
+
export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema };
|
package/payload.d.ts
CHANGED
@@ -389,7 +389,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
389
389
|
type PgSchema = TypeOf<typeof pgSchema>;
|
390
390
|
|
391
391
|
declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
392
|
-
version: zod.ZodLiteral<"
|
392
|
+
version: zod.ZodLiteral<"5">;
|
393
393
|
dialect: zod.ZodEnum<["sqlite"]>;
|
394
394
|
tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
395
395
|
name: zod.ZodString;
|
@@ -594,7 +594,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
594
594
|
}>;
|
595
595
|
id: string;
|
596
596
|
prevId: string;
|
597
|
-
version: "
|
597
|
+
version: "5";
|
598
598
|
dialect: "sqlite";
|
599
599
|
_meta: {
|
600
600
|
columns: Record<string, string>;
|
@@ -638,7 +638,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
638
638
|
}>;
|
639
639
|
id: string;
|
640
640
|
prevId: string;
|
641
|
-
version: "
|
641
|
+
version: "5";
|
642
642
|
dialect: "sqlite";
|
643
643
|
_meta: {
|
644
644
|
columns: Record<string, string>;
|
@@ -998,70 +998,5 @@ declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstanc
|
|
998
998
|
statementsToExecute: string[];
|
999
999
|
apply: () => Promise<void>;
|
1000
1000
|
}>;
|
1001
|
-
declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
1002
|
-
version: "6";
|
1003
|
-
dialect: "postgresql";
|
1004
|
-
tables: Record<string, {
|
1005
|
-
name: string;
|
1006
|
-
schema: string;
|
1007
|
-
columns: Record<string, {
|
1008
|
-
type: string;
|
1009
|
-
name: string;
|
1010
|
-
primaryKey: boolean;
|
1011
|
-
notNull: boolean;
|
1012
|
-
typeSchema?: string | undefined;
|
1013
|
-
default?: any;
|
1014
|
-
isUnique?: any;
|
1015
|
-
uniqueName?: string | undefined;
|
1016
|
-
nullsNotDistinct?: boolean | undefined;
|
1017
|
-
}>;
|
1018
|
-
indexes: Record<string, {
|
1019
|
-
name: string;
|
1020
|
-
columns: string[];
|
1021
|
-
isUnique: boolean;
|
1022
|
-
}>;
|
1023
|
-
foreignKeys: Record<string, {
|
1024
|
-
name: string;
|
1025
|
-
tableFrom: string;
|
1026
|
-
columnsFrom: string[];
|
1027
|
-
tableTo: string;
|
1028
|
-
columnsTo: string[];
|
1029
|
-
schemaTo?: string | undefined;
|
1030
|
-
onUpdate?: string | undefined;
|
1031
|
-
onDelete?: string | undefined;
|
1032
|
-
}>;
|
1033
|
-
compositePrimaryKeys: Record<string, {
|
1034
|
-
name: string;
|
1035
|
-
columns: string[];
|
1036
|
-
}>;
|
1037
|
-
uniqueConstraints: Record<string, {
|
1038
|
-
name: string;
|
1039
|
-
columns: string[];
|
1040
|
-
nullsNotDistinct: boolean;
|
1041
|
-
}>;
|
1042
|
-
}>;
|
1043
|
-
enums: Record<string, {
|
1044
|
-
values: string[];
|
1045
|
-
name: string;
|
1046
|
-
schema: string;
|
1047
|
-
}>;
|
1048
|
-
schemas: Record<string, string>;
|
1049
|
-
_meta: {
|
1050
|
-
tables: Record<string, string>;
|
1051
|
-
columns: Record<string, string>;
|
1052
|
-
schemas: Record<string, string>;
|
1053
|
-
};
|
1054
|
-
id: string;
|
1055
|
-
prevId: string;
|
1056
|
-
internal?: {
|
1057
|
-
tables: Record<string, {
|
1058
|
-
columns: Record<string, {
|
1059
|
-
isArray?: boolean | undefined;
|
1060
|
-
dimensions?: number | undefined;
|
1061
|
-
rawType?: string | undefined;
|
1062
|
-
} | undefined>;
|
1063
|
-
} | undefined>;
|
1064
|
-
} | undefined;
|
1065
|
-
};
|
1066
1001
|
|
1067
|
-
export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema
|
1002
|
+
export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema };
|