drizzle-kit 0.20.14-a77266f → 0.20.14-f5f86f6
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 +2188 -2401
- package/cli/commands/check.d.ts +2 -0
- package/cli/commands/drop.d.ts +4 -0
- package/cli/commands/migrate.d.ts +7 -7
- package/cli/commands/mysqlPushUtils.d.ts +2 -2
- package/cli/commands/mysqlUp.d.ts +1 -1
- package/cli/commands/pgConnect.d.ts +1 -1
- package/cli/commands/pgIntrospect.d.ts +1 -1
- package/cli/commands/pgPushUtils.d.ts +2 -2
- package/cli/commands/pgUp.d.ts +1 -1
- package/cli/commands/push.d.ts +6 -0
- package/cli/commands/sqlitePushUtils.d.ts +3 -3
- package/cli/commands/sqliteUp.d.ts +2 -0
- package/cli/commands/upFolders.d.ts +1 -1
- package/cli/commands/utils.d.ts +11 -2
- package/cli/index.d.ts +71 -0
- package/cli/utils.d.ts +12 -0
- package/cli/validations/common.d.ts +1 -1
- package/cli/validations/sqlite.d.ts +220 -0
- package/cli/validations/studio.d.ts +593 -0
- package/cli/views.d.ts +1 -1
- package/orm-extenstions/d1-driver/driver.d.ts +8 -0
- package/orm-extenstions/d1-driver/session.d.ts +51 -0
- package/orm-extenstions/d1-driver/wrangler-client.d.ts +3 -0
- package/package.json +1 -1
- package/payload.js +276 -68
- package/payload.mjs +276 -68
- package/schemaValidator.d.ts +1 -1
- package/serializer/mysqlSerializer.d.ts +2 -2
- package/serializer/sqliteSerializer.d.ts +2 -2
- package/serializer/studioUtils.d.ts +65 -0
- package/utils/certs.d.ts +4 -0
- package/utils-studio.js +11 -6
- package/utils-studio.mjs +11 -6
- package/utils.js +26 -12
- package/utils.mjs +26 -12
package/utils.mjs
CHANGED
|
@@ -1088,6 +1088,22 @@ var init_views = __esm({
|
|
|
1088
1088
|
}
|
|
1089
1089
|
});
|
|
1090
1090
|
|
|
1091
|
+
// src/global.ts
|
|
1092
|
+
var originUUID, snapshotVersion, mapValues;
|
|
1093
|
+
var init_global = __esm({
|
|
1094
|
+
"src/global.ts"() {
|
|
1095
|
+
originUUID = "00000000-0000-0000-0000-000000000000";
|
|
1096
|
+
snapshotVersion = "5";
|
|
1097
|
+
mapValues = (obj, map) => {
|
|
1098
|
+
const result = Object.keys(obj).reduce(function(result2, key) {
|
|
1099
|
+
result2[key] = map(obj[key]);
|
|
1100
|
+
return result2;
|
|
1101
|
+
}, {});
|
|
1102
|
+
return result;
|
|
1103
|
+
};
|
|
1104
|
+
}
|
|
1105
|
+
});
|
|
1106
|
+
|
|
1091
1107
|
// node_modules/.pnpm/zod@3.20.2/node_modules/zod/lib/index.mjs
|
|
1092
1108
|
function getErrorMap() {
|
|
1093
1109
|
return overrideErrorMap;
|
|
@@ -4253,18 +4269,8 @@ import {
|
|
|
4253
4269
|
writeFileSync
|
|
4254
4270
|
} from "fs";
|
|
4255
4271
|
|
|
4256
|
-
// src/global.ts
|
|
4257
|
-
var originUUID = "00000000-0000-0000-0000-000000000000";
|
|
4258
|
-
var snapshotVersion = "5";
|
|
4259
|
-
var mapValues = (obj, map) => {
|
|
4260
|
-
const result = Object.keys(obj).reduce(function(result2, key) {
|
|
4261
|
-
result2[key] = map(obj[key]);
|
|
4262
|
-
return result2;
|
|
4263
|
-
}, {});
|
|
4264
|
-
return result;
|
|
4265
|
-
};
|
|
4266
|
-
|
|
4267
4272
|
// src/serializer/mysqlSchema.ts
|
|
4273
|
+
init_global();
|
|
4268
4274
|
init_lib();
|
|
4269
4275
|
var index = objectType({
|
|
4270
4276
|
name: stringType(),
|
|
@@ -4469,6 +4475,7 @@ var dryMySql = mysqlSchema.parse({
|
|
|
4469
4475
|
});
|
|
4470
4476
|
|
|
4471
4477
|
// src/serializer/pgSchema.ts
|
|
4478
|
+
init_global();
|
|
4472
4479
|
init_lib();
|
|
4473
4480
|
var indexV2 = objectType({
|
|
4474
4481
|
name: stringType(),
|
|
@@ -4795,6 +4802,7 @@ var dryPg = pgSchema.parse({
|
|
|
4795
4802
|
});
|
|
4796
4803
|
|
|
4797
4804
|
// src/serializer/sqliteSchema.ts
|
|
4805
|
+
init_global();
|
|
4798
4806
|
init_lib();
|
|
4799
4807
|
var index3 = objectType({
|
|
4800
4808
|
name: stringType(),
|
|
@@ -4951,10 +4959,15 @@ var drySQLite = schema2.parse({
|
|
|
4951
4959
|
columns: {}
|
|
4952
4960
|
}
|
|
4953
4961
|
});
|
|
4954
|
-
var backwardCompatibleSqliteSchema = unionType([
|
|
4962
|
+
var backwardCompatibleSqliteSchema = unionType([
|
|
4963
|
+
schemaV32,
|
|
4964
|
+
schemaV42,
|
|
4965
|
+
schema2
|
|
4966
|
+
]);
|
|
4955
4967
|
|
|
4956
4968
|
// src/utils.ts
|
|
4957
4969
|
init_source();
|
|
4970
|
+
init_global();
|
|
4958
4971
|
import { join } from "path";
|
|
4959
4972
|
|
|
4960
4973
|
// src/jsonDiffer.js
|
|
@@ -7702,6 +7715,7 @@ var applySnapshotsDiff = async (json1, json2, dialect3, schemasResolver, tablesR
|
|
|
7702
7715
|
|
|
7703
7716
|
// src/cli/commands/pgUp.ts
|
|
7704
7717
|
init_source();
|
|
7718
|
+
init_global();
|
|
7705
7719
|
|
|
7706
7720
|
// src/cli/commands/mysqlUp.ts
|
|
7707
7721
|
init_source();
|