drizzle-kit 0.22.0-18d9643 → 0.22.0-29f7626
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/bin.cjs +28 -132
- package/package.json +1 -1
- package/payload.d.mts +18 -100
- package/payload.d.ts +18 -100
- package/payload.js +27 -124
- package/payload.mjs +27 -124
- package/utils-studio.js +3 -24
- package/utils-studio.mjs +3 -24
- package/utils.js +2 -23
- package/utils.mjs +2 -23
package/bin.cjs
CHANGED
|
@@ -5477,16 +5477,7 @@ var init_mysqlSchema = __esm({
|
|
|
5477
5477
|
objectType({ isDefaultAnExpression: booleanType().optional() }).optional()
|
|
5478
5478
|
)
|
|
5479
5479
|
}).optional()
|
|
5480
|
-
)
|
|
5481
|
-
indexes: recordType(
|
|
5482
|
-
stringType(),
|
|
5483
|
-
objectType({
|
|
5484
|
-
columns: recordType(
|
|
5485
|
-
stringType(),
|
|
5486
|
-
objectType({ isExpression: booleanType().optional() }).optional()
|
|
5487
|
-
)
|
|
5488
|
-
}).optional()
|
|
5489
|
-
).optional()
|
|
5480
|
+
)
|
|
5490
5481
|
}).optional();
|
|
5491
5482
|
dialect = literalType("mysql");
|
|
5492
5483
|
schemaHash = objectType({
|
|
@@ -6151,7 +6142,7 @@ var init_pgSchema = __esm({
|
|
|
6151
6142
|
});
|
|
6152
6143
|
|
|
6153
6144
|
// src/serializer/sqliteSchema.ts
|
|
6154
|
-
var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52,
|
|
6145
|
+
var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52, latestVersion, schemaInternal2, schemaV32, schemaV42, schemaV52, schema3, tableSquashed3, schemaSquashed2, SQLiteSquasher, squashSqliteScheme, drySQLite, sqliteSchemaV5, sqliteSchema, SQLiteSchemaSquashed, backwardCompatibleSqliteSchema;
|
|
6155
6146
|
var init_sqliteSchema = __esm({
|
|
6156
6147
|
"src/serializer/sqliteSchema.ts"() {
|
|
6157
6148
|
"use strict";
|
|
@@ -6229,17 +6220,6 @@ var init_sqliteSchema = __esm({
|
|
|
6229
6220
|
columns: recordType(stringType(), stringType())
|
|
6230
6221
|
})
|
|
6231
6222
|
}).strict();
|
|
6232
|
-
kitInternals3 = objectType({
|
|
6233
|
-
indexes: recordType(
|
|
6234
|
-
stringType(),
|
|
6235
|
-
objectType({
|
|
6236
|
-
columns: recordType(
|
|
6237
|
-
stringType(),
|
|
6238
|
-
objectType({ isExpression: booleanType().optional() }).optional()
|
|
6239
|
-
)
|
|
6240
|
-
}).optional()
|
|
6241
|
-
).optional()
|
|
6242
|
-
}).optional();
|
|
6243
6223
|
latestVersion = literalType("6");
|
|
6244
6224
|
schemaInternal2 = objectType({
|
|
6245
6225
|
version: latestVersion,
|
|
@@ -6249,8 +6229,7 @@ var init_sqliteSchema = __esm({
|
|
|
6249
6229
|
_meta: objectType({
|
|
6250
6230
|
tables: recordType(stringType(), stringType()),
|
|
6251
6231
|
columns: recordType(stringType(), stringType())
|
|
6252
|
-
})
|
|
6253
|
-
internal: kitInternals3
|
|
6232
|
+
})
|
|
6254
6233
|
}).strict();
|
|
6255
6234
|
schemaV32 = schemaInternalV32.merge(schemaHash3).strict();
|
|
6256
6235
|
schemaV42 = schemaInternalV42.merge(schemaHash3).strict();
|
|
@@ -15289,7 +15268,6 @@ var init_mysqlSerializer = __esm({
|
|
|
15289
15268
|
};
|
|
15290
15269
|
generateMySqlSnapshot = (tables) => {
|
|
15291
15270
|
const result = {};
|
|
15292
|
-
const internal = { tables: {}, indexes: {} };
|
|
15293
15271
|
for (const table4 of tables) {
|
|
15294
15272
|
const {
|
|
15295
15273
|
name: tableName,
|
|
@@ -15440,29 +15418,10 @@ The unique constraint ${source_default.underline.blue(
|
|
|
15440
15418
|
const columns2 = value.config.columns;
|
|
15441
15419
|
const name = value.config.name;
|
|
15442
15420
|
let indexColumns = columns2.map((it) => {
|
|
15443
|
-
var _a;
|
|
15444
15421
|
if ((0, import_drizzle_orm2.is)(it, import_drizzle_orm3.SQL)) {
|
|
15445
|
-
|
|
15446
|
-
if (typeof internal.indexes[name] === "undefined") {
|
|
15447
|
-
internal.indexes[name] = {
|
|
15448
|
-
columns: {
|
|
15449
|
-
[sql2]: {
|
|
15450
|
-
isExpression: true
|
|
15451
|
-
}
|
|
15452
|
-
}
|
|
15453
|
-
};
|
|
15454
|
-
} else {
|
|
15455
|
-
if (typeof ((_a = internal.indexes[name]) == null ? void 0 : _a.columns[sql2]) === "undefined") {
|
|
15456
|
-
internal.indexes[name].columns[sql2] = {
|
|
15457
|
-
isExpression: true
|
|
15458
|
-
};
|
|
15459
|
-
} else {
|
|
15460
|
-
internal.indexes[name].columns[sql2].isExpression = true;
|
|
15461
|
-
}
|
|
15462
|
-
}
|
|
15463
|
-
return sql2;
|
|
15422
|
+
return dialect4.sqlToQuery(it, "indexes").sql;
|
|
15464
15423
|
} else {
|
|
15465
|
-
return
|
|
15424
|
+
return it.name;
|
|
15466
15425
|
}
|
|
15467
15426
|
});
|
|
15468
15427
|
if (value.config.unique) {
|
|
@@ -15529,13 +15488,12 @@ We have encountered a collision between the index name on columns ${source_defau
|
|
|
15529
15488
|
_meta: {
|
|
15530
15489
|
tables: {},
|
|
15531
15490
|
columns: {}
|
|
15532
|
-
}
|
|
15533
|
-
internal
|
|
15491
|
+
}
|
|
15534
15492
|
};
|
|
15535
15493
|
};
|
|
15536
15494
|
fromDatabase = async (db2, inputSchema, tablesFilter = (table4) => true, progressCallback) => {
|
|
15537
15495
|
const result = {};
|
|
15538
|
-
const internals = { tables: {}
|
|
15496
|
+
const internals = { tables: {} };
|
|
15539
15497
|
const columns = await db2.query(`select * from information_schema.columns
|
|
15540
15498
|
where table_schema = '${inputSchema}' and table_name != '__drizzle_migrations'
|
|
15541
15499
|
order by table_name, ordinal_position;`);
|
|
@@ -16750,7 +16708,6 @@ var init_sqliteSerializer = __esm({
|
|
|
16750
16708
|
dialect6 = new import_sqlite_core2.SQLiteSyncDialect();
|
|
16751
16709
|
generateSqliteSnapshot = (tables) => {
|
|
16752
16710
|
const result = {};
|
|
16753
|
-
const internal = { indexes: {} };
|
|
16754
16711
|
for (const table4 of tables) {
|
|
16755
16712
|
const columnsObject = {};
|
|
16756
16713
|
const indexesObject = {};
|
|
@@ -16836,27 +16793,8 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
|
|
|
16836
16793
|
const columns2 = value.config.columns;
|
|
16837
16794
|
const name = value.config.name;
|
|
16838
16795
|
let indexColumns = columns2.map((it) => {
|
|
16839
|
-
var _a;
|
|
16840
16796
|
if ((0, import_drizzle_orm7.is)(it, import_drizzle_orm7.SQL)) {
|
|
16841
|
-
|
|
16842
|
-
if (typeof internal.indexes[name] === "undefined") {
|
|
16843
|
-
internal.indexes[name] = {
|
|
16844
|
-
columns: {
|
|
16845
|
-
[sql2]: {
|
|
16846
|
-
isExpression: true
|
|
16847
|
-
}
|
|
16848
|
-
}
|
|
16849
|
-
};
|
|
16850
|
-
} else {
|
|
16851
|
-
if (typeof ((_a = internal.indexes[name]) == null ? void 0 : _a.columns[sql2]) === "undefined") {
|
|
16852
|
-
internal.indexes[name].columns[sql2] = {
|
|
16853
|
-
isExpression: true
|
|
16854
|
-
};
|
|
16855
|
-
} else {
|
|
16856
|
-
internal.indexes[name].columns[sql2].isExpression = true;
|
|
16857
|
-
}
|
|
16858
|
-
}
|
|
16859
|
-
return sql2;
|
|
16797
|
+
return dialect6.sqlToQuery(it, "indexes").sql;
|
|
16860
16798
|
} else {
|
|
16861
16799
|
return it.name;
|
|
16862
16800
|
}
|
|
@@ -16930,8 +16868,7 @@ The unique constraint ${source_default.underline.blue(
|
|
|
16930
16868
|
_meta: {
|
|
16931
16869
|
tables: {},
|
|
16932
16870
|
columns: {}
|
|
16933
|
-
}
|
|
16934
|
-
internal
|
|
16871
|
+
}
|
|
16935
16872
|
};
|
|
16936
16873
|
};
|
|
16937
16874
|
fromDatabase3 = async (db2, tablesFilter = (table4) => true, progressCallback) => {
|
|
@@ -17434,14 +17371,7 @@ var init_sqlgenerator = __esm({
|
|
|
17434
17371
|
return statement.type === "create_table" && dialect7 === "mysql";
|
|
17435
17372
|
}
|
|
17436
17373
|
convert(st) {
|
|
17437
|
-
const {
|
|
17438
|
-
tableName,
|
|
17439
|
-
columns,
|
|
17440
|
-
schema: schema5,
|
|
17441
|
-
compositePKs,
|
|
17442
|
-
uniqueConstraints,
|
|
17443
|
-
internals
|
|
17444
|
-
} = st;
|
|
17374
|
+
const { tableName, columns, schema: schema5, compositePKs, uniqueConstraints } = st;
|
|
17445
17375
|
let statement = "";
|
|
17446
17376
|
statement += `CREATE TABLE \`${tableName}\` (
|
|
17447
17377
|
`;
|
|
@@ -17464,11 +17394,7 @@ var init_sqlgenerator = __esm({
|
|
|
17464
17394
|
for (const uniqueConstraint4 of uniqueConstraints) {
|
|
17465
17395
|
statement += ",\n";
|
|
17466
17396
|
const unsquashedUnique = MySqlSquasher.unsquashUnique(uniqueConstraint4);
|
|
17467
|
-
|
|
17468
|
-
var _a, _b;
|
|
17469
|
-
return (internals == null ? void 0 : internals.indexes) ? ((_b = (_a = internals == null ? void 0 : internals.indexes[unsquashedUnique.name]) == null ? void 0 : _a.columns[it]) == null ? void 0 : _b.isExpression) ? it : `\`${it}\`` : `\`${it}\``;
|
|
17470
|
-
}).join(",");
|
|
17471
|
-
statement += ` CONSTRAINT \`${unsquashedUnique.name}\` UNIQUE(${uniqueString})`;
|
|
17397
|
+
statement += ` CONSTRAINT \`${unsquashedUnique.name}\` UNIQUE(\`${unsquashedUnique.columns.join(`\`,\``)}\`)`;
|
|
17472
17398
|
}
|
|
17473
17399
|
}
|
|
17474
17400
|
statement += `
|
|
@@ -18397,11 +18323,8 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT ${statement.newCo
|
|
|
18397
18323
|
statement.data
|
|
18398
18324
|
);
|
|
18399
18325
|
const indexPart = isUnique ? "UNIQUE INDEX" : "INDEX";
|
|
18400
|
-
const
|
|
18401
|
-
|
|
18402
|
-
return ((_a = statement.internal) == null ? void 0 : _a.indexes) ? ((_d = (_c = (_b = statement.internal) == null ? void 0 : _b.indexes[name]) == null ? void 0 : _c.columns[it]) == null ? void 0 : _d.isExpression) ? it : `\`${it}\`` : `\`${it}\``;
|
|
18403
|
-
}).join(",");
|
|
18404
|
-
return `CREATE ${indexPart} \`${name}\` ON \`${statement.tableName}\` (${uniqueString});`;
|
|
18326
|
+
const value = columns.map((it) => `\`${it}\``).join(",");
|
|
18327
|
+
return `CREATE ${indexPart} \`${name}\` ON \`${statement.tableName}\` (${value});`;
|
|
18405
18328
|
}
|
|
18406
18329
|
};
|
|
18407
18330
|
CreateSqliteIndexConvertor = class extends Convertor {
|
|
@@ -18414,11 +18337,8 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT ${statement.newCo
|
|
|
18414
18337
|
);
|
|
18415
18338
|
const indexPart = isUnique ? "UNIQUE INDEX" : "INDEX";
|
|
18416
18339
|
const whereStatement = where ? ` WHERE ${where}` : "";
|
|
18417
|
-
const
|
|
18418
|
-
|
|
18419
|
-
return ((_a = statement.internal) == null ? void 0 : _a.indexes) ? ((_d = (_c = (_b = statement.internal) == null ? void 0 : _b.indexes[name]) == null ? void 0 : _c.columns[it]) == null ? void 0 : _d.isExpression) ? it : `\`${it}\`` : `\`${it}\``;
|
|
18420
|
-
}).join(",");
|
|
18421
|
-
return `CREATE ${indexPart} \`${name}\` ON \`${statement.tableName}\` (${uniqueString})${whereStatement};`;
|
|
18340
|
+
const value = columns.map((it) => `\`${it}\``).join(",");
|
|
18341
|
+
return `CREATE ${indexPart} \`${name}\` ON \`${statement.tableName}\` (${value})${whereStatement};`;
|
|
18422
18342
|
}
|
|
18423
18343
|
};
|
|
18424
18344
|
PgDropIndexConvertor = class extends Convertor {
|
|
@@ -19066,7 +18986,7 @@ var init_jsonStatements = __esm({
|
|
|
19066
18986
|
uniqueConstraints: Object.values(uniqueConstraints)
|
|
19067
18987
|
};
|
|
19068
18988
|
};
|
|
19069
|
-
prepareMySqlCreateTableJson = (table4, json2
|
|
18989
|
+
prepareMySqlCreateTableJson = (table4, json2) => {
|
|
19070
18990
|
const { name, schema: schema5, columns, compositePrimaryKeys, uniqueConstraints } = table4;
|
|
19071
18991
|
return {
|
|
19072
18992
|
type: "create_table",
|
|
@@ -19075,8 +18995,7 @@ var init_jsonStatements = __esm({
|
|
|
19075
18995
|
columns: Object.values(columns),
|
|
19076
18996
|
compositePKs: Object.values(compositePrimaryKeys),
|
|
19077
18997
|
compositePkName: Object.values(compositePrimaryKeys).length > 0 ? json2.tables[name].compositePrimaryKeys[MySqlSquasher.unsquashPK(Object.values(compositePrimaryKeys)[0]).name].name : "",
|
|
19078
|
-
uniqueConstraints: Object.values(uniqueConstraints)
|
|
19079
|
-
internals
|
|
18998
|
+
uniqueConstraints: Object.values(uniqueConstraints)
|
|
19080
18999
|
};
|
|
19081
19000
|
};
|
|
19082
19001
|
prepareSQLiteCreateTable = (table4) => {
|
|
@@ -19833,14 +19752,13 @@ var init_jsonStatements = __esm({
|
|
|
19833
19752
|
};
|
|
19834
19753
|
});
|
|
19835
19754
|
};
|
|
19836
|
-
prepareCreateIndexesJson = (tableName, schema5, indexes
|
|
19755
|
+
prepareCreateIndexesJson = (tableName, schema5, indexes) => {
|
|
19837
19756
|
return Object.values(indexes).map((indexData) => {
|
|
19838
19757
|
return {
|
|
19839
19758
|
type: "create_index",
|
|
19840
19759
|
tableName,
|
|
19841
19760
|
data: indexData,
|
|
19842
|
-
schema: schema5
|
|
19843
|
-
internal
|
|
19761
|
+
schema: schema5
|
|
19844
19762
|
};
|
|
19845
19763
|
});
|
|
19846
19764
|
};
|
|
@@ -20745,12 +20663,7 @@ var init_snapshotsDiffer = __esm({
|
|
|
20745
20663
|
const typedResult = diffResultSchemeMysql.parse(diffResult);
|
|
20746
20664
|
const jsonStatements = [];
|
|
20747
20665
|
const jsonCreateIndexesForCreatedTables = createdTables.map((it) => {
|
|
20748
|
-
return prepareCreateIndexesJson(
|
|
20749
|
-
it.name,
|
|
20750
|
-
it.schema,
|
|
20751
|
-
it.indexes,
|
|
20752
|
-
curFull.internal
|
|
20753
|
-
);
|
|
20666
|
+
return prepareCreateIndexesJson(it.name, it.schema, it.indexes);
|
|
20754
20667
|
}).flat();
|
|
20755
20668
|
const jsonDropTables = deletedTables.map((it) => {
|
|
20756
20669
|
return prepareDropTableJson(it);
|
|
@@ -20849,8 +20762,7 @@ var init_snapshotsDiffer = __esm({
|
|
|
20849
20762
|
return prepareCreateIndexesJson(
|
|
20850
20763
|
it.name,
|
|
20851
20764
|
it.schema,
|
|
20852
|
-
it.addedIndexes || {}
|
|
20853
|
-
curFull.internal
|
|
20765
|
+
it.addedIndexes || {}
|
|
20854
20766
|
);
|
|
20855
20767
|
}).flat();
|
|
20856
20768
|
const jsonDropIndexesForAllAlteredTables = alteredTables.map((it) => {
|
|
@@ -20910,11 +20822,7 @@ var init_snapshotsDiffer = __esm({
|
|
|
20910
20822
|
(t2) => t2.type === "delete_reference"
|
|
20911
20823
|
);
|
|
20912
20824
|
const jsonMySqlCreateTables = createdTables.map((it) => {
|
|
20913
|
-
return prepareMySqlCreateTableJson(
|
|
20914
|
-
it,
|
|
20915
|
-
curFull,
|
|
20916
|
-
curFull.internal
|
|
20917
|
-
);
|
|
20825
|
+
return prepareMySqlCreateTableJson(it, curFull);
|
|
20918
20826
|
});
|
|
20919
20827
|
jsonStatements.push(...jsonMySqlCreateTables);
|
|
20920
20828
|
jsonStatements.push(...jsonDropTables);
|
|
@@ -20954,7 +20862,7 @@ var init_snapshotsDiffer = __esm({
|
|
|
20954
20862
|
_meta
|
|
20955
20863
|
};
|
|
20956
20864
|
};
|
|
20957
|
-
applySqliteSnapshotsDiff = async (json1, json2, tablesResolver2, columnsResolver2
|
|
20865
|
+
applySqliteSnapshotsDiff = async (json1, json2, tablesResolver2, columnsResolver2) => {
|
|
20958
20866
|
const tablesDiff = diffSchemasOrTables(json1.tables, json2.tables);
|
|
20959
20867
|
const {
|
|
20960
20868
|
created: createdTables,
|
|
@@ -21034,12 +20942,7 @@ var init_snapshotsDiffer = __esm({
|
|
|
21034
20942
|
return prepareSQLiteCreateTable(it);
|
|
21035
20943
|
});
|
|
21036
20944
|
const jsonCreateIndexesForCreatedTables = createdTables.map((it) => {
|
|
21037
|
-
return prepareCreateIndexesJson(
|
|
21038
|
-
it.name,
|
|
21039
|
-
it.schema,
|
|
21040
|
-
it.indexes,
|
|
21041
|
-
curFull.internal
|
|
21042
|
-
);
|
|
20945
|
+
return prepareCreateIndexesJson(it.name, it.schema, it.indexes);
|
|
21043
20946
|
}).flat();
|
|
21044
20947
|
const jsonDropTables = deletedTables.map((it) => {
|
|
21045
20948
|
return prepareDropTableJson(it);
|
|
@@ -21141,8 +21044,7 @@ var init_snapshotsDiffer = __esm({
|
|
|
21141
21044
|
return prepareCreateIndexesJson(
|
|
21142
21045
|
it.name,
|
|
21143
21046
|
it.schema,
|
|
21144
|
-
it.addedIndexes || {}
|
|
21145
|
-
curFull.internal
|
|
21047
|
+
it.addedIndexes || {}
|
|
21146
21048
|
);
|
|
21147
21049
|
}).flat();
|
|
21148
21050
|
const jsonDropIndexesForAllAlteredTables = allAltered.map((it) => {
|
|
@@ -22833,9 +22735,7 @@ var init_migrate = __esm({
|
|
|
22833
22735
|
squashedPrev,
|
|
22834
22736
|
squashedCur,
|
|
22835
22737
|
tablesResolver,
|
|
22836
|
-
columnsResolver
|
|
22837
|
-
validatedPrev,
|
|
22838
|
-
validatedCur
|
|
22738
|
+
columnsResolver
|
|
22839
22739
|
);
|
|
22840
22740
|
writeResult({
|
|
22841
22741
|
cur,
|
|
@@ -22861,9 +22761,7 @@ var init_migrate = __esm({
|
|
|
22861
22761
|
squashedPrev,
|
|
22862
22762
|
squashedCur,
|
|
22863
22763
|
tablesResolver,
|
|
22864
|
-
columnsResolver
|
|
22865
|
-
validatedPrev,
|
|
22866
|
-
validatedCur
|
|
22764
|
+
columnsResolver
|
|
22867
22765
|
);
|
|
22868
22766
|
return {
|
|
22869
22767
|
sqlStatements,
|
|
@@ -117025,9 +116923,7 @@ var init_introspect = __esm({
|
|
|
117025
116923
|
squashSqliteScheme(drySQLite),
|
|
117026
116924
|
squashSqliteScheme(schema5),
|
|
117027
116925
|
tablesResolver,
|
|
117028
|
-
columnsResolver
|
|
117029
|
-
drySQLite,
|
|
117030
|
-
schema5
|
|
116926
|
+
columnsResolver
|
|
117031
116927
|
);
|
|
117032
116928
|
writeResult({
|
|
117033
116929
|
cur: schema5,
|
package/package.json
CHANGED
package/payload.d.mts
CHANGED
|
@@ -50,14 +50,14 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
50
50
|
nulls: zod.ZodOptional<zod.ZodString>;
|
|
51
51
|
opclass: zod.ZodOptional<zod.ZodString>;
|
|
52
52
|
}, "strip", zod.ZodTypeAny, {
|
|
53
|
-
isExpression: boolean;
|
|
54
53
|
expression: string;
|
|
54
|
+
isExpression: boolean;
|
|
55
55
|
asc: boolean;
|
|
56
56
|
nulls?: string | undefined;
|
|
57
57
|
opclass?: string | undefined;
|
|
58
58
|
}, {
|
|
59
|
-
isExpression: boolean;
|
|
60
59
|
expression: string;
|
|
60
|
+
isExpression: boolean;
|
|
61
61
|
asc: boolean;
|
|
62
62
|
nulls?: string | undefined;
|
|
63
63
|
opclass?: string | undefined;
|
|
@@ -70,8 +70,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
70
70
|
}, "strict", zod.ZodTypeAny, {
|
|
71
71
|
name: string;
|
|
72
72
|
columns: {
|
|
73
|
-
isExpression: boolean;
|
|
74
73
|
expression: string;
|
|
74
|
+
isExpression: boolean;
|
|
75
75
|
asc: boolean;
|
|
76
76
|
nulls?: string | undefined;
|
|
77
77
|
opclass?: string | undefined;
|
|
@@ -84,8 +84,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
84
84
|
}, {
|
|
85
85
|
name: string;
|
|
86
86
|
columns: {
|
|
87
|
-
isExpression: boolean;
|
|
88
87
|
expression: string;
|
|
88
|
+
isExpression: boolean;
|
|
89
89
|
asc: boolean;
|
|
90
90
|
nulls?: string | undefined;
|
|
91
91
|
opclass?: string | undefined;
|
|
@@ -163,8 +163,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
163
163
|
indexes: Record<string, {
|
|
164
164
|
name: string;
|
|
165
165
|
columns: {
|
|
166
|
-
isExpression: boolean;
|
|
167
166
|
expression: string;
|
|
167
|
+
isExpression: boolean;
|
|
168
168
|
asc: boolean;
|
|
169
169
|
nulls?: string | undefined;
|
|
170
170
|
opclass?: string | undefined;
|
|
@@ -211,8 +211,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
211
211
|
indexes: Record<string, {
|
|
212
212
|
name: string;
|
|
213
213
|
columns: {
|
|
214
|
-
isExpression: boolean;
|
|
215
214
|
expression: string;
|
|
215
|
+
isExpression: boolean;
|
|
216
216
|
asc: boolean;
|
|
217
217
|
nulls?: string | undefined;
|
|
218
218
|
opclass?: string | undefined;
|
|
@@ -336,8 +336,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
336
336
|
indexes: Record<string, {
|
|
337
337
|
name: string;
|
|
338
338
|
columns: {
|
|
339
|
-
isExpression: boolean;
|
|
340
339
|
expression: string;
|
|
340
|
+
isExpression: boolean;
|
|
341
341
|
asc: boolean;
|
|
342
342
|
nulls?: string | undefined;
|
|
343
343
|
opclass?: string | undefined;
|
|
@@ -410,8 +410,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
410
410
|
indexes: Record<string, {
|
|
411
411
|
name: string;
|
|
412
412
|
columns: {
|
|
413
|
-
isExpression: boolean;
|
|
414
413
|
expression: string;
|
|
414
|
+
isExpression: boolean;
|
|
415
415
|
asc: boolean;
|
|
416
416
|
nulls?: string | undefined;
|
|
417
417
|
opclass?: string | undefined;
|
|
@@ -636,37 +636,6 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
636
636
|
columns: Record<string, string>;
|
|
637
637
|
tables: Record<string, string>;
|
|
638
638
|
}>;
|
|
639
|
-
internal: zod.ZodOptional<zod.ZodObject<{
|
|
640
|
-
indexes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
|
|
641
|
-
columns: zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
|
|
642
|
-
isExpression: zod.ZodOptional<zod.ZodBoolean>;
|
|
643
|
-
}, "strip", zod.ZodTypeAny, {
|
|
644
|
-
isExpression?: boolean | undefined;
|
|
645
|
-
}, {
|
|
646
|
-
isExpression?: boolean | undefined;
|
|
647
|
-
}>>>;
|
|
648
|
-
}, "strip", zod.ZodTypeAny, {
|
|
649
|
-
columns: Record<string, {
|
|
650
|
-
isExpression?: boolean | undefined;
|
|
651
|
-
} | undefined>;
|
|
652
|
-
}, {
|
|
653
|
-
columns: Record<string, {
|
|
654
|
-
isExpression?: boolean | undefined;
|
|
655
|
-
} | undefined>;
|
|
656
|
-
}>>>>;
|
|
657
|
-
}, "strip", zod.ZodTypeAny, {
|
|
658
|
-
indexes?: Record<string, {
|
|
659
|
-
columns: Record<string, {
|
|
660
|
-
isExpression?: boolean | undefined;
|
|
661
|
-
} | undefined>;
|
|
662
|
-
} | undefined> | undefined;
|
|
663
|
-
}, {
|
|
664
|
-
indexes?: Record<string, {
|
|
665
|
-
columns: Record<string, {
|
|
666
|
-
isExpression?: boolean | undefined;
|
|
667
|
-
} | undefined>;
|
|
668
|
-
} | undefined> | undefined;
|
|
669
|
-
}>>;
|
|
670
639
|
}, {
|
|
671
640
|
id: zod.ZodString;
|
|
672
641
|
prevId: zod.ZodString;
|
|
@@ -714,13 +683,6 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
714
683
|
tables: Record<string, string>;
|
|
715
684
|
};
|
|
716
685
|
enums: {};
|
|
717
|
-
internal?: {
|
|
718
|
-
indexes?: Record<string, {
|
|
719
|
-
columns: Record<string, {
|
|
720
|
-
isExpression?: boolean | undefined;
|
|
721
|
-
} | undefined>;
|
|
722
|
-
} | undefined> | undefined;
|
|
723
|
-
} | undefined;
|
|
724
686
|
}, {
|
|
725
687
|
tables: Record<string, {
|
|
726
688
|
name: string;
|
|
@@ -765,13 +727,6 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
765
727
|
tables: Record<string, string>;
|
|
766
728
|
};
|
|
767
729
|
enums: {};
|
|
768
|
-
internal?: {
|
|
769
|
-
indexes?: Record<string, {
|
|
770
|
-
columns: Record<string, {
|
|
771
|
-
isExpression?: boolean | undefined;
|
|
772
|
-
} | undefined>;
|
|
773
|
-
} | undefined> | undefined;
|
|
774
|
-
} | undefined;
|
|
775
730
|
}>;
|
|
776
731
|
type SQLiteSchema = TypeOf<typeof schema$1>;
|
|
777
732
|
|
|
@@ -956,7 +911,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
956
911
|
tables: Record<string, string>;
|
|
957
912
|
}>;
|
|
958
913
|
internal: zod.ZodOptional<zod.ZodObject<{
|
|
959
|
-
tables: zod.
|
|
914
|
+
tables: zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
|
|
960
915
|
columns: zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
|
|
961
916
|
isDefaultAnExpression: zod.ZodOptional<zod.ZodBoolean>;
|
|
962
917
|
}, "strip", zod.ZodTypeAny, {
|
|
@@ -972,46 +927,19 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
972
927
|
columns: Record<string, {
|
|
973
928
|
isDefaultAnExpression?: boolean | undefined;
|
|
974
929
|
} | undefined>;
|
|
975
|
-
}
|
|
976
|
-
indexes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
|
|
977
|
-
columns: zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
|
|
978
|
-
isExpression: zod.ZodOptional<zod.ZodBoolean>;
|
|
979
|
-
}, "strip", zod.ZodTypeAny, {
|
|
980
|
-
isExpression?: boolean | undefined;
|
|
981
|
-
}, {
|
|
982
|
-
isExpression?: boolean | undefined;
|
|
983
|
-
}>>>;
|
|
984
|
-
}, "strip", zod.ZodTypeAny, {
|
|
985
|
-
columns: Record<string, {
|
|
986
|
-
isExpression?: boolean | undefined;
|
|
987
|
-
} | undefined>;
|
|
988
|
-
}, {
|
|
989
|
-
columns: Record<string, {
|
|
990
|
-
isExpression?: boolean | undefined;
|
|
991
|
-
} | undefined>;
|
|
992
|
-
}>>>>;
|
|
930
|
+
}>>>;
|
|
993
931
|
}, "strip", zod.ZodTypeAny, {
|
|
994
|
-
|
|
995
|
-
columns: Record<string, {
|
|
996
|
-
isExpression?: boolean | undefined;
|
|
997
|
-
} | undefined>;
|
|
998
|
-
} | undefined> | undefined;
|
|
999
|
-
tables?: Record<string, {
|
|
932
|
+
tables: Record<string, {
|
|
1000
933
|
columns: Record<string, {
|
|
1001
934
|
isDefaultAnExpression?: boolean | undefined;
|
|
1002
935
|
} | undefined>;
|
|
1003
|
-
} | undefined
|
|
936
|
+
} | undefined>;
|
|
1004
937
|
}, {
|
|
1005
|
-
|
|
1006
|
-
columns: Record<string, {
|
|
1007
|
-
isExpression?: boolean | undefined;
|
|
1008
|
-
} | undefined>;
|
|
1009
|
-
} | undefined> | undefined;
|
|
1010
|
-
tables?: Record<string, {
|
|
938
|
+
tables: Record<string, {
|
|
1011
939
|
columns: Record<string, {
|
|
1012
940
|
isDefaultAnExpression?: boolean | undefined;
|
|
1013
941
|
} | undefined>;
|
|
1014
|
-
} | undefined
|
|
942
|
+
} | undefined>;
|
|
1015
943
|
}>>;
|
|
1016
944
|
}, {
|
|
1017
945
|
id: zod.ZodString;
|
|
@@ -1063,16 +991,11 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
1063
991
|
tables: Record<string, string>;
|
|
1064
992
|
};
|
|
1065
993
|
internal?: {
|
|
1066
|
-
|
|
1067
|
-
columns: Record<string, {
|
|
1068
|
-
isExpression?: boolean | undefined;
|
|
1069
|
-
} | undefined>;
|
|
1070
|
-
} | undefined> | undefined;
|
|
1071
|
-
tables?: Record<string, {
|
|
994
|
+
tables: Record<string, {
|
|
1072
995
|
columns: Record<string, {
|
|
1073
996
|
isDefaultAnExpression?: boolean | undefined;
|
|
1074
997
|
} | undefined>;
|
|
1075
|
-
} | undefined
|
|
998
|
+
} | undefined>;
|
|
1076
999
|
} | undefined;
|
|
1077
1000
|
}, {
|
|
1078
1001
|
tables: Record<string, {
|
|
@@ -1121,16 +1044,11 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
|
1121
1044
|
tables: Record<string, string>;
|
|
1122
1045
|
};
|
|
1123
1046
|
internal?: {
|
|
1124
|
-
|
|
1125
|
-
columns: Record<string, {
|
|
1126
|
-
isExpression?: boolean | undefined;
|
|
1127
|
-
} | undefined>;
|
|
1128
|
-
} | undefined> | undefined;
|
|
1129
|
-
tables?: Record<string, {
|
|
1047
|
+
tables: Record<string, {
|
|
1130
1048
|
columns: Record<string, {
|
|
1131
1049
|
isDefaultAnExpression?: boolean | undefined;
|
|
1132
1050
|
} | undefined>;
|
|
1133
|
-
} | undefined
|
|
1051
|
+
} | undefined>;
|
|
1134
1052
|
} | undefined;
|
|
1135
1053
|
}>;
|
|
1136
1054
|
type MySqlSchema = TypeOf<typeof schema>;
|