drizzle-kit 1.0.0-beta.7-c32811f → 1.0.0-beta.7-4742eaf
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-mysql.js +3 -3
- package/api-mysql.mjs +3 -3
- package/api-postgres.d.mts +4 -1
- package/api-postgres.d.ts +4 -1
- package/api-postgres.js +24 -19
- package/api-postgres.mjs +24 -19
- package/api-sqlite.js +3 -3
- package/api-sqlite.mjs +3 -3
- package/bin.cjs +89 -113
- package/package.json +1 -1
package/api-mysql.js
CHANGED
|
@@ -17356,9 +17356,9 @@ var init_common3 = __esm({
|
|
|
17356
17356
|
postgresDriver = unionType(postgresqlDriversLiterals);
|
|
17357
17357
|
driver = unionType([sqliteDriver, postgresDriver]);
|
|
17358
17358
|
configMigrations = objectType({
|
|
17359
|
-
table: stringType().
|
|
17360
|
-
schema: stringType().
|
|
17361
|
-
}).
|
|
17359
|
+
table: stringType().default("__drizzle_migrations"),
|
|
17360
|
+
schema: stringType().default("drizzle")
|
|
17361
|
+
}).default({ table: "__drizzle_migrations", schema: "drizzle" });
|
|
17362
17362
|
configCommonSchema = objectType({
|
|
17363
17363
|
dialect: dialect3,
|
|
17364
17364
|
schema: unionType([stringType(), stringType().array()]).optional(),
|
package/api-mysql.mjs
CHANGED
|
@@ -17368,9 +17368,9 @@ var init_common3 = __esm({
|
|
|
17368
17368
|
postgresDriver = unionType(postgresqlDriversLiterals);
|
|
17369
17369
|
driver = unionType([sqliteDriver, postgresDriver]);
|
|
17370
17370
|
configMigrations = objectType({
|
|
17371
|
-
table: stringType().
|
|
17372
|
-
schema: stringType().
|
|
17373
|
-
}).
|
|
17371
|
+
table: stringType().default("__drizzle_migrations"),
|
|
17372
|
+
schema: stringType().default("drizzle")
|
|
17373
|
+
}).default({ table: "__drizzle_migrations", schema: "drizzle" });
|
|
17374
17374
|
configCommonSchema = objectType({
|
|
17375
17375
|
dialect: dialect3,
|
|
17376
17376
|
schema: unionType([stringType(), stringType().array()]).optional(),
|
package/api-postgres.d.mts
CHANGED
|
@@ -12022,7 +12022,10 @@ type PostgresSnapshot = typeof snapshotValidator.shape;
|
|
|
12022
12022
|
|
|
12023
12023
|
declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => Promise<PostgresSnapshot>;
|
|
12024
12024
|
declare const generateMigration: (prev: PostgresSnapshot, cur: PostgresSnapshot) => Promise<string[]>;
|
|
12025
|
-
declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, casing?: CasingType, entitiesConfig?: EntitiesFilterConfig
|
|
12025
|
+
declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, casing?: CasingType, entitiesConfig?: EntitiesFilterConfig, migrationsConfig?: {
|
|
12026
|
+
table?: string;
|
|
12027
|
+
schema?: string;
|
|
12028
|
+
}) => Promise<{
|
|
12026
12029
|
sqlStatements: string[];
|
|
12027
12030
|
hints: {
|
|
12028
12031
|
hint: string;
|
package/api-postgres.d.ts
CHANGED
|
@@ -12022,7 +12022,10 @@ type PostgresSnapshot = typeof snapshotValidator.shape;
|
|
|
12022
12022
|
|
|
12023
12023
|
declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => Promise<PostgresSnapshot>;
|
|
12024
12024
|
declare const generateMigration: (prev: PostgresSnapshot, cur: PostgresSnapshot) => Promise<string[]>;
|
|
12025
|
-
declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, casing?: CasingType, entitiesConfig?: EntitiesFilterConfig
|
|
12025
|
+
declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, casing?: CasingType, entitiesConfig?: EntitiesFilterConfig, migrationsConfig?: {
|
|
12026
|
+
table?: string;
|
|
12027
|
+
schema?: string;
|
|
12028
|
+
}) => Promise<{
|
|
12026
12029
|
sqlStatements: string[];
|
|
12027
12030
|
hints: {
|
|
12028
12031
|
hint: string;
|
package/api-postgres.js
CHANGED
|
@@ -6202,15 +6202,17 @@ var init_utils2 = __esm({
|
|
|
6202
6202
|
});
|
|
6203
6203
|
}
|
|
6204
6204
|
};
|
|
6205
|
-
filterMigrationsSchema = (interim,
|
|
6205
|
+
filterMigrationsSchema = (interim, migrations) => {
|
|
6206
|
+
const migrationsSchema = migrations.schema;
|
|
6207
|
+
const migrationsTable = migrations.table;
|
|
6206
6208
|
interim.tables = interim.tables.filter(
|
|
6207
|
-
(table6) => table6.name
|
|
6209
|
+
(table6) => !(table6.name === migrationsTable && (table6.schema ? table6.schema === migrationsSchema : true))
|
|
6208
6210
|
);
|
|
6209
6211
|
interim.columns = interim.columns.filter(
|
|
6210
|
-
(column7) => column7.table
|
|
6212
|
+
(column7) => !(column7.table === migrationsTable && (column7.schema ? column7.schema === migrationsSchema : true))
|
|
6211
6213
|
);
|
|
6212
6214
|
interim.pks = interim.pks.filter(
|
|
6213
|
-
(pk) => pk.table
|
|
6215
|
+
(pk) => !(pk.table === migrationsTable && (pk.schema ? pk.schema === migrationsSchema : true))
|
|
6214
6216
|
);
|
|
6215
6217
|
if (interim.schemas) {
|
|
6216
6218
|
let tablesInMigrationSchema = interim.tables.filter((table6) => table6.schema === migrationsSchema);
|
|
@@ -15273,9 +15275,9 @@ var init_common3 = __esm({
|
|
|
15273
15275
|
postgresDriver = unionType(postgresqlDriversLiterals);
|
|
15274
15276
|
driver = unionType([sqliteDriver, postgresDriver]);
|
|
15275
15277
|
configMigrations = objectType({
|
|
15276
|
-
table: stringType().
|
|
15277
|
-
schema: stringType().
|
|
15278
|
-
}).
|
|
15278
|
+
table: stringType().default("__drizzle_migrations"),
|
|
15279
|
+
schema: stringType().default("drizzle")
|
|
15280
|
+
}).default({ table: "__drizzle_migrations", schema: "drizzle" });
|
|
15279
15281
|
configCommonSchema = objectType({
|
|
15280
15282
|
dialect,
|
|
15281
15283
|
schema: unionType([stringType(), stringType().array()]).optional(),
|
|
@@ -25725,12 +25727,12 @@ ${JSON.stringify(column7.metadata)}`
|
|
|
25725
25727
|
};
|
|
25726
25728
|
};
|
|
25727
25729
|
fromDatabaseForDrizzle = async (db, filter2, progressCallback = () => {
|
|
25728
|
-
},
|
|
25730
|
+
}, migrations) => {
|
|
25729
25731
|
const res = await fromDatabase(db, filter2, progressCallback);
|
|
25730
25732
|
res.schemas = res.schemas.filter((it) => it.name !== "public");
|
|
25731
25733
|
res.indexes = res.indexes.filter((it) => !it.forPK && !it.forUnique);
|
|
25732
25734
|
res.privileges = [];
|
|
25733
|
-
filterMigrationsSchema(res,
|
|
25735
|
+
filterMigrationsSchema(res, migrations);
|
|
25734
25736
|
return res;
|
|
25735
25737
|
};
|
|
25736
25738
|
}
|
|
@@ -149753,7 +149755,7 @@ var init_pull_postgres = __esm({
|
|
|
149753
149755
|
init_views();
|
|
149754
149756
|
init_generate_common();
|
|
149755
149757
|
init_pull_common();
|
|
149756
|
-
handle = async (casing2, out, breakpoints, credentials, filtersConfig,
|
|
149758
|
+
handle = async (casing2, out, breakpoints, credentials, filtersConfig, migrations, db) => {
|
|
149757
149759
|
if (!db) {
|
|
149758
149760
|
const { preparePostgresDB: preparePostgresDB2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
149759
149761
|
db = await preparePostgresDB2(credentials);
|
|
@@ -149769,8 +149771,7 @@ var init_pull_postgres = __esm({
|
|
|
149769
149771
|
(stage, count, status) => {
|
|
149770
149772
|
progress.update(stage, count, status);
|
|
149771
149773
|
},
|
|
149772
|
-
|
|
149773
|
-
migrationsTable
|
|
149774
|
+
migrations
|
|
149774
149775
|
)
|
|
149775
149776
|
);
|
|
149776
149777
|
const { ddl: ddl22, errors } = interimToDDL(res);
|
|
@@ -149837,10 +149838,10 @@ var init_pull_postgres = __esm({
|
|
|
149837
149838
|
);
|
|
149838
149839
|
};
|
|
149839
149840
|
introspect = async (db, filter2, progress, callback = () => {
|
|
149840
|
-
},
|
|
149841
|
+
}, migrations) => {
|
|
149841
149842
|
const schema5 = await (0, import_hanji5.renderWithTask)(
|
|
149842
149843
|
progress,
|
|
149843
|
-
fromDatabaseForDrizzle(db, filter2, callback,
|
|
149844
|
+
fromDatabaseForDrizzle(db, filter2, callback, migrations)
|
|
149844
149845
|
);
|
|
149845
149846
|
return { schema: schema5 };
|
|
149846
149847
|
};
|
|
@@ -149869,7 +149870,7 @@ var init_push_postgres = __esm({
|
|
|
149869
149870
|
init_prompts();
|
|
149870
149871
|
init_selector_ui();
|
|
149871
149872
|
init_views();
|
|
149872
|
-
handle2 = async (schemaPath, verbose, credentials, filters, force, casing2, explainFlag,
|
|
149873
|
+
handle2 = async (schemaPath, verbose, credentials, filters, force, casing2, explainFlag, migrations) => {
|
|
149873
149874
|
const { preparePostgresDB: preparePostgresDB2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
149874
149875
|
const { introspect: introspect2 } = await Promise.resolve().then(() => (init_pull_postgres(), pull_postgres_exports));
|
|
149875
149876
|
const db = await preparePostgresDB2(credentials);
|
|
@@ -149892,8 +149893,7 @@ var init_push_postgres = __esm({
|
|
|
149892
149893
|
progress,
|
|
149893
149894
|
() => {
|
|
149894
149895
|
},
|
|
149895
|
-
|
|
149896
|
-
migrationsTable
|
|
149896
|
+
migrations
|
|
149897
149897
|
);
|
|
149898
149898
|
const { ddl: ddl1, errors: errors1 } = interimToDDL(schemaFrom);
|
|
149899
149899
|
const { ddl: ddl22 } = interimToDDL(schemaTo);
|
|
@@ -153847,7 +153847,7 @@ var generateMigration = async (prev, cur) => {
|
|
|
153847
153847
|
);
|
|
153848
153848
|
return sqlStatements;
|
|
153849
153849
|
};
|
|
153850
|
-
var pushSchema = async (imports2, drizzleInstance, casing2, entitiesConfig) => {
|
|
153850
|
+
var pushSchema = async (imports2, drizzleInstance, casing2, entitiesConfig, migrationsConfig) => {
|
|
153851
153851
|
const { prepareEntityFilter: prepareEntityFilter2 } = await Promise.resolve().then(() => (init_pull_utils(), pull_utils_exports));
|
|
153852
153852
|
const { resolver: resolver2 } = await Promise.resolve().then(() => (init_prompts(), prompts_exports));
|
|
153853
153853
|
const { fromDatabaseForDrizzle: fromDatabaseForDrizzle2 } = await Promise.resolve().then(() => (init_introspect(), introspect_exports));
|
|
@@ -153856,6 +153856,10 @@ var pushSchema = async (imports2, drizzleInstance, casing2, entitiesConfig) => {
|
|
|
153856
153856
|
const { extractPostgresExisting: extractPostgresExisting2 } = await Promise.resolve().then(() => (init_drizzle(), drizzle_exports));
|
|
153857
153857
|
const { ddlDiff: ddlDiff2 } = await Promise.resolve().then(() => (init_diff(), diff_exports));
|
|
153858
153858
|
const { sql } = require("drizzle-orm");
|
|
153859
|
+
const migrations = {
|
|
153860
|
+
schema: migrationsConfig?.schema || "drizzle",
|
|
153861
|
+
table: migrationsConfig?.table || "__drizzle_migrations"
|
|
153862
|
+
};
|
|
153859
153863
|
const db = {
|
|
153860
153864
|
query: async (query, _params) => {
|
|
153861
153865
|
const res = await drizzleInstance.execute(sql.raw(query));
|
|
@@ -153871,7 +153875,8 @@ var pushSchema = async (imports2, drizzleInstance, casing2, entitiesConfig) => {
|
|
|
153871
153875
|
};
|
|
153872
153876
|
const existing = extractPostgresExisting2(prepared.schemas, prepared.views, prepared.matViews);
|
|
153873
153877
|
const filter2 = prepareEntityFilter2("postgresql", filterConfig, existing);
|
|
153874
|
-
const prev = await fromDatabaseForDrizzle2(db, filter2)
|
|
153878
|
+
const prev = await fromDatabaseForDrizzle2(db, filter2, () => {
|
|
153879
|
+
}, migrations);
|
|
153875
153880
|
const { schema: cur } = fromDrizzleSchema2(prepared, casing2, filter2);
|
|
153876
153881
|
const { ddl: from, errors: _err1 } = interimToDDL(prev);
|
|
153877
153882
|
const { ddl: to, errors: _err2 } = interimToDDL(cur);
|
package/api-postgres.mjs
CHANGED
|
@@ -6208,15 +6208,17 @@ var init_utils2 = __esm({
|
|
|
6208
6208
|
});
|
|
6209
6209
|
}
|
|
6210
6210
|
};
|
|
6211
|
-
filterMigrationsSchema = (interim,
|
|
6211
|
+
filterMigrationsSchema = (interim, migrations) => {
|
|
6212
|
+
const migrationsSchema = migrations.schema;
|
|
6213
|
+
const migrationsTable = migrations.table;
|
|
6212
6214
|
interim.tables = interim.tables.filter(
|
|
6213
|
-
(table6) => table6.name
|
|
6215
|
+
(table6) => !(table6.name === migrationsTable && (table6.schema ? table6.schema === migrationsSchema : true))
|
|
6214
6216
|
);
|
|
6215
6217
|
interim.columns = interim.columns.filter(
|
|
6216
|
-
(column7) => column7.table
|
|
6218
|
+
(column7) => !(column7.table === migrationsTable && (column7.schema ? column7.schema === migrationsSchema : true))
|
|
6217
6219
|
);
|
|
6218
6220
|
interim.pks = interim.pks.filter(
|
|
6219
|
-
(pk) => pk.table
|
|
6221
|
+
(pk) => !(pk.table === migrationsTable && (pk.schema ? pk.schema === migrationsSchema : true))
|
|
6220
6222
|
);
|
|
6221
6223
|
if (interim.schemas) {
|
|
6222
6224
|
let tablesInMigrationSchema = interim.tables.filter((table6) => table6.schema === migrationsSchema);
|
|
@@ -15279,9 +15281,9 @@ var init_common3 = __esm({
|
|
|
15279
15281
|
postgresDriver = unionType(postgresqlDriversLiterals);
|
|
15280
15282
|
driver = unionType([sqliteDriver, postgresDriver]);
|
|
15281
15283
|
configMigrations = objectType({
|
|
15282
|
-
table: stringType().
|
|
15283
|
-
schema: stringType().
|
|
15284
|
-
}).
|
|
15284
|
+
table: stringType().default("__drizzle_migrations"),
|
|
15285
|
+
schema: stringType().default("drizzle")
|
|
15286
|
+
}).default({ table: "__drizzle_migrations", schema: "drizzle" });
|
|
15285
15287
|
configCommonSchema = objectType({
|
|
15286
15288
|
dialect,
|
|
15287
15289
|
schema: unionType([stringType(), stringType().array()]).optional(),
|
|
@@ -25762,12 +25764,12 @@ ${JSON.stringify(column7.metadata)}`
|
|
|
25762
25764
|
};
|
|
25763
25765
|
};
|
|
25764
25766
|
fromDatabaseForDrizzle = async (db, filter2, progressCallback = () => {
|
|
25765
|
-
},
|
|
25767
|
+
}, migrations) => {
|
|
25766
25768
|
const res = await fromDatabase(db, filter2, progressCallback);
|
|
25767
25769
|
res.schemas = res.schemas.filter((it) => it.name !== "public");
|
|
25768
25770
|
res.indexes = res.indexes.filter((it) => !it.forPK && !it.forUnique);
|
|
25769
25771
|
res.privileges = [];
|
|
25770
|
-
filterMigrationsSchema(res,
|
|
25772
|
+
filterMigrationsSchema(res, migrations);
|
|
25771
25773
|
return res;
|
|
25772
25774
|
};
|
|
25773
25775
|
}
|
|
@@ -149787,7 +149789,7 @@ var init_pull_postgres = __esm({
|
|
|
149787
149789
|
init_views();
|
|
149788
149790
|
init_generate_common();
|
|
149789
149791
|
init_pull_common();
|
|
149790
|
-
handle = async (casing2, out, breakpoints, credentials, filtersConfig,
|
|
149792
|
+
handle = async (casing2, out, breakpoints, credentials, filtersConfig, migrations, db) => {
|
|
149791
149793
|
if (!db) {
|
|
149792
149794
|
const { preparePostgresDB: preparePostgresDB2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
149793
149795
|
db = await preparePostgresDB2(credentials);
|
|
@@ -149803,8 +149805,7 @@ var init_pull_postgres = __esm({
|
|
|
149803
149805
|
(stage, count, status) => {
|
|
149804
149806
|
progress.update(stage, count, status);
|
|
149805
149807
|
},
|
|
149806
|
-
|
|
149807
|
-
migrationsTable
|
|
149808
|
+
migrations
|
|
149808
149809
|
)
|
|
149809
149810
|
);
|
|
149810
149811
|
const { ddl: ddl22, errors } = interimToDDL(res);
|
|
@@ -149871,10 +149872,10 @@ var init_pull_postgres = __esm({
|
|
|
149871
149872
|
);
|
|
149872
149873
|
};
|
|
149873
149874
|
introspect = async (db, filter2, progress, callback = () => {
|
|
149874
|
-
},
|
|
149875
|
+
}, migrations) => {
|
|
149875
149876
|
const schema5 = await (0, import_hanji5.renderWithTask)(
|
|
149876
149877
|
progress,
|
|
149877
|
-
fromDatabaseForDrizzle(db, filter2, callback,
|
|
149878
|
+
fromDatabaseForDrizzle(db, filter2, callback, migrations)
|
|
149878
149879
|
);
|
|
149879
149880
|
return { schema: schema5 };
|
|
149880
149881
|
};
|
|
@@ -149903,7 +149904,7 @@ var init_push_postgres = __esm({
|
|
|
149903
149904
|
init_prompts();
|
|
149904
149905
|
init_selector_ui();
|
|
149905
149906
|
init_views();
|
|
149906
|
-
handle2 = async (schemaPath, verbose, credentials, filters, force, casing2, explainFlag,
|
|
149907
|
+
handle2 = async (schemaPath, verbose, credentials, filters, force, casing2, explainFlag, migrations) => {
|
|
149907
149908
|
const { preparePostgresDB: preparePostgresDB2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
149908
149909
|
const { introspect: introspect2 } = await Promise.resolve().then(() => (init_pull_postgres(), pull_postgres_exports));
|
|
149909
149910
|
const db = await preparePostgresDB2(credentials);
|
|
@@ -149926,8 +149927,7 @@ var init_push_postgres = __esm({
|
|
|
149926
149927
|
progress,
|
|
149927
149928
|
() => {
|
|
149928
149929
|
},
|
|
149929
|
-
|
|
149930
|
-
migrationsTable
|
|
149930
|
+
migrations
|
|
149931
149931
|
);
|
|
149932
149932
|
const { ddl: ddl1, errors: errors1 } = interimToDDL(schemaFrom);
|
|
149933
149933
|
const { ddl: ddl22 } = interimToDDL(schemaTo);
|
|
@@ -153877,7 +153877,7 @@ var generateMigration = async (prev, cur) => {
|
|
|
153877
153877
|
);
|
|
153878
153878
|
return sqlStatements;
|
|
153879
153879
|
};
|
|
153880
|
-
var pushSchema = async (imports2, drizzleInstance, casing2, entitiesConfig) => {
|
|
153880
|
+
var pushSchema = async (imports2, drizzleInstance, casing2, entitiesConfig, migrationsConfig) => {
|
|
153881
153881
|
const { prepareEntityFilter: prepareEntityFilter2 } = await Promise.resolve().then(() => (init_pull_utils(), pull_utils_exports));
|
|
153882
153882
|
const { resolver: resolver2 } = await Promise.resolve().then(() => (init_prompts(), prompts_exports));
|
|
153883
153883
|
const { fromDatabaseForDrizzle: fromDatabaseForDrizzle2 } = await Promise.resolve().then(() => (init_introspect(), introspect_exports));
|
|
@@ -153886,6 +153886,10 @@ var pushSchema = async (imports2, drizzleInstance, casing2, entitiesConfig) => {
|
|
|
153886
153886
|
const { extractPostgresExisting: extractPostgresExisting2 } = await Promise.resolve().then(() => (init_drizzle(), drizzle_exports));
|
|
153887
153887
|
const { ddlDiff: ddlDiff2 } = await Promise.resolve().then(() => (init_diff(), diff_exports));
|
|
153888
153888
|
const { sql } = await import("drizzle-orm");
|
|
153889
|
+
const migrations = {
|
|
153890
|
+
schema: migrationsConfig?.schema || "drizzle",
|
|
153891
|
+
table: migrationsConfig?.table || "__drizzle_migrations"
|
|
153892
|
+
};
|
|
153889
153893
|
const db = {
|
|
153890
153894
|
query: async (query, _params) => {
|
|
153891
153895
|
const res = await drizzleInstance.execute(sql.raw(query));
|
|
@@ -153901,7 +153905,8 @@ var pushSchema = async (imports2, drizzleInstance, casing2, entitiesConfig) => {
|
|
|
153901
153905
|
};
|
|
153902
153906
|
const existing = extractPostgresExisting2(prepared.schemas, prepared.views, prepared.matViews);
|
|
153903
153907
|
const filter2 = prepareEntityFilter2("postgresql", filterConfig, existing);
|
|
153904
|
-
const prev = await fromDatabaseForDrizzle2(db, filter2)
|
|
153908
|
+
const prev = await fromDatabaseForDrizzle2(db, filter2, () => {
|
|
153909
|
+
}, migrations);
|
|
153905
153910
|
const { schema: cur } = fromDrizzleSchema2(prepared, casing2, filter2);
|
|
153906
153911
|
const { ddl: from, errors: _err1 } = interimToDDL(prev);
|
|
153907
153912
|
const { ddl: to, errors: _err2 } = interimToDDL(cur);
|
package/api-sqlite.js
CHANGED
|
@@ -17356,9 +17356,9 @@ var init_common3 = __esm({
|
|
|
17356
17356
|
postgresDriver = unionType(postgresqlDriversLiterals);
|
|
17357
17357
|
driver = unionType([sqliteDriver, postgresDriver]);
|
|
17358
17358
|
configMigrations = objectType({
|
|
17359
|
-
table: stringType().
|
|
17360
|
-
schema: stringType().
|
|
17361
|
-
}).
|
|
17359
|
+
table: stringType().default("__drizzle_migrations"),
|
|
17360
|
+
schema: stringType().default("drizzle")
|
|
17361
|
+
}).default({ table: "__drizzle_migrations", schema: "drizzle" });
|
|
17362
17362
|
configCommonSchema = objectType({
|
|
17363
17363
|
dialect: dialect3,
|
|
17364
17364
|
schema: unionType([stringType(), stringType().array()]).optional(),
|
package/api-sqlite.mjs
CHANGED
|
@@ -17368,9 +17368,9 @@ var init_common3 = __esm({
|
|
|
17368
17368
|
postgresDriver = unionType(postgresqlDriversLiterals);
|
|
17369
17369
|
driver = unionType([sqliteDriver, postgresDriver]);
|
|
17370
17370
|
configMigrations = objectType({
|
|
17371
|
-
table: stringType().
|
|
17372
|
-
schema: stringType().
|
|
17373
|
-
}).
|
|
17371
|
+
table: stringType().default("__drizzle_migrations"),
|
|
17372
|
+
schema: stringType().default("drizzle")
|
|
17373
|
+
}).default({ table: "__drizzle_migrations", schema: "drizzle" });
|
|
17374
17374
|
configCommonSchema = objectType({
|
|
17375
17375
|
dialect: dialect3,
|
|
17376
17376
|
schema: unionType([stringType(), stringType().array()]).optional(),
|
package/bin.cjs
CHANGED
|
@@ -9709,15 +9709,17 @@ var init_utils3 = __esm({
|
|
|
9709
9709
|
});
|
|
9710
9710
|
}
|
|
9711
9711
|
};
|
|
9712
|
-
filterMigrationsSchema = (interim,
|
|
9712
|
+
filterMigrationsSchema = (interim, migrations) => {
|
|
9713
|
+
const migrationsSchema = migrations.schema;
|
|
9714
|
+
const migrationsTable = migrations.table;
|
|
9713
9715
|
interim.tables = interim.tables.filter(
|
|
9714
|
-
(table6) => table6.name
|
|
9716
|
+
(table6) => !(table6.name === migrationsTable && (table6.schema ? table6.schema === migrationsSchema : true))
|
|
9715
9717
|
);
|
|
9716
9718
|
interim.columns = interim.columns.filter(
|
|
9717
|
-
(column11) => column11.table
|
|
9719
|
+
(column11) => !(column11.table === migrationsTable && (column11.schema ? column11.schema === migrationsSchema : true))
|
|
9718
9720
|
);
|
|
9719
9721
|
interim.pks = interim.pks.filter(
|
|
9720
|
-
(pk) => pk.table
|
|
9722
|
+
(pk) => !(pk.table === migrationsTable && (pk.schema ? pk.schema === migrationsSchema : true))
|
|
9721
9723
|
);
|
|
9722
9724
|
if (interim.schemas) {
|
|
9723
9725
|
let tablesInMigrationSchema = interim.tables.filter((table6) => table6.schema === migrationsSchema);
|
|
@@ -22924,9 +22926,9 @@ var init_common3 = __esm({
|
|
|
22924
22926
|
postgresDriver = unionType(postgresqlDriversLiterals);
|
|
22925
22927
|
driver = unionType([sqliteDriver, postgresDriver]);
|
|
22926
22928
|
configMigrations = objectType({
|
|
22927
|
-
table: stringType().
|
|
22928
|
-
schema: stringType().
|
|
22929
|
-
}).
|
|
22929
|
+
table: stringType().default("__drizzle_migrations"),
|
|
22930
|
+
schema: stringType().default("drizzle")
|
|
22931
|
+
}).default({ table: "__drizzle_migrations", schema: "drizzle" });
|
|
22930
22932
|
configCommonSchema = objectType({
|
|
22931
22933
|
dialect,
|
|
22932
22934
|
schema: unionType([stringType(), stringType().array()]).optional(),
|
|
@@ -167890,7 +167892,7 @@ var init_introspect = __esm({
|
|
|
167890
167892
|
init_utils3();
|
|
167891
167893
|
init_grammar();
|
|
167892
167894
|
fromDatabaseForDrizzle = async (db, schema5, filter2 = () => true, progressCallback = () => {
|
|
167893
|
-
},
|
|
167895
|
+
}, migrations) => {
|
|
167894
167896
|
const res = await fromDatabase(db, schema5, filter2, progressCallback);
|
|
167895
167897
|
res.indexes = res.indexes.filter((x6) => {
|
|
167896
167898
|
let skip = x6.isUnique === true && x6.columns.length === 1 && x6.columns[0].isExpression === false;
|
|
@@ -167898,7 +167900,7 @@ var init_introspect = __esm({
|
|
|
167898
167900
|
skip ||= res.fks.some((fk5) => x6.table === fk5.table && x6.name === fk5.name);
|
|
167899
167901
|
return !skip;
|
|
167900
167902
|
});
|
|
167901
|
-
filterMigrationsSchema(res,
|
|
167903
|
+
filterMigrationsSchema(res, migrations);
|
|
167902
167904
|
return res;
|
|
167903
167905
|
};
|
|
167904
167906
|
fromDatabase = async (db, schema5, filter2, progressCallback = () => {
|
|
@@ -169651,7 +169653,7 @@ var init_pull_mysql = __esm({
|
|
|
169651
169653
|
init_views();
|
|
169652
169654
|
init_generate_common();
|
|
169653
169655
|
init_pull_common();
|
|
169654
|
-
handle7 = async (casing2, out, breakpoints, credentials2, filters,
|
|
169656
|
+
handle7 = async (casing2, out, breakpoints, credentials2, filters, migrations, db) => {
|
|
169655
169657
|
if (!db) {
|
|
169656
169658
|
const { connectToMySQL: connectToMySQL2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
169657
169659
|
db = await connectToMySQL2(credentials2);
|
|
@@ -169666,7 +169668,7 @@ var init_pull_mysql = __esm({
|
|
|
169666
169668
|
progress.update(stage, count2, status);
|
|
169667
169669
|
},
|
|
169668
169670
|
filter: filter2,
|
|
169669
|
-
|
|
169671
|
+
migrations
|
|
169670
169672
|
});
|
|
169671
169673
|
const { ddl: ddl7 } = interimToDDL(schema5);
|
|
169672
169674
|
const ts = ddlToTypeScript(ddl7, schema5.viewColumns, casing2, "mysql");
|
|
@@ -169716,10 +169718,10 @@ var init_pull_mysql = __esm({
|
|
|
169716
169718
|
);
|
|
169717
169719
|
};
|
|
169718
169720
|
introspect = async (props) => {
|
|
169719
|
-
const { db, database, progress, filter: filter2 } = props;
|
|
169721
|
+
const { db, database, progress, filter: filter2, migrations } = props;
|
|
169720
169722
|
const pcb = props.progressCallback ?? (() => {
|
|
169721
169723
|
});
|
|
169722
|
-
const res = await (0, import_hanji6.renderWithTask)(progress, fromDatabaseForDrizzle(db, database, filter2, pcb,
|
|
169724
|
+
const res = await (0, import_hanji6.renderWithTask)(progress, fromDatabaseForDrizzle(db, database, filter2, pcb, migrations));
|
|
169723
169725
|
return { schema: res };
|
|
169724
169726
|
};
|
|
169725
169727
|
}
|
|
@@ -169748,7 +169750,7 @@ var init_push_mysql = __esm({
|
|
|
169748
169750
|
init_selector_ui();
|
|
169749
169751
|
init_views();
|
|
169750
169752
|
init_pull_mysql();
|
|
169751
|
-
handle8 = async (schemaPath, credentials2, verbose, force, casing2, filters, explainFlag,
|
|
169753
|
+
handle8 = async (schemaPath, credentials2, verbose, force, casing2, filters, explainFlag, migrations) => {
|
|
169752
169754
|
const { prepareFromSchemaFiles: prepareFromSchemaFiles7, fromDrizzleSchema: fromDrizzleSchema7 } = await Promise.resolve().then(() => (init_drizzle3(), drizzle_exports));
|
|
169753
169755
|
const filenames = prepareFilenames(schemaPath);
|
|
169754
169756
|
console.log(source_default.gray(`Reading schema files:
|
|
@@ -169762,7 +169764,7 @@ ${filenames.join("\n")}
|
|
|
169762
169764
|
"Pulling schema from database...",
|
|
169763
169765
|
"Pulling schema from database..."
|
|
169764
169766
|
);
|
|
169765
|
-
const { schema: interimFromDB } = await introspect({ db, database, progress, filter: filter2,
|
|
169767
|
+
const { schema: interimFromDB } = await introspect({ db, database, progress, filter: filter2, migrations });
|
|
169766
169768
|
const interimFromFiles = fromDrizzleSchema7(res.tables, res.views, casing2);
|
|
169767
169769
|
const { ddl: ddl1 } = interimToDDL(interimFromDB);
|
|
169768
169770
|
const { ddl: ddl22 } = interimToDDL(interimFromFiles);
|
|
@@ -170796,12 +170798,12 @@ ${JSON.stringify(column11.metadata)}`
|
|
|
170796
170798
|
};
|
|
170797
170799
|
};
|
|
170798
170800
|
fromDatabaseForDrizzle2 = async (db, filter2, progressCallback = () => {
|
|
170799
|
-
},
|
|
170801
|
+
}, migrations) => {
|
|
170800
170802
|
const res = await fromDatabase2(db, filter2, progressCallback);
|
|
170801
170803
|
res.schemas = res.schemas.filter((it2) => it2.name !== "public");
|
|
170802
170804
|
res.indexes = res.indexes.filter((it2) => !it2.forPK && !it2.forUnique);
|
|
170803
170805
|
res.privileges = [];
|
|
170804
|
-
filterMigrationsSchema(res,
|
|
170806
|
+
filterMigrationsSchema(res, migrations);
|
|
170805
170807
|
return res;
|
|
170806
170808
|
};
|
|
170807
170809
|
}
|
|
@@ -170833,7 +170835,7 @@ var init_pull_postgres = __esm({
|
|
|
170833
170835
|
init_views();
|
|
170834
170836
|
init_generate_common();
|
|
170835
170837
|
init_pull_common();
|
|
170836
|
-
handle9 = async (casing2, out, breakpoints, credentials2, filtersConfig,
|
|
170838
|
+
handle9 = async (casing2, out, breakpoints, credentials2, filtersConfig, migrations, db) => {
|
|
170837
170839
|
if (!db) {
|
|
170838
170840
|
const { preparePostgresDB: preparePostgresDB2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
170839
170841
|
db = await preparePostgresDB2(credentials2);
|
|
@@ -170849,8 +170851,7 @@ var init_pull_postgres = __esm({
|
|
|
170849
170851
|
(stage, count2, status) => {
|
|
170850
170852
|
progress.update(stage, count2, status);
|
|
170851
170853
|
},
|
|
170852
|
-
|
|
170853
|
-
migrationsTable
|
|
170854
|
+
migrations
|
|
170854
170855
|
)
|
|
170855
170856
|
);
|
|
170856
170857
|
const { ddl: ddl22, errors } = interimToDDL4(res);
|
|
@@ -170917,10 +170918,10 @@ var init_pull_postgres = __esm({
|
|
|
170917
170918
|
);
|
|
170918
170919
|
};
|
|
170919
170920
|
introspect2 = async (db, filter2, progress, callback = () => {
|
|
170920
|
-
},
|
|
170921
|
+
}, migrations) => {
|
|
170921
170922
|
const schema5 = await (0, import_hanji9.renderWithTask)(
|
|
170922
170923
|
progress,
|
|
170923
|
-
fromDatabaseForDrizzle2(db, filter2, callback,
|
|
170924
|
+
fromDatabaseForDrizzle2(db, filter2, callback, migrations)
|
|
170924
170925
|
);
|
|
170925
170926
|
return { schema: schema5 };
|
|
170926
170927
|
};
|
|
@@ -170949,7 +170950,7 @@ var init_push_postgres = __esm({
|
|
|
170949
170950
|
init_prompts();
|
|
170950
170951
|
init_selector_ui();
|
|
170951
170952
|
init_views();
|
|
170952
|
-
handle10 = async (schemaPath, verbose, credentials2, filters, force, casing2, explainFlag,
|
|
170953
|
+
handle10 = async (schemaPath, verbose, credentials2, filters, force, casing2, explainFlag, migrations) => {
|
|
170953
170954
|
const { preparePostgresDB: preparePostgresDB2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
170954
170955
|
const { introspect: introspect6 } = await Promise.resolve().then(() => (init_pull_postgres(), pull_postgres_exports));
|
|
170955
170956
|
const db = await preparePostgresDB2(credentials2);
|
|
@@ -170972,8 +170973,7 @@ var init_push_postgres = __esm({
|
|
|
170972
170973
|
progress,
|
|
170973
170974
|
() => {
|
|
170974
170975
|
},
|
|
170975
|
-
|
|
170976
|
-
migrationsTable
|
|
170976
|
+
migrations
|
|
170977
170977
|
);
|
|
170978
170978
|
const { ddl: ddl1, errors: errors1 } = interimToDDL4(schemaFrom);
|
|
170979
170979
|
const { ddl: ddl22 } = interimToDDL4(schemaTo);
|
|
@@ -171123,10 +171123,10 @@ var init_introspect3 = __esm({
|
|
|
171123
171123
|
init_utils3();
|
|
171124
171124
|
init_grammar5();
|
|
171125
171125
|
fromDatabaseForDrizzle3 = async (db, filter2 = () => true, progressCallback = () => {
|
|
171126
|
-
},
|
|
171126
|
+
}, migrations) => {
|
|
171127
171127
|
const res = await fromDatabase3(db, filter2, progressCallback);
|
|
171128
171128
|
res.indexes = res.indexes.filter((it2) => it2.origin !== "auto");
|
|
171129
|
-
filterMigrationsSchema(res,
|
|
171129
|
+
filterMigrationsSchema(res, migrations);
|
|
171130
171130
|
return res;
|
|
171131
171131
|
};
|
|
171132
171132
|
fromDatabase3 = async (db, filter2, progressCallback = () => {
|
|
@@ -171899,7 +171899,7 @@ var init_pull_sqlite = __esm({
|
|
|
171899
171899
|
init_views();
|
|
171900
171900
|
init_generate_common();
|
|
171901
171901
|
init_pull_common();
|
|
171902
|
-
handle11 = async (casing2, out, breakpoints, credentials2, filters, type = "sqlite",
|
|
171902
|
+
handle11 = async (casing2, out, breakpoints, credentials2, filters, type = "sqlite", migrations, db) => {
|
|
171903
171903
|
if (!db) {
|
|
171904
171904
|
const { connectToSQLite: connectToSQLite2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
171905
171905
|
db = await connectToSQLite2(credentials2);
|
|
@@ -171908,7 +171908,7 @@ var init_pull_sqlite = __esm({
|
|
|
171908
171908
|
const filter2 = prepareEntityFilter("sqlite", filters, []);
|
|
171909
171909
|
const { ddl: ddl7, viewColumns } = await introspect3(db, filter2, progress, (stage, count2, status) => {
|
|
171910
171910
|
progress.update(stage, count2, status);
|
|
171911
|
-
},
|
|
171911
|
+
}, migrations);
|
|
171912
171912
|
const ts = ddlToTypeScript3(ddl7, casing2, viewColumns, type);
|
|
171913
171913
|
const relationsTs = relationsToTypeScript(sqliteToRelationsPull(ddl7), casing2);
|
|
171914
171914
|
const schemaFile = (0, import_path7.join)(out, "schema.ts");
|
|
@@ -171949,8 +171949,8 @@ var init_pull_sqlite = __esm({
|
|
|
171949
171949
|
);
|
|
171950
171950
|
};
|
|
171951
171951
|
introspect3 = async (db, filter2, taskView, progressCallback = () => {
|
|
171952
|
-
},
|
|
171953
|
-
const schema5 = await (0, import_hanji11.renderWithTask)(taskView, fromDatabaseForDrizzle3(db, filter2, progressCallback,
|
|
171952
|
+
}, migrations) => {
|
|
171953
|
+
const schema5 = await (0, import_hanji11.renderWithTask)(taskView, fromDatabaseForDrizzle3(db, filter2, progressCallback, migrations));
|
|
171954
171954
|
const res = interimToDDL5(schema5);
|
|
171955
171955
|
return { ...res, viewColumns: schema5.viewsToColumns };
|
|
171956
171956
|
};
|
|
@@ -171979,7 +171979,7 @@ var init_push_sqlite = __esm({
|
|
|
171979
171979
|
init_prompts();
|
|
171980
171980
|
init_selector_ui();
|
|
171981
171981
|
init_views();
|
|
171982
|
-
handle12 = async (schemaPath, verbose, credentials2, filters, force, casing2, explainFlag,
|
|
171982
|
+
handle12 = async (schemaPath, verbose, credentials2, filters, force, casing2, explainFlag, migrations, sqliteDB) => {
|
|
171983
171983
|
const { connectToSQLite: connectToSQLite2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
171984
171984
|
const { introspect: sqliteIntrospect } = await Promise.resolve().then(() => (init_pull_sqlite(), pull_sqlite_exports));
|
|
171985
171985
|
const db = sqliteDB ?? await connectToSQLite2(credentials2);
|
|
@@ -171993,7 +171993,7 @@ var init_push_sqlite = __esm({
|
|
|
171993
171993
|
"Pulling schema from database..."
|
|
171994
171994
|
);
|
|
171995
171995
|
const { ddl: ddl1 } = await sqliteIntrospect(db, filter2, progress, () => {
|
|
171996
|
-
},
|
|
171996
|
+
}, migrations);
|
|
171997
171997
|
const { sqlStatements, statements, groupedStatements } = await ddlDiff3(
|
|
171998
171998
|
ddl1,
|
|
171999
171999
|
ddl22,
|
|
@@ -172100,10 +172100,10 @@ var init_push_libsql = __esm({
|
|
|
172100
172100
|
"src/cli/commands/push-libsql.ts"() {
|
|
172101
172101
|
"use strict";
|
|
172102
172102
|
init_push_sqlite();
|
|
172103
|
-
handle13 = async (schemaPath, verbose, credentials2, filters, force, casing2, explainFlag,
|
|
172103
|
+
handle13 = async (schemaPath, verbose, credentials2, filters, force, casing2, explainFlag, migrations) => {
|
|
172104
172104
|
const { connectToLibSQL: connectToLibSQL2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
172105
172105
|
const db = await connectToLibSQL2(credentials2);
|
|
172106
|
-
return handle12(schemaPath, verbose, credentials2, filters, force, casing2, explainFlag,
|
|
172106
|
+
return handle12(schemaPath, verbose, credentials2, filters, force, casing2, explainFlag, migrations, db);
|
|
172107
172107
|
};
|
|
172108
172108
|
}
|
|
172109
172109
|
});
|
|
@@ -172128,7 +172128,7 @@ var init_push_singlestore = __esm({
|
|
|
172128
172128
|
init_selector_ui();
|
|
172129
172129
|
init_views();
|
|
172130
172130
|
init_push_mysql();
|
|
172131
|
-
handle14 = async (schemaPath, credentials2, filters, verbose, force, casing2, explainFlag,
|
|
172131
|
+
handle14 = async (schemaPath, credentials2, filters, verbose, force, casing2, explainFlag, migrations) => {
|
|
172132
172132
|
const { connectToSingleStore: connectToSingleStore2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
172133
172133
|
const { fromDatabaseForDrizzle: fromDatabaseForDrizzle6 } = await Promise.resolve().then(() => (init_introspect(), introspect_exports));
|
|
172134
172134
|
const filter2 = prepareEntityFilter("singlestore", filters, []);
|
|
@@ -172140,7 +172140,7 @@ var init_push_singlestore = __esm({
|
|
|
172140
172140
|
const interimFromDB = await (0, import_hanji13.renderWithTask)(
|
|
172141
172141
|
progress,
|
|
172142
172142
|
fromDatabaseForDrizzle6(db, database, filter2, () => {
|
|
172143
|
-
},
|
|
172143
|
+
}, migrations)
|
|
172144
172144
|
);
|
|
172145
172145
|
const filenames = prepareFilenames(schemaPath);
|
|
172146
172146
|
console.log(source_default.gray(`Reading schema files:
|
|
@@ -172971,11 +172971,11 @@ ${JSON.stringify(column11.metadata)}`
|
|
|
172971
172971
|
};
|
|
172972
172972
|
};
|
|
172973
172973
|
fromDatabaseForDrizzle4 = async (db, filter2, progressCallback = () => {
|
|
172974
|
-
},
|
|
172974
|
+
}, migrations) => {
|
|
172975
172975
|
const res = await fromDatabase4(db, filter2, progressCallback);
|
|
172976
172976
|
res.schemas = res.schemas.filter((it2) => it2.name !== "public");
|
|
172977
172977
|
res.indexes = res.indexes.filter((it2) => !it2.forPK);
|
|
172978
|
-
filterMigrationsSchema(res,
|
|
172978
|
+
filterMigrationsSchema(res, migrations);
|
|
172979
172979
|
return res;
|
|
172980
172980
|
};
|
|
172981
172981
|
}
|
|
@@ -173428,7 +173428,7 @@ var init_pull_cockroach = __esm({
|
|
|
173428
173428
|
init_views();
|
|
173429
173429
|
init_generate_common();
|
|
173430
173430
|
init_pull_common();
|
|
173431
|
-
handle15 = async (casing2, out, breakpoints, credentials2, filters,
|
|
173431
|
+
handle15 = async (casing2, out, breakpoints, credentials2, filters, migrations, db) => {
|
|
173432
173432
|
if (!db) {
|
|
173433
173433
|
const { prepareCockroach: prepareCockroach2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
173434
173434
|
db = await prepareCockroach2(credentials2);
|
|
@@ -173441,8 +173441,7 @@ var init_pull_cockroach = __esm({
|
|
|
173441
173441
|
(stage, count2, status) => {
|
|
173442
173442
|
progress.update(stage, count2, status);
|
|
173443
173443
|
},
|
|
173444
|
-
|
|
173445
|
-
migrationsTable
|
|
173444
|
+
migrations
|
|
173446
173445
|
);
|
|
173447
173446
|
const res = await (0, import_hanji14.renderWithTask)(progress, task);
|
|
173448
173447
|
const { ddl: ddl22, errors } = interimToDDL2(res);
|
|
@@ -173506,10 +173505,10 @@ var init_pull_cockroach = __esm({
|
|
|
173506
173505
|
);
|
|
173507
173506
|
};
|
|
173508
173507
|
introspect4 = async (db, filter2, progress, callback = () => {
|
|
173509
|
-
},
|
|
173508
|
+
}, migrations) => {
|
|
173510
173509
|
const schema5 = await (0, import_hanji14.renderWithTask)(
|
|
173511
173510
|
progress,
|
|
173512
|
-
fromDatabaseForDrizzle4(db, filter2, callback,
|
|
173511
|
+
fromDatabaseForDrizzle4(db, filter2, callback, migrations)
|
|
173513
173512
|
);
|
|
173514
173513
|
return { schema: schema5 };
|
|
173515
173514
|
};
|
|
@@ -173538,7 +173537,7 @@ var init_push_cockroach = __esm({
|
|
|
173538
173537
|
init_prompts();
|
|
173539
173538
|
init_selector_ui();
|
|
173540
173539
|
init_views();
|
|
173541
|
-
handle16 = async (schemaPath, verbose, credentials2, filters, force, casing2, explainFlag,
|
|
173540
|
+
handle16 = async (schemaPath, verbose, credentials2, filters, force, casing2, explainFlag, migrations) => {
|
|
173542
173541
|
const { prepareCockroach: prepareCockroach2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
173543
173542
|
const { introspect: cockroachPushIntrospect } = await Promise.resolve().then(() => (init_pull_cockroach(), pull_cockroach_exports));
|
|
173544
173543
|
const db = await prepareCockroach2(credentials2);
|
|
@@ -173561,8 +173560,7 @@ var init_push_cockroach = __esm({
|
|
|
173561
173560
|
progress,
|
|
173562
173561
|
() => {
|
|
173563
173562
|
},
|
|
173564
|
-
|
|
173565
|
-
migrationsTable
|
|
173563
|
+
migrations
|
|
173566
173564
|
);
|
|
173567
173565
|
const { ddl: ddl1, errors: errors1 } = interimToDDL2(schemaFrom);
|
|
173568
173566
|
const { ddl: ddl22 } = interimToDDL2(schemaTo);
|
|
@@ -174226,10 +174224,10 @@ ${view5.definition}`);
|
|
|
174226
174224
|
};
|
|
174227
174225
|
};
|
|
174228
174226
|
fromDatabaseForDrizzle5 = async (db, filter2, progressCallback = () => {
|
|
174229
|
-
},
|
|
174227
|
+
}, migrations) => {
|
|
174230
174228
|
const res = await fromDatabase5(db, filter2, progressCallback, () => {
|
|
174231
174229
|
});
|
|
174232
|
-
filterMigrationsSchema(res,
|
|
174230
|
+
filterMigrationsSchema(res, migrations);
|
|
174233
174231
|
return res;
|
|
174234
174232
|
};
|
|
174235
174233
|
}
|
|
@@ -174627,7 +174625,7 @@ var init_pull_mssql = __esm({
|
|
|
174627
174625
|
init_prompts();
|
|
174628
174626
|
init_views();
|
|
174629
174627
|
init_generate_common();
|
|
174630
|
-
handle17 = async (casing2, out, breakpoints, credentials2, filters,
|
|
174628
|
+
handle17 = async (casing2, out, breakpoints, credentials2, filters, migrations, db) => {
|
|
174631
174629
|
if (!db) {
|
|
174632
174630
|
const { connectToMsSQL: connectToMsSQL2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
174633
174631
|
db = await connectToMsSQL2(credentials2);
|
|
@@ -174640,8 +174638,7 @@ var init_pull_mssql = __esm({
|
|
|
174640
174638
|
(stage, count2, status) => {
|
|
174641
174639
|
progress.update(stage, count2, status);
|
|
174642
174640
|
},
|
|
174643
|
-
|
|
174644
|
-
migrationsTable
|
|
174641
|
+
migrations
|
|
174645
174642
|
);
|
|
174646
174643
|
const res = await (0, import_hanji16.renderWithTask)(progress, task);
|
|
174647
174644
|
const { ddl: ddl22, errors } = interimToDDL3(res);
|
|
@@ -174699,11 +174696,11 @@ var init_pull_mssql = __esm({
|
|
|
174699
174696
|
)}] Your schema file is ready \u279C ${source_default.bold.underline.blue(schemaFile)} \u{1F680}`
|
|
174700
174697
|
);
|
|
174701
174698
|
};
|
|
174702
|
-
introspect5 = async (db, filter2, progress,
|
|
174699
|
+
introspect5 = async (db, filter2, progress, migrations) => {
|
|
174703
174700
|
const schema5 = await (0, import_hanji16.renderWithTask)(
|
|
174704
174701
|
progress,
|
|
174705
174702
|
fromDatabaseForDrizzle5(db, filter2, () => {
|
|
174706
|
-
},
|
|
174703
|
+
}, migrations)
|
|
174707
174704
|
);
|
|
174708
174705
|
return { schema: schema5 };
|
|
174709
174706
|
};
|
|
@@ -174732,7 +174729,7 @@ var init_push_mssql = __esm({
|
|
|
174732
174729
|
init_prompts();
|
|
174733
174730
|
init_selector_ui();
|
|
174734
174731
|
init_views();
|
|
174735
|
-
handle18 = async (schemaPath, verbose, credentials2, filters, force, casing2, explainFlag,
|
|
174732
|
+
handle18 = async (schemaPath, verbose, credentials2, filters, force, casing2, explainFlag, migrations) => {
|
|
174736
174733
|
const { connectToMsSQL: connectToMsSQL2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
174737
174734
|
const { introspect: introspect6 } = await Promise.resolve().then(() => (init_pull_mssql(), pull_mssql_exports));
|
|
174738
174735
|
const { db } = await connectToMsSQL2(credentials2);
|
|
@@ -174749,7 +174746,7 @@ ${filenames.join("\n")}
|
|
|
174749
174746
|
process.exit(1);
|
|
174750
174747
|
}
|
|
174751
174748
|
const progress = new ProgressView("Pulling schema from database...", "Pulling schema from database...");
|
|
174752
|
-
const { schema: schemaFrom } = await introspect6(db, filter2, progress,
|
|
174749
|
+
const { schema: schemaFrom } = await introspect6(db, filter2, progress, migrations);
|
|
174753
174750
|
const { ddl: ddl1, errors: errors1 } = interimToDDL3(schemaFrom);
|
|
174754
174751
|
const { ddl: ddl22, errors: errors2 } = interimToDDL3(schemaTo);
|
|
174755
174752
|
if (errors1.length > 0) {
|
|
@@ -174956,7 +174953,7 @@ var init_pull_singlestore = __esm({
|
|
|
174956
174953
|
init_views();
|
|
174957
174954
|
init_generate_common();
|
|
174958
174955
|
init_pull_common();
|
|
174959
|
-
handle19 = async (casing2, out, breakpoints, credentials2, filters,
|
|
174956
|
+
handle19 = async (casing2, out, breakpoints, credentials2, filters, migrations, db) => {
|
|
174960
174957
|
if (!db) {
|
|
174961
174958
|
const { connectToSingleStore: connectToSingleStore2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
174962
174959
|
db = await connectToSingleStore2(credentials2);
|
|
@@ -174965,7 +174962,7 @@ var init_pull_singlestore = __esm({
|
|
|
174965
174962
|
const progress = new IntrospectProgress();
|
|
174966
174963
|
const task = fromDatabaseForDrizzle(db.db, db.database, filter2, (stage, count2, status) => {
|
|
174967
174964
|
progress.update(stage, count2, status);
|
|
174968
|
-
},
|
|
174965
|
+
}, migrations);
|
|
174969
174966
|
const res = await (0, import_hanji18.renderWithTask)(progress, task);
|
|
174970
174967
|
const { ddl: ddl7 } = interimToDDL(res);
|
|
174971
174968
|
const ts = ddlToTypeScript(ddl7, res.viewColumns, casing2, "singlestore");
|
|
@@ -180843,7 +180840,6 @@ var preparePushConfig = async (options, from) => {
|
|
|
180843
180840
|
process.exit(1);
|
|
180844
180841
|
}
|
|
180845
180842
|
const config = parsed.data;
|
|
180846
|
-
const { schema: migrationsSchema, table: migrationsTable } = config.migrations ?? {};
|
|
180847
180843
|
const schemaFiles = prepareFilenames(config.schema);
|
|
180848
180844
|
if (schemaFiles.length === 0) {
|
|
180849
180845
|
(0, import_hanji3.render)(`[${source_default.blue("i")}] No schema file in ${config.schema} was found`);
|
|
@@ -180870,8 +180866,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180870
180866
|
credentials: parsed2.data,
|
|
180871
180867
|
casing: config.casing,
|
|
180872
180868
|
filters,
|
|
180873
|
-
|
|
180874
|
-
migrationsTable
|
|
180869
|
+
migrations: config.migrations
|
|
180875
180870
|
};
|
|
180876
180871
|
}
|
|
180877
180872
|
if (config.dialect === "mysql") {
|
|
@@ -180889,8 +180884,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180889
180884
|
casing: config.casing,
|
|
180890
180885
|
filters,
|
|
180891
180886
|
explain: options.explain ?? false,
|
|
180892
|
-
|
|
180893
|
-
migrationsTable
|
|
180887
|
+
migrations: config.migrations
|
|
180894
180888
|
};
|
|
180895
180889
|
}
|
|
180896
180890
|
if (config.dialect === "singlestore") {
|
|
@@ -180907,8 +180901,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180907
180901
|
credentials: parsed2.data,
|
|
180908
180902
|
filters,
|
|
180909
180903
|
explain: options.explain ?? false,
|
|
180910
|
-
|
|
180911
|
-
migrationsTable
|
|
180904
|
+
migrations: config.migrations
|
|
180912
180905
|
};
|
|
180913
180906
|
}
|
|
180914
180907
|
if (config.dialect === "sqlite") {
|
|
@@ -180926,8 +180919,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180926
180919
|
casing: config.casing,
|
|
180927
180920
|
filters,
|
|
180928
180921
|
explain: options.explain ?? false,
|
|
180929
|
-
|
|
180930
|
-
migrationsTable
|
|
180922
|
+
migrations: config.migrations
|
|
180931
180923
|
};
|
|
180932
180924
|
}
|
|
180933
180925
|
if (config.dialect === "turso") {
|
|
@@ -180945,8 +180937,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180945
180937
|
casing: config.casing,
|
|
180946
180938
|
filters,
|
|
180947
180939
|
explain: options.explain ?? false,
|
|
180948
|
-
|
|
180949
|
-
migrationsTable
|
|
180940
|
+
migrations: config.migrations
|
|
180950
180941
|
};
|
|
180951
180942
|
}
|
|
180952
180943
|
if (config.dialect === "gel") {
|
|
@@ -180967,8 +180958,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180967
180958
|
casing: config.casing,
|
|
180968
180959
|
filters,
|
|
180969
180960
|
explain: options.explain ?? false,
|
|
180970
|
-
|
|
180971
|
-
migrationsTable
|
|
180961
|
+
migrations: config.migrations
|
|
180972
180962
|
};
|
|
180973
180963
|
}
|
|
180974
180964
|
if (config.dialect === "cockroach") {
|
|
@@ -180986,8 +180976,7 @@ var preparePushConfig = async (options, from) => {
|
|
|
180986
180976
|
casing: config.casing,
|
|
180987
180977
|
filters,
|
|
180988
180978
|
explain: options.explain ?? false,
|
|
180989
|
-
|
|
180990
|
-
migrationsTable
|
|
180979
|
+
migrations: config.migrations
|
|
180991
180980
|
};
|
|
180992
180981
|
}
|
|
180993
180982
|
if (config.dialect === "duckdb") {
|
|
@@ -181012,7 +181001,7 @@ var preparePullConfig = async (options, from) => {
|
|
|
181012
181001
|
}
|
|
181013
181002
|
const config = parsed.data;
|
|
181014
181003
|
const dialect5 = config.dialect;
|
|
181015
|
-
const
|
|
181004
|
+
const migrations = config.migrations;
|
|
181016
181005
|
const filters = {
|
|
181017
181006
|
tables: config.tablesFilter,
|
|
181018
181007
|
schemas: config.schemaFilter,
|
|
@@ -181033,8 +181022,7 @@ var preparePullConfig = async (options, from) => {
|
|
|
181033
181022
|
credentials: parsed2.data,
|
|
181034
181023
|
filters,
|
|
181035
181024
|
init: !!options.init,
|
|
181036
|
-
|
|
181037
|
-
migrationsTable: table6
|
|
181025
|
+
migrations
|
|
181038
181026
|
};
|
|
181039
181027
|
}
|
|
181040
181028
|
if (dialect5 === "mysql") {
|
|
@@ -181051,8 +181039,7 @@ var preparePullConfig = async (options, from) => {
|
|
|
181051
181039
|
credentials: parsed2.data,
|
|
181052
181040
|
filters,
|
|
181053
181041
|
init: !!options.init,
|
|
181054
|
-
|
|
181055
|
-
migrationsTable: table6
|
|
181042
|
+
migrations
|
|
181056
181043
|
};
|
|
181057
181044
|
}
|
|
181058
181045
|
if (dialect5 === "singlestore") {
|
|
@@ -181069,8 +181056,7 @@ var preparePullConfig = async (options, from) => {
|
|
|
181069
181056
|
credentials: parsed2.data,
|
|
181070
181057
|
filters,
|
|
181071
181058
|
init: !!options.init,
|
|
181072
|
-
|
|
181073
|
-
migrationsTable: table6
|
|
181059
|
+
migrations
|
|
181074
181060
|
};
|
|
181075
181061
|
}
|
|
181076
181062
|
if (dialect5 === "sqlite") {
|
|
@@ -181087,8 +181073,7 @@ var preparePullConfig = async (options, from) => {
|
|
|
181087
181073
|
credentials: parsed2.data,
|
|
181088
181074
|
filters,
|
|
181089
181075
|
init: !!options.init,
|
|
181090
|
-
|
|
181091
|
-
migrationsTable: table6
|
|
181076
|
+
migrations
|
|
181092
181077
|
};
|
|
181093
181078
|
}
|
|
181094
181079
|
if (dialect5 === "turso") {
|
|
@@ -181105,8 +181090,7 @@ var preparePullConfig = async (options, from) => {
|
|
|
181105
181090
|
credentials: parsed2.data,
|
|
181106
181091
|
filters,
|
|
181107
181092
|
init: !!options.init,
|
|
181108
|
-
|
|
181109
|
-
migrationsTable: table6
|
|
181093
|
+
migrations
|
|
181110
181094
|
};
|
|
181111
181095
|
}
|
|
181112
181096
|
if (dialect5 === "gel") {
|
|
@@ -181122,8 +181106,7 @@ var preparePullConfig = async (options, from) => {
|
|
|
181122
181106
|
casing: config.casing,
|
|
181123
181107
|
credentials: parsed2.data,
|
|
181124
181108
|
init: !!options.init,
|
|
181125
|
-
|
|
181126
|
-
migrationsTable: table6,
|
|
181109
|
+
migrations,
|
|
181127
181110
|
filters
|
|
181128
181111
|
};
|
|
181129
181112
|
}
|
|
@@ -181140,8 +181123,7 @@ var preparePullConfig = async (options, from) => {
|
|
|
181140
181123
|
credentials: parsed2.data,
|
|
181141
181124
|
filters,
|
|
181142
181125
|
init: !!options.init,
|
|
181143
|
-
|
|
181144
|
-
migrationsTable: table6
|
|
181126
|
+
migrations
|
|
181145
181127
|
};
|
|
181146
181128
|
}
|
|
181147
181129
|
if (dialect5 === "cockroach") {
|
|
@@ -181158,8 +181140,7 @@ var preparePullConfig = async (options, from) => {
|
|
|
181158
181140
|
credentials: parsed2.data,
|
|
181159
181141
|
filters,
|
|
181160
181142
|
init: !!options.init,
|
|
181161
|
-
|
|
181162
|
-
migrationsTable: table6
|
|
181143
|
+
migrations
|
|
181163
181144
|
};
|
|
181164
181145
|
}
|
|
181165
181146
|
if (dialect5 === "duckdb") {
|
|
@@ -182665,8 +182646,7 @@ var push = command({
|
|
|
182665
182646
|
casing: casing2,
|
|
182666
182647
|
filters,
|
|
182667
182648
|
explain: explain2,
|
|
182668
|
-
|
|
182669
|
-
migrationsTable
|
|
182649
|
+
migrations
|
|
182670
182650
|
} = config;
|
|
182671
182651
|
if (dialect5 === "mysql") {
|
|
182672
182652
|
const { handle: handle21 } = await Promise.resolve().then(() => (init_push_mysql(), push_mysql_exports));
|
|
@@ -182678,7 +182658,7 @@ var push = command({
|
|
|
182678
182658
|
casing2,
|
|
182679
182659
|
filters,
|
|
182680
182660
|
explain2,
|
|
182681
|
-
|
|
182661
|
+
migrations
|
|
182682
182662
|
);
|
|
182683
182663
|
} else if (dialect5 === "postgresql") {
|
|
182684
182664
|
if ("driver" in credentials2) {
|
|
@@ -182701,8 +182681,7 @@ var push = command({
|
|
|
182701
182681
|
force,
|
|
182702
182682
|
casing2,
|
|
182703
182683
|
explain2,
|
|
182704
|
-
|
|
182705
|
-
migrationsTable
|
|
182684
|
+
migrations
|
|
182706
182685
|
);
|
|
182707
182686
|
} else if (dialect5 === "sqlite") {
|
|
182708
182687
|
const { handle: sqlitePush } = await Promise.resolve().then(() => (init_push_sqlite(), push_sqlite_exports));
|
|
@@ -182714,7 +182693,7 @@ var push = command({
|
|
|
182714
182693
|
force,
|
|
182715
182694
|
casing2,
|
|
182716
182695
|
explain2,
|
|
182717
|
-
|
|
182696
|
+
migrations
|
|
182718
182697
|
);
|
|
182719
182698
|
} else if (dialect5 === "turso") {
|
|
182720
182699
|
const { handle: libSQLPush } = await Promise.resolve().then(() => (init_push_libsql(), push_libsql_exports));
|
|
@@ -182726,7 +182705,7 @@ var push = command({
|
|
|
182726
182705
|
force,
|
|
182727
182706
|
casing2,
|
|
182728
182707
|
explain2,
|
|
182729
|
-
|
|
182708
|
+
migrations
|
|
182730
182709
|
);
|
|
182731
182710
|
} else if (dialect5 === "singlestore") {
|
|
182732
182711
|
const { handle: handle21 } = await Promise.resolve().then(() => (init_push_singlestore(), push_singlestore_exports));
|
|
@@ -182738,7 +182717,7 @@ var push = command({
|
|
|
182738
182717
|
force,
|
|
182739
182718
|
casing2,
|
|
182740
182719
|
explain2,
|
|
182741
|
-
|
|
182720
|
+
migrations
|
|
182742
182721
|
);
|
|
182743
182722
|
} else if (dialect5 === "cockroach") {
|
|
182744
182723
|
const { handle: handle21 } = await Promise.resolve().then(() => (init_push_cockroach(), push_cockroach_exports));
|
|
@@ -182750,8 +182729,7 @@ var push = command({
|
|
|
182750
182729
|
force,
|
|
182751
182730
|
casing2,
|
|
182752
182731
|
explain2,
|
|
182753
|
-
|
|
182754
|
-
migrationsTable
|
|
182732
|
+
migrations
|
|
182755
182733
|
);
|
|
182756
182734
|
} else if (dialect5 === "mssql") {
|
|
182757
182735
|
const { handle: handle21 } = await Promise.resolve().then(() => (init_push_mssql(), push_mssql_exports));
|
|
@@ -182763,8 +182741,7 @@ var push = command({
|
|
|
182763
182741
|
force,
|
|
182764
182742
|
casing2,
|
|
182765
182743
|
explain2,
|
|
182766
|
-
|
|
182767
|
-
migrationsTable
|
|
182744
|
+
migrations
|
|
182768
182745
|
);
|
|
182769
182746
|
} else if (dialect5 === "gel") {
|
|
182770
182747
|
console.log(error2(`You can't use 'push' command with Gel dialect`));
|
|
@@ -182881,8 +182858,7 @@ var pull = command({
|
|
|
182881
182858
|
breakpoints,
|
|
182882
182859
|
filters,
|
|
182883
182860
|
init: init2,
|
|
182884
|
-
|
|
182885
|
-
migrationsTable
|
|
182861
|
+
migrations
|
|
182886
182862
|
} = config;
|
|
182887
182863
|
(0, import_fs19.mkdirSync)(out, { recursive: true });
|
|
182888
182864
|
let migrate2;
|
|
@@ -182911,31 +182887,31 @@ var pull = command({
|
|
|
182911
182887
|
const db = await preparePostgresDB2(credentials2);
|
|
182912
182888
|
migrate2 = db.migrate;
|
|
182913
182889
|
const { handle: introspectPostgres } = await Promise.resolve().then(() => (init_pull_postgres(), pull_postgres_exports));
|
|
182914
|
-
await introspectPostgres(casing2, out, breakpoints, credentials2, filters,
|
|
182890
|
+
await introspectPostgres(casing2, out, breakpoints, credentials2, filters, migrations, db);
|
|
182915
182891
|
} else if (dialect5 === "mysql") {
|
|
182916
182892
|
const { connectToMySQL: connectToMySQL2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
182917
182893
|
const db = await connectToMySQL2(credentials2);
|
|
182918
182894
|
migrate2 = db.migrate;
|
|
182919
182895
|
const { handle: introspectMysql } = await Promise.resolve().then(() => (init_pull_mysql(), pull_mysql_exports));
|
|
182920
|
-
await introspectMysql(casing2, out, breakpoints, credentials2, filters,
|
|
182896
|
+
await introspectMysql(casing2, out, breakpoints, credentials2, filters, migrations, db);
|
|
182921
182897
|
} else if (dialect5 === "sqlite") {
|
|
182922
182898
|
const { connectToSQLite: connectToSQLite2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
182923
182899
|
const db = await connectToSQLite2(credentials2);
|
|
182924
182900
|
migrate2 = db.migrate;
|
|
182925
182901
|
const { handle: handle21 } = await Promise.resolve().then(() => (init_pull_sqlite(), pull_sqlite_exports));
|
|
182926
|
-
await handle21(casing2, out, breakpoints, credentials2, filters, "sqlite",
|
|
182902
|
+
await handle21(casing2, out, breakpoints, credentials2, filters, "sqlite", migrations, db);
|
|
182927
182903
|
} else if (dialect5 === "turso") {
|
|
182928
182904
|
const { connectToLibSQL: connectToLibSQL2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
182929
182905
|
const db = await connectToLibSQL2(credentials2);
|
|
182930
182906
|
migrate2 = db.migrate;
|
|
182931
182907
|
const { handle: handle21 } = await Promise.resolve().then(() => (init_pull_libsql(), pull_libsql_exports));
|
|
182932
|
-
await handle21(casing2, out, breakpoints, credentials2, filters, "libsql",
|
|
182908
|
+
await handle21(casing2, out, breakpoints, credentials2, filters, "libsql", migrations, db);
|
|
182933
182909
|
} else if (dialect5 === "singlestore") {
|
|
182934
182910
|
const { connectToSingleStore: connectToSingleStore2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
182935
182911
|
const db = await connectToSingleStore2(credentials2);
|
|
182936
182912
|
migrate2 = db.migrate;
|
|
182937
182913
|
const { handle: handle21 } = await Promise.resolve().then(() => (init_pull_singlestore(), pull_singlestore_exports));
|
|
182938
|
-
await handle21(casing2, out, breakpoints, credentials2, filters,
|
|
182914
|
+
await handle21(casing2, out, breakpoints, credentials2, filters, migrations, db);
|
|
182939
182915
|
} else if (dialect5 === "gel") {
|
|
182940
182916
|
const { prepareGelDB: prepareGelDB2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
182941
182917
|
const db = await prepareGelDB2(credentials2);
|
|
@@ -182946,13 +182922,13 @@ var pull = command({
|
|
|
182946
182922
|
const db = await connectToMsSQL2(credentials2);
|
|
182947
182923
|
migrate2 = db.migrate;
|
|
182948
182924
|
const { handle: handle21 } = await Promise.resolve().then(() => (init_pull_mssql(), pull_mssql_exports));
|
|
182949
|
-
await handle21(casing2, out, breakpoints, credentials2, filters,
|
|
182925
|
+
await handle21(casing2, out, breakpoints, credentials2, filters, migrations, db);
|
|
182950
182926
|
} else if (dialect5 === "cockroach") {
|
|
182951
182927
|
const { prepareCockroach: prepareCockroach2 } = await Promise.resolve().then(() => (init_connections(), connections_exports));
|
|
182952
182928
|
const db = await prepareCockroach2(credentials2);
|
|
182953
182929
|
migrate2 = db.migrate;
|
|
182954
182930
|
const { handle: handle21 } = await Promise.resolve().then(() => (init_pull_cockroach(), pull_cockroach_exports));
|
|
182955
|
-
await handle21(casing2, out, breakpoints, credentials2, filters,
|
|
182931
|
+
await handle21(casing2, out, breakpoints, credentials2, filters, migrations, db);
|
|
182956
182932
|
} else {
|
|
182957
182933
|
assertUnreachable(dialect5);
|
|
182958
182934
|
}
|
|
@@ -182962,8 +182938,8 @@ var pull = command({
|
|
|
182962
182938
|
console.log(grey("Applying migration metadata to the database"));
|
|
182963
182939
|
const migrateInput = {
|
|
182964
182940
|
migrationsFolder: out,
|
|
182965
|
-
migrationsTable,
|
|
182966
|
-
migrationsSchema,
|
|
182941
|
+
migrationsTable: migrations.table,
|
|
182942
|
+
migrationsSchema: migrations.schema,
|
|
182967
182943
|
// Internal param - won't be displayed in types. Do not remove.
|
|
182968
182944
|
init: true
|
|
182969
182945
|
};
|