drizzle-kit 0.20.14-a77266f → 0.20.14-dc3503a

Sign up to get free protection for your applications and to get access to all the features.
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([schemaV32, schemaV42, schema2]);
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();