drizzle-kit 0.22.0-25da1e6 → 0.22.0-29f7626
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +30 -140
- 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/payload.mjs
CHANGED
@@ -8005,16 +8005,7 @@ var init_mysqlSchema = __esm({
|
|
8005
8005
|
object({ isDefaultAnExpression: boolean().optional() }).optional()
|
8006
8006
|
)
|
8007
8007
|
}).optional()
|
8008
|
-
)
|
8009
|
-
indexes: record(
|
8010
|
-
string(),
|
8011
|
-
object({
|
8012
|
-
columns: record(
|
8013
|
-
string(),
|
8014
|
-
object({ isExpression: boolean().optional() }).optional()
|
8015
|
-
)
|
8016
|
-
}).optional()
|
8017
|
-
).optional()
|
8008
|
+
)
|
8018
8009
|
}).optional();
|
8019
8010
|
dialect = literal("mysql");
|
8020
8011
|
schemaHash = object({
|
@@ -8699,7 +8690,7 @@ import {
|
|
8699
8690
|
literal as literal3,
|
8700
8691
|
union as union4
|
8701
8692
|
} from "zod";
|
8702
|
-
var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52,
|
8693
|
+
var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52, latestVersion, schemaInternal2, schemaV32, schemaV42, schemaV52, schema2, tableSquashed3, schemaSquashed2, SQLiteSquasher, squashSqliteScheme, drySQLite, sqliteSchemaV5, sqliteSchema, SQLiteSchemaSquashed, backwardCompatibleSqliteSchema;
|
8703
8694
|
var init_sqliteSchema = __esm({
|
8704
8695
|
"src/serializer/sqliteSchema.ts"() {
|
8705
8696
|
"use strict";
|
@@ -8776,17 +8767,6 @@ var init_sqliteSchema = __esm({
|
|
8776
8767
|
columns: record3(string3(), string3())
|
8777
8768
|
})
|
8778
8769
|
}).strict();
|
8779
|
-
kitInternals3 = object3({
|
8780
|
-
indexes: record3(
|
8781
|
-
string3(),
|
8782
|
-
object3({
|
8783
|
-
columns: record3(
|
8784
|
-
string3(),
|
8785
|
-
object3({ isExpression: boolean3().optional() }).optional()
|
8786
|
-
)
|
8787
|
-
}).optional()
|
8788
|
-
).optional()
|
8789
|
-
}).optional();
|
8790
8770
|
latestVersion = literal3("6");
|
8791
8771
|
schemaInternal2 = object3({
|
8792
8772
|
version: latestVersion,
|
@@ -8796,8 +8776,7 @@ var init_sqliteSchema = __esm({
|
|
8796
8776
|
_meta: object3({
|
8797
8777
|
tables: record3(string3(), string3()),
|
8798
8778
|
columns: record3(string3(), string3())
|
8799
|
-
})
|
8800
|
-
internal: kitInternals3
|
8779
|
+
})
|
8801
8780
|
}).strict();
|
8802
8781
|
schemaV32 = schemaInternalV32.merge(schemaHash3).strict();
|
8803
8782
|
schemaV42 = schemaInternalV42.merge(schemaHash3).strict();
|
@@ -12161,7 +12140,7 @@ var init_jsonStatements = __esm({
|
|
12161
12140
|
uniqueConstraints: Object.values(uniqueConstraints)
|
12162
12141
|
};
|
12163
12142
|
};
|
12164
|
-
prepareMySqlCreateTableJson = (table4, json2
|
12143
|
+
prepareMySqlCreateTableJson = (table4, json2) => {
|
12165
12144
|
const { name: name2, schema: schema4, columns, compositePrimaryKeys, uniqueConstraints } = table4;
|
12166
12145
|
return {
|
12167
12146
|
type: "create_table",
|
@@ -12170,8 +12149,7 @@ var init_jsonStatements = __esm({
|
|
12170
12149
|
columns: Object.values(columns),
|
12171
12150
|
compositePKs: Object.values(compositePrimaryKeys),
|
12172
12151
|
compositePkName: Object.values(compositePrimaryKeys).length > 0 ? json2.tables[name2].compositePrimaryKeys[MySqlSquasher.unsquashPK(Object.values(compositePrimaryKeys)[0]).name].name : "",
|
12173
|
-
uniqueConstraints: Object.values(uniqueConstraints)
|
12174
|
-
internals
|
12152
|
+
uniqueConstraints: Object.values(uniqueConstraints)
|
12175
12153
|
};
|
12176
12154
|
};
|
12177
12155
|
prepareSQLiteCreateTable = (table4) => {
|
@@ -12925,14 +12903,13 @@ var init_jsonStatements = __esm({
|
|
12925
12903
|
};
|
12926
12904
|
});
|
12927
12905
|
};
|
12928
|
-
prepareCreateIndexesJson = (tableName, schema4, indexes
|
12906
|
+
prepareCreateIndexesJson = (tableName, schema4, indexes) => {
|
12929
12907
|
return Object.values(indexes).map((indexData) => {
|
12930
12908
|
return {
|
12931
12909
|
type: "create_index",
|
12932
12910
|
tableName,
|
12933
12911
|
data: indexData,
|
12934
|
-
schema: schema4
|
12935
|
-
internal
|
12912
|
+
schema: schema4
|
12936
12913
|
};
|
12937
12914
|
});
|
12938
12915
|
};
|
@@ -13880,12 +13857,7 @@ var init_snapshotsDiffer = __esm({
|
|
13880
13857
|
const typedResult = diffResultSchemeMysql.parse(diffResult);
|
13881
13858
|
const jsonStatements = [];
|
13882
13859
|
const jsonCreateIndexesForCreatedTables = createdTables.map((it) => {
|
13883
|
-
return prepareCreateIndexesJson(
|
13884
|
-
it.name,
|
13885
|
-
it.schema,
|
13886
|
-
it.indexes,
|
13887
|
-
curFull.internal
|
13888
|
-
);
|
13860
|
+
return prepareCreateIndexesJson(it.name, it.schema, it.indexes);
|
13889
13861
|
}).flat();
|
13890
13862
|
const jsonDropTables = deletedTables.map((it) => {
|
13891
13863
|
return prepareDropTableJson(it);
|
@@ -13984,8 +13956,7 @@ var init_snapshotsDiffer = __esm({
|
|
13984
13956
|
return prepareCreateIndexesJson(
|
13985
13957
|
it.name,
|
13986
13958
|
it.schema,
|
13987
|
-
it.addedIndexes || {}
|
13988
|
-
curFull.internal
|
13959
|
+
it.addedIndexes || {}
|
13989
13960
|
);
|
13990
13961
|
}).flat();
|
13991
13962
|
const jsonDropIndexesForAllAlteredTables = alteredTables.map((it) => {
|
@@ -14045,11 +14016,7 @@ var init_snapshotsDiffer = __esm({
|
|
14045
14016
|
(t) => t.type === "delete_reference"
|
14046
14017
|
);
|
14047
14018
|
const jsonMySqlCreateTables = createdTables.map((it) => {
|
14048
|
-
return prepareMySqlCreateTableJson(
|
14049
|
-
it,
|
14050
|
-
curFull,
|
14051
|
-
curFull.internal
|
14052
|
-
);
|
14019
|
+
return prepareMySqlCreateTableJson(it, curFull);
|
14053
14020
|
});
|
14054
14021
|
jsonStatements.push(...jsonMySqlCreateTables);
|
14055
14022
|
jsonStatements.push(...jsonDropTables);
|
@@ -14089,7 +14056,7 @@ var init_snapshotsDiffer = __esm({
|
|
14089
14056
|
_meta
|
14090
14057
|
};
|
14091
14058
|
};
|
14092
|
-
applySqliteSnapshotsDiff = async (json1, json2, tablesResolver2, columnsResolver2
|
14059
|
+
applySqliteSnapshotsDiff = async (json1, json2, tablesResolver2, columnsResolver2) => {
|
14093
14060
|
const tablesDiff = diffSchemasOrTables(json1.tables, json2.tables);
|
14094
14061
|
const {
|
14095
14062
|
created: createdTables,
|
@@ -14169,12 +14136,7 @@ var init_snapshotsDiffer = __esm({
|
|
14169
14136
|
return prepareSQLiteCreateTable(it);
|
14170
14137
|
});
|
14171
14138
|
const jsonCreateIndexesForCreatedTables = createdTables.map((it) => {
|
14172
|
-
return prepareCreateIndexesJson(
|
14173
|
-
it.name,
|
14174
|
-
it.schema,
|
14175
|
-
it.indexes,
|
14176
|
-
curFull.internal
|
14177
|
-
);
|
14139
|
+
return prepareCreateIndexesJson(it.name, it.schema, it.indexes);
|
14178
14140
|
}).flat();
|
14179
14141
|
const jsonDropTables = deletedTables.map((it) => {
|
14180
14142
|
return prepareDropTableJson(it);
|
@@ -14276,8 +14238,7 @@ var init_snapshotsDiffer = __esm({
|
|
14276
14238
|
return prepareCreateIndexesJson(
|
14277
14239
|
it.name,
|
14278
14240
|
it.schema,
|
14279
|
-
it.addedIndexes || {}
|
14280
|
-
curFull.internal
|
14241
|
+
it.addedIndexes || {}
|
14281
14242
|
);
|
14282
14243
|
}).flat();
|
14283
14244
|
const jsonDropIndexesForAllAlteredTables = allAltered.map((it) => {
|
@@ -14711,14 +14672,7 @@ var init_sqlgenerator = __esm({
|
|
14711
14672
|
return statement.type === "create_table" && dialect7 === "mysql";
|
14712
14673
|
}
|
14713
14674
|
convert(st) {
|
14714
|
-
const {
|
14715
|
-
tableName,
|
14716
|
-
columns,
|
14717
|
-
schema: schema4,
|
14718
|
-
compositePKs,
|
14719
|
-
uniqueConstraints,
|
14720
|
-
internals
|
14721
|
-
} = st;
|
14675
|
+
const { tableName, columns, schema: schema4, compositePKs, uniqueConstraints } = st;
|
14722
14676
|
let statement = "";
|
14723
14677
|
statement += `CREATE TABLE \`${tableName}\` (
|
14724
14678
|
`;
|
@@ -14741,10 +14695,7 @@ var init_sqlgenerator = __esm({
|
|
14741
14695
|
for (const uniqueConstraint4 of uniqueConstraints) {
|
14742
14696
|
statement += ",\n";
|
14743
14697
|
const unsquashedUnique = MySqlSquasher.unsquashUnique(uniqueConstraint4);
|
14744
|
-
|
14745
|
-
return internals?.indexes ? internals?.indexes[unsquashedUnique.name]?.columns[it]?.isExpression ? it : `\`${it}\`` : `\`${it}\``;
|
14746
|
-
}).join(",");
|
14747
|
-
statement += ` CONSTRAINT \`${unsquashedUnique.name}\` UNIQUE(${uniqueString})`;
|
14698
|
+
statement += ` CONSTRAINT \`${unsquashedUnique.name}\` UNIQUE(\`${unsquashedUnique.columns.join(`\`,\``)}\`)`;
|
14748
14699
|
}
|
14749
14700
|
}
|
14750
14701
|
statement += `
|
@@ -15673,10 +15624,8 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT ${statement.newCo
|
|
15673
15624
|
statement.data
|
15674
15625
|
);
|
15675
15626
|
const indexPart = isUnique ? "UNIQUE INDEX" : "INDEX";
|
15676
|
-
const
|
15677
|
-
|
15678
|
-
}).join(",");
|
15679
|
-
return `CREATE ${indexPart} \`${name2}\` ON \`${statement.tableName}\` (${uniqueString});`;
|
15627
|
+
const value = columns.map((it) => `\`${it}\``).join(",");
|
15628
|
+
return `CREATE ${indexPart} \`${name2}\` ON \`${statement.tableName}\` (${value});`;
|
15680
15629
|
}
|
15681
15630
|
};
|
15682
15631
|
CreateSqliteIndexConvertor = class extends Convertor {
|
@@ -15689,10 +15638,8 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT ${statement.newCo
|
|
15689
15638
|
);
|
15690
15639
|
const indexPart = isUnique ? "UNIQUE INDEX" : "INDEX";
|
15691
15640
|
const whereStatement = where ? ` WHERE ${where}` : "";
|
15692
|
-
const
|
15693
|
-
|
15694
|
-
}).join(",");
|
15695
|
-
return `CREATE ${indexPart} \`${name2}\` ON \`${statement.tableName}\` (${uniqueString})${whereStatement};`;
|
15641
|
+
const value = columns.map((it) => `\`${it}\``).join(",");
|
15642
|
+
return `CREATE ${indexPart} \`${name2}\` ON \`${statement.tableName}\` (${value})${whereStatement};`;
|
15696
15643
|
}
|
15697
15644
|
};
|
15698
15645
|
PgDropIndexConvertor = class extends Convertor {
|
@@ -19268,7 +19215,6 @@ var init_sqliteSerializer = __esm({
|
|
19268
19215
|
dialect5 = new SQLiteSyncDialect();
|
19269
19216
|
generateSqliteSnapshot = (tables) => {
|
19270
19217
|
const result = {};
|
19271
|
-
const internal = { indexes: {} };
|
19272
19218
|
for (const table4 of tables) {
|
19273
19219
|
const columnsObject = {};
|
19274
19220
|
const indexesObject = {};
|
@@ -19355,25 +19301,7 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
|
|
19355
19301
|
const name2 = value.config.name;
|
19356
19302
|
let indexColumns = columns2.map((it) => {
|
19357
19303
|
if (is(it, SQL)) {
|
19358
|
-
|
19359
|
-
if (typeof internal.indexes[name2] === "undefined") {
|
19360
|
-
internal.indexes[name2] = {
|
19361
|
-
columns: {
|
19362
|
-
[sql2]: {
|
19363
|
-
isExpression: true
|
19364
|
-
}
|
19365
|
-
}
|
19366
|
-
};
|
19367
|
-
} else {
|
19368
|
-
if (typeof internal.indexes[name2]?.columns[sql2] === "undefined") {
|
19369
|
-
internal.indexes[name2].columns[sql2] = {
|
19370
|
-
isExpression: true
|
19371
|
-
};
|
19372
|
-
} else {
|
19373
|
-
internal.indexes[name2].columns[sql2].isExpression = true;
|
19374
|
-
}
|
19375
|
-
}
|
19376
|
-
return sql2;
|
19304
|
+
return dialect5.sqlToQuery(it, "indexes").sql;
|
19377
19305
|
} else {
|
19378
19306
|
return it.name;
|
19379
19307
|
}
|
@@ -19447,8 +19375,7 @@ The unique constraint ${source_default.underline.blue(
|
|
19447
19375
|
_meta: {
|
19448
19376
|
tables: {},
|
19449
19377
|
columns: {}
|
19450
|
-
}
|
19451
|
-
internal
|
19378
|
+
}
|
19452
19379
|
};
|
19453
19380
|
};
|
19454
19381
|
fromDatabase2 = async (db, tablesFilter = (table4) => true, progressCallback) => {
|
@@ -23710,7 +23637,6 @@ var init_mysqlSerializer = __esm({
|
|
23710
23637
|
dialect6 = new MySqlDialect();
|
23711
23638
|
generateMySqlSnapshot = (tables) => {
|
23712
23639
|
const result = {};
|
23713
|
-
const internal = { tables: {}, indexes: {} };
|
23714
23640
|
for (const table4 of tables) {
|
23715
23641
|
const {
|
23716
23642
|
name: tableName,
|
@@ -23862,27 +23788,9 @@ The unique constraint ${source_default.underline.blue(
|
|
23862
23788
|
const name2 = value.config.name;
|
23863
23789
|
let indexColumns = columns2.map((it) => {
|
23864
23790
|
if (is(it, SQL)) {
|
23865
|
-
|
23866
|
-
if (typeof internal.indexes[name2] === "undefined") {
|
23867
|
-
internal.indexes[name2] = {
|
23868
|
-
columns: {
|
23869
|
-
[sql2]: {
|
23870
|
-
isExpression: true
|
23871
|
-
}
|
23872
|
-
}
|
23873
|
-
};
|
23874
|
-
} else {
|
23875
|
-
if (typeof internal.indexes[name2]?.columns[sql2] === "undefined") {
|
23876
|
-
internal.indexes[name2].columns[sql2] = {
|
23877
|
-
isExpression: true
|
23878
|
-
};
|
23879
|
-
} else {
|
23880
|
-
internal.indexes[name2].columns[sql2].isExpression = true;
|
23881
|
-
}
|
23882
|
-
}
|
23883
|
-
return sql2;
|
23791
|
+
return dialect6.sqlToQuery(it, "indexes").sql;
|
23884
23792
|
} else {
|
23885
|
-
return
|
23793
|
+
return it.name;
|
23886
23794
|
}
|
23887
23795
|
});
|
23888
23796
|
if (value.config.unique) {
|
@@ -23949,13 +23857,12 @@ We have encountered a collision between the index name on columns ${source_defau
|
|
23949
23857
|
_meta: {
|
23950
23858
|
tables: {},
|
23951
23859
|
columns: {}
|
23952
|
-
}
|
23953
|
-
internal
|
23860
|
+
}
|
23954
23861
|
};
|
23955
23862
|
};
|
23956
23863
|
fromDatabase3 = async (db, inputSchema, tablesFilter = (table4) => true, progressCallback) => {
|
23957
23864
|
const result = {};
|
23958
|
-
const internals = { tables: {}
|
23865
|
+
const internals = { tables: {} };
|
23959
23866
|
const columns = await db.query(`select * from information_schema.columns
|
23960
23867
|
where table_schema = '${inputSchema}' and table_name != '__drizzle_migrations'
|
23961
23868
|
order by table_name, ordinal_position;`);
|
@@ -25484,9 +25391,7 @@ var generateSQLiteMigration = async (prev, cur) => {
|
|
25484
25391
|
squashedPrev,
|
25485
25392
|
squashedCur,
|
25486
25393
|
tablesResolver,
|
25487
|
-
columnsResolver
|
25488
|
-
validatedPrev,
|
25489
|
-
validatedCur
|
25394
|
+
columnsResolver
|
25490
25395
|
);
|
25491
25396
|
return sqlStatements;
|
25492
25397
|
};
|
@@ -25515,9 +25420,7 @@ var pushSQLiteSchema = async (imports, drizzleInstance) => {
|
|
25515
25420
|
squashedPrev,
|
25516
25421
|
squashedCur,
|
25517
25422
|
tablesResolver,
|
25518
|
-
columnsResolver
|
25519
|
-
validatedPrev,
|
25520
|
-
validatedCur
|
25423
|
+
columnsResolver
|
25521
25424
|
);
|
25522
25425
|
const { shouldAskForApprove, statementsToExecute, infoToPrint } = await logSuggestionsAndReturn(
|
25523
25426
|
db,
|
package/utils-studio.js
CHANGED
@@ -4918,16 +4918,7 @@ var init_mysqlSchema = __esm({
|
|
4918
4918
|
objectType({ isDefaultAnExpression: booleanType().optional() }).optional()
|
4919
4919
|
)
|
4920
4920
|
}).optional()
|
4921
|
-
)
|
4922
|
-
indexes: recordType(
|
4923
|
-
stringType(),
|
4924
|
-
objectType({
|
4925
|
-
columns: recordType(
|
4926
|
-
stringType(),
|
4927
|
-
objectType({ isExpression: booleanType().optional() }).optional()
|
4928
|
-
)
|
4929
|
-
}).optional()
|
4930
|
-
).optional()
|
4921
|
+
)
|
4931
4922
|
}).optional();
|
4932
4923
|
dialect = literalType("mysql");
|
4933
4924
|
schemaHash = objectType({
|
@@ -5347,7 +5338,7 @@ var init_pgSchema = __esm({
|
|
5347
5338
|
});
|
5348
5339
|
|
5349
5340
|
// src/serializer/sqliteSchema.ts
|
5350
|
-
var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52,
|
5341
|
+
var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52, latestVersion, schemaInternal2, schemaV32, schemaV42, schemaV52, schema2, tableSquashed3, schemaSquashed2, drySQLite, sqliteSchemaV5, sqliteSchema, SQLiteSchemaSquashed, backwardCompatibleSqliteSchema;
|
5351
5342
|
var init_sqliteSchema = __esm({
|
5352
5343
|
"src/serializer/sqliteSchema.ts"() {
|
5353
5344
|
"use strict";
|
@@ -5425,17 +5416,6 @@ var init_sqliteSchema = __esm({
|
|
5425
5416
|
columns: recordType(stringType(), stringType())
|
5426
5417
|
})
|
5427
5418
|
}).strict();
|
5428
|
-
kitInternals3 = objectType({
|
5429
|
-
indexes: recordType(
|
5430
|
-
stringType(),
|
5431
|
-
objectType({
|
5432
|
-
columns: recordType(
|
5433
|
-
stringType(),
|
5434
|
-
objectType({ isExpression: booleanType().optional() }).optional()
|
5435
|
-
)
|
5436
|
-
}).optional()
|
5437
|
-
).optional()
|
5438
|
-
}).optional();
|
5439
5419
|
latestVersion = literalType("6");
|
5440
5420
|
schemaInternal2 = objectType({
|
5441
5421
|
version: latestVersion,
|
@@ -5445,8 +5425,7 @@ var init_sqliteSchema = __esm({
|
|
5445
5425
|
_meta: objectType({
|
5446
5426
|
tables: recordType(stringType(), stringType()),
|
5447
5427
|
columns: recordType(stringType(), stringType())
|
5448
|
-
})
|
5449
|
-
internal: kitInternals3
|
5428
|
+
})
|
5450
5429
|
}).strict();
|
5451
5430
|
schemaV32 = schemaInternalV32.merge(schemaHash3).strict();
|
5452
5431
|
schemaV42 = schemaInternalV42.merge(schemaHash3).strict();
|
package/utils-studio.mjs
CHANGED
@@ -4919,16 +4919,7 @@ var init_mysqlSchema = __esm({
|
|
4919
4919
|
objectType({ isDefaultAnExpression: booleanType().optional() }).optional()
|
4920
4920
|
)
|
4921
4921
|
}).optional()
|
4922
|
-
)
|
4923
|
-
indexes: recordType(
|
4924
|
-
stringType(),
|
4925
|
-
objectType({
|
4926
|
-
columns: recordType(
|
4927
|
-
stringType(),
|
4928
|
-
objectType({ isExpression: booleanType().optional() }).optional()
|
4929
|
-
)
|
4930
|
-
}).optional()
|
4931
|
-
).optional()
|
4922
|
+
)
|
4932
4923
|
}).optional();
|
4933
4924
|
dialect = literalType("mysql");
|
4934
4925
|
schemaHash = objectType({
|
@@ -5348,7 +5339,7 @@ var init_pgSchema = __esm({
|
|
5348
5339
|
});
|
5349
5340
|
|
5350
5341
|
// src/serializer/sqliteSchema.ts
|
5351
|
-
var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52,
|
5342
|
+
var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52, latestVersion, schemaInternal2, schemaV32, schemaV42, schemaV52, schema2, tableSquashed3, schemaSquashed2, drySQLite, sqliteSchemaV5, sqliteSchema, SQLiteSchemaSquashed, backwardCompatibleSqliteSchema;
|
5352
5343
|
var init_sqliteSchema = __esm({
|
5353
5344
|
"src/serializer/sqliteSchema.ts"() {
|
5354
5345
|
"use strict";
|
@@ -5426,17 +5417,6 @@ var init_sqliteSchema = __esm({
|
|
5426
5417
|
columns: recordType(stringType(), stringType())
|
5427
5418
|
})
|
5428
5419
|
}).strict();
|
5429
|
-
kitInternals3 = objectType({
|
5430
|
-
indexes: recordType(
|
5431
|
-
stringType(),
|
5432
|
-
objectType({
|
5433
|
-
columns: recordType(
|
5434
|
-
stringType(),
|
5435
|
-
objectType({ isExpression: booleanType().optional() }).optional()
|
5436
|
-
)
|
5437
|
-
}).optional()
|
5438
|
-
).optional()
|
5439
|
-
}).optional();
|
5440
5420
|
latestVersion = literalType("6");
|
5441
5421
|
schemaInternal2 = objectType({
|
5442
5422
|
version: latestVersion,
|
@@ -5446,8 +5426,7 @@ var init_sqliteSchema = __esm({
|
|
5446
5426
|
_meta: objectType({
|
5447
5427
|
tables: recordType(stringType(), stringType()),
|
5448
5428
|
columns: recordType(stringType(), stringType())
|
5449
|
-
})
|
5450
|
-
internal: kitInternals3
|
5429
|
+
})
|
5451
5430
|
}).strict();
|
5452
5431
|
schemaV32 = schemaInternalV32.merge(schemaHash3).strict();
|
5453
5432
|
schemaV42 = schemaInternalV42.merge(schemaHash3).strict();
|
package/utils.js
CHANGED
@@ -4914,16 +4914,7 @@ var kitInternals = objectType({
|
|
4914
4914
|
objectType({ isDefaultAnExpression: booleanType().optional() }).optional()
|
4915
4915
|
)
|
4916
4916
|
}).optional()
|
4917
|
-
)
|
4918
|
-
indexes: recordType(
|
4919
|
-
stringType(),
|
4920
|
-
objectType({
|
4921
|
-
columns: recordType(
|
4922
|
-
stringType(),
|
4923
|
-
objectType({ isExpression: booleanType().optional() }).optional()
|
4924
|
-
)
|
4925
|
-
}).optional()
|
4926
|
-
).optional()
|
4917
|
+
)
|
4927
4918
|
}).optional();
|
4928
4919
|
var dialect = literalType("mysql");
|
4929
4920
|
var schemaHash = objectType({
|
@@ -5404,17 +5395,6 @@ var schemaInternalV52 = objectType({
|
|
5404
5395
|
columns: recordType(stringType(), stringType())
|
5405
5396
|
})
|
5406
5397
|
}).strict();
|
5407
|
-
var kitInternals3 = objectType({
|
5408
|
-
indexes: recordType(
|
5409
|
-
stringType(),
|
5410
|
-
objectType({
|
5411
|
-
columns: recordType(
|
5412
|
-
stringType(),
|
5413
|
-
objectType({ isExpression: booleanType().optional() }).optional()
|
5414
|
-
)
|
5415
|
-
}).optional()
|
5416
|
-
).optional()
|
5417
|
-
}).optional();
|
5418
5398
|
var latestVersion = literalType("6");
|
5419
5399
|
var schemaInternal2 = objectType({
|
5420
5400
|
version: latestVersion,
|
@@ -5424,8 +5404,7 @@ var schemaInternal2 = objectType({
|
|
5424
5404
|
_meta: objectType({
|
5425
5405
|
tables: recordType(stringType(), stringType()),
|
5426
5406
|
columns: recordType(stringType(), stringType())
|
5427
|
-
})
|
5428
|
-
internal: kitInternals3
|
5407
|
+
})
|
5429
5408
|
}).strict();
|
5430
5409
|
var schemaV32 = schemaInternalV32.merge(schemaHash3).strict();
|
5431
5410
|
var schemaV42 = schemaInternalV42.merge(schemaHash3).strict();
|
package/utils.mjs
CHANGED
@@ -4904,16 +4904,7 @@ var kitInternals = objectType({
|
|
4904
4904
|
objectType({ isDefaultAnExpression: booleanType().optional() }).optional()
|
4905
4905
|
)
|
4906
4906
|
}).optional()
|
4907
|
-
)
|
4908
|
-
indexes: recordType(
|
4909
|
-
stringType(),
|
4910
|
-
objectType({
|
4911
|
-
columns: recordType(
|
4912
|
-
stringType(),
|
4913
|
-
objectType({ isExpression: booleanType().optional() }).optional()
|
4914
|
-
)
|
4915
|
-
}).optional()
|
4916
|
-
).optional()
|
4907
|
+
)
|
4917
4908
|
}).optional();
|
4918
4909
|
var dialect = literalType("mysql");
|
4919
4910
|
var schemaHash = objectType({
|
@@ -5394,17 +5385,6 @@ var schemaInternalV52 = objectType({
|
|
5394
5385
|
columns: recordType(stringType(), stringType())
|
5395
5386
|
})
|
5396
5387
|
}).strict();
|
5397
|
-
var kitInternals3 = objectType({
|
5398
|
-
indexes: recordType(
|
5399
|
-
stringType(),
|
5400
|
-
objectType({
|
5401
|
-
columns: recordType(
|
5402
|
-
stringType(),
|
5403
|
-
objectType({ isExpression: booleanType().optional() }).optional()
|
5404
|
-
)
|
5405
|
-
}).optional()
|
5406
|
-
).optional()
|
5407
|
-
}).optional();
|
5408
5388
|
var latestVersion = literalType("6");
|
5409
5389
|
var schemaInternal2 = objectType({
|
5410
5390
|
version: latestVersion,
|
@@ -5414,8 +5394,7 @@ var schemaInternal2 = objectType({
|
|
5414
5394
|
_meta: objectType({
|
5415
5395
|
tables: recordType(stringType(), stringType()),
|
5416
5396
|
columns: recordType(stringType(), stringType())
|
5417
|
-
})
|
5418
|
-
internal: kitInternals3
|
5397
|
+
})
|
5419
5398
|
}).strict();
|
5420
5399
|
var schemaV32 = schemaInternalV32.merge(schemaHash3).strict();
|
5421
5400
|
var schemaV42 = schemaInternalV42.merge(schemaHash3).strict();
|