@prisma/migrate 6.1.0-integration-expose-deserialize-raw-result.1 → 6.1.0-integration-engines-6-1-0-17-fixup-wasm-response-json-serialization-span-18513eab509bdb5aef5cdd9c553594c3924d18cb.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/Migrate.js +5 -5
  2. package/dist/SchemaEngine.js +5 -5
  3. package/dist/bin.js +33 -33
  4. package/dist/{chunk-ILQWQHQO.js → chunk-3EBHV6P7.js} +6 -6
  5. package/dist/{chunk-SKMU5A2R.js → chunk-3O7DIYF4.js} +815 -43
  6. package/dist/{chunk-W732A6L3.js → chunk-4CYGACQE.js} +41 -41
  7. package/dist/{chunk-GUBDW6S7.js → chunk-4NDZU7KV.js} +6 -6
  8. package/dist/{chunk-PCJYN6LT.js → chunk-7MUF3HLX.js} +6 -6
  9. package/dist/{chunk-NKL64AIB.js → chunk-AOCCG7RR.js} +6 -6
  10. package/dist/{chunk-X6GGREJW.js → chunk-BQXAMKF7.js} +6 -6
  11. package/dist/{chunk-LVFPGUOH.js → chunk-E3UZYEGF.js} +92 -87
  12. package/dist/{chunk-KEPR65SW.js → chunk-ET2H4E2O.js} +6 -6
  13. package/dist/{chunk-PFEH6ILG.js → chunk-KX5GI2BM.js} +6 -6
  14. package/dist/{chunk-3H4RLVCQ.js → chunk-MBLWML5Q.js} +9 -9
  15. package/dist/{chunk-LJOMIPJW.js → chunk-NCDRH4BH.js} +7 -7
  16. package/dist/{chunk-HODZFC64.js → chunk-RCPXHNHW.js} +7 -7
  17. package/dist/{chunk-PNBMPQYH.js → chunk-UI76O6B2.js} +6 -6
  18. package/dist/{chunk-Z4OLB2H4.js → chunk-XQJTDY7A.js} +6 -6
  19. package/dist/commands/DbExecute.js +6 -6
  20. package/dist/commands/DbPull.js +5 -5
  21. package/dist/commands/DbPush.js +6 -6
  22. package/dist/commands/MigrateDeploy.js +6 -6
  23. package/dist/commands/MigrateDev.js +6 -6
  24. package/dist/commands/MigrateDiff.js +6 -6
  25. package/dist/commands/MigrateReset.js +6 -6
  26. package/dist/commands/MigrateResolve.js +6 -6
  27. package/dist/commands/MigrateStatus.js +6 -6
  28. package/dist/index.js +39 -39
  29. package/dist/internals/src/tracing/types.d.ts +26 -16
  30. package/dist/utils/getDatabaseVersionSafe.js +5 -5
  31. package/dist/utils/introspectSql.js +4 -4
  32. package/dist/utils/setupMongo.js +25279 -23672
  33. package/dist/views/handleViewsIO.js +3 -3
  34. package/package.json +9 -9
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_W732A6L3_exports = {};
30
- __export(chunk_W732A6L3_exports, {
29
+ var chunk_4CYGACQE_exports = {};
30
+ __export(chunk_4CYGACQE_exports, {
31
31
  MigrateDiff: () => MigrateDiff,
32
32
  init_MigrateDiff: () => init_MigrateDiff
33
33
  });
34
- module.exports = __toCommonJS(chunk_W732A6L3_exports);
34
+ module.exports = __toCommonJS(chunk_4CYGACQE_exports);
35
35
  var import_chunk_NKQGJ3AE = require("./chunk-NKQGJ3AE.js");
36
36
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
37
37
  var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
38
- var import_chunk_LJOMIPJW = require("./chunk-LJOMIPJW.js");
39
- var import_chunk_LVFPGUOH = require("./chunk-LVFPGUOH.js");
38
+ var import_chunk_NCDRH4BH = require("./chunk-NCDRH4BH.js");
39
+ var import_chunk_E3UZYEGF = require("./chunk-E3UZYEGF.js");
40
40
  var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
41
41
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
42
42
  var import_node_process = __toESM(require("node:process"));
@@ -1314,11 +1314,11 @@ var require_brace_expansion = (0, import_chunk_WWAWV7DQ.__commonJS)({
1314
1314
  if (pad) {
1315
1315
  var need = width - c.length;
1316
1316
  if (need > 0) {
1317
- var z = new Array(need + 1).join("0");
1317
+ var z2 = new Array(need + 1).join("0");
1318
1318
  if (i < 0)
1319
- c = "-" + z + c.slice(1);
1319
+ c = "-" + z2 + c.slice(1);
1320
1320
  else
1321
- c = z + c;
1321
+ c = z2 + c;
1322
1322
  }
1323
1323
  }
1324
1324
  }
@@ -6956,26 +6956,26 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
6956
6956
  b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;
6957
6957
  var x = r * 0.4124 + g * 0.3576 + b * 0.1805;
6958
6958
  var y = r * 0.2126 + g * 0.7152 + b * 0.0722;
6959
- var z = r * 0.0193 + g * 0.1192 + b * 0.9505;
6960
- return [x * 100, y * 100, z * 100];
6959
+ var z2 = r * 0.0193 + g * 0.1192 + b * 0.9505;
6960
+ return [x * 100, y * 100, z2 * 100];
6961
6961
  };
6962
6962
  convert.rgb.lab = function(rgb) {
6963
6963
  var xyz = convert.rgb.xyz(rgb);
6964
6964
  var x = xyz[0];
6965
6965
  var y = xyz[1];
6966
- var z = xyz[2];
6966
+ var z2 = xyz[2];
6967
6967
  var l;
6968
6968
  var a;
6969
6969
  var b;
6970
6970
  x /= 95.047;
6971
6971
  y /= 100;
6972
- z /= 108.883;
6972
+ z2 /= 108.883;
6973
6973
  x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
6974
6974
  y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;
6975
- z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
6975
+ z2 = z2 > 8856e-6 ? Math.pow(z2, 1 / 3) : 7.787 * z2 + 16 / 116;
6976
6976
  l = 116 * y - 16;
6977
6977
  a = 500 * (x - y);
6978
- b = 200 * (y - z);
6978
+ b = 200 * (y - z2);
6979
6979
  return [l, a, b];
6980
6980
  };
6981
6981
  convert.hsl.rgb = function(hsl) {
@@ -7150,13 +7150,13 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
7150
7150
  convert.xyz.rgb = function(xyz) {
7151
7151
  var x = xyz[0] / 100;
7152
7152
  var y = xyz[1] / 100;
7153
- var z = xyz[2] / 100;
7153
+ var z2 = xyz[2] / 100;
7154
7154
  var r;
7155
7155
  var g;
7156
7156
  var b;
7157
- r = x * 3.2406 + y * -1.5372 + z * -0.4986;
7158
- g = x * -0.9689 + y * 1.8758 + z * 0.0415;
7159
- b = x * 0.0557 + y * -0.204 + z * 1.057;
7157
+ r = x * 3.2406 + y * -1.5372 + z2 * -0.4986;
7158
+ g = x * -0.9689 + y * 1.8758 + z2 * 0.0415;
7159
+ b = x * 0.0557 + y * -0.204 + z2 * 1.057;
7160
7160
  r = r > 31308e-7 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : r * 12.92;
7161
7161
  g = g > 31308e-7 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : g * 12.92;
7162
7162
  b = b > 31308e-7 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : b * 12.92;
@@ -7168,19 +7168,19 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
7168
7168
  convert.xyz.lab = function(xyz) {
7169
7169
  var x = xyz[0];
7170
7170
  var y = xyz[1];
7171
- var z = xyz[2];
7171
+ var z2 = xyz[2];
7172
7172
  var l;
7173
7173
  var a;
7174
7174
  var b;
7175
7175
  x /= 95.047;
7176
7176
  y /= 100;
7177
- z /= 108.883;
7177
+ z2 /= 108.883;
7178
7178
  x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
7179
7179
  y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;
7180
- z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
7180
+ z2 = z2 > 8856e-6 ? Math.pow(z2, 1 / 3) : 7.787 * z2 + 16 / 116;
7181
7181
  l = 116 * y - 16;
7182
7182
  a = 500 * (x - y);
7183
- b = 200 * (y - z);
7183
+ b = 200 * (y - z2);
7184
7184
  return [l, a, b];
7185
7185
  };
7186
7186
  convert.lab.xyz = function(lab) {
@@ -7189,20 +7189,20 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
7189
7189
  var b = lab[2];
7190
7190
  var x;
7191
7191
  var y;
7192
- var z;
7192
+ var z2;
7193
7193
  y = (l + 16) / 116;
7194
7194
  x = a / 500 + y;
7195
- z = y - b / 200;
7195
+ z2 = y - b / 200;
7196
7196
  var y2 = Math.pow(y, 3);
7197
7197
  var x2 = Math.pow(x, 3);
7198
- var z2 = Math.pow(z, 3);
7198
+ var z22 = Math.pow(z2, 3);
7199
7199
  y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
7200
7200
  x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
7201
- z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
7201
+ z2 = z22 > 8856e-6 ? z22 : (z2 - 16 / 116) / 7.787;
7202
7202
  x *= 95.047;
7203
7203
  y *= 100;
7204
- z *= 108.883;
7205
- return [x, y, z];
7204
+ z2 *= 108.883;
7205
+ return [x, y, z2];
7206
7206
  };
7207
7207
  convert.lab.lch = function(lab) {
7208
7208
  var l = lab[0];
@@ -11568,7 +11568,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
11568
11568
  archiver: "6.0.2",
11569
11569
  "checkpoint-client": "1.1.33",
11570
11570
  "cli-truncate": "2.1.0",
11571
- dotenv: "16.0.3",
11571
+ dotenv: "16.4.7",
11572
11572
  esbuild: "0.24.0",
11573
11573
  "escape-string-regexp": "4.0.0",
11574
11574
  execa: "5.1.1",
@@ -11603,7 +11603,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
11603
11603
  "terminal-link": "2.1.1",
11604
11604
  tmp: "0.2.3",
11605
11605
  "ts-node": "10.9.2",
11606
- "ts-pattern": "5.2.0",
11606
+ "ts-pattern": "5.6.0",
11607
11607
  "ts-toolbelt": "9.6.0",
11608
11608
  typescript: "5.4.5",
11609
11609
  yarn: "1.22.22"
@@ -11614,7 +11614,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
11614
11614
  "@prisma/fetch-engine": "workspace:*",
11615
11615
  "@prisma/generator-helper": "workspace:*",
11616
11616
  "@prisma/get-platform": "workspace:*",
11617
- "@prisma/prisma-schema-wasm": "6.1.0-5.c74f8976aaa3212c16a61537319f9024d0c21e85",
11617
+ "@prisma/prisma-schema-wasm": "6.1.0-17.fixup-wasm-response-json-serialization-span-18513eab509bdb5aef5cdd9c553594c3924d18cb",
11618
11618
  "@prisma/schema-files-loader": "workspace:*",
11619
11619
  arg: "5.0.2",
11620
11620
  prompts: "2.4.2"
@@ -11692,12 +11692,12 @@ function parseQueryEngineError({ errorOutput, reason }) {
11692
11692
  ),
11693
11693
  map((errorOutputAsJSON) => {
11694
11694
  const defaultMessage = (0, import_chunk_6TE2RIPN.red)((0, import_chunk_6TE2RIPN.bold)(relativizePathInPSLError(errorOutputAsJSON.message)));
11695
- const getConfigErrorInit = (0, import_chunk_LVFPGUOH.$)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
11695
+ const getConfigErrorInit = (0, import_chunk_E3UZYEGF.z)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
11696
11696
  return {
11697
11697
  reason: createSchemaValidationError(reason),
11698
11698
  errorCode: eJSON.error_code
11699
11699
  };
11700
- }).with({ error_code: import_chunk_LVFPGUOH.N.string }, (eJSON) => {
11700
+ }).with({ error_code: import_chunk_E3UZYEGF.N.string }, (eJSON) => {
11701
11701
  return {
11702
11702
  reason,
11703
11703
  errorCode: eJSON.error_code
@@ -11718,9 +11718,9 @@ var init_queryEngineCommons = (0, import_chunk_WWAWV7DQ.__esm)({
11718
11718
  "../internals/src/engine-commands/queryEngineCommons.ts"() {
11719
11719
  "use strict";
11720
11720
  init_Either();
11721
- import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_LVFPGUOH.require_function)());
11721
+ import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_E3UZYEGF.require_function)());
11722
11722
  (0, import_chunk_6TE2RIPN.init_colors)();
11723
- (0, import_chunk_LVFPGUOH.init_dist)();
11723
+ (0, import_chunk_E3UZYEGF.init_dist)();
11724
11724
  init_relativizePathInPSLError();
11725
11725
  createDebugErrorType = (debug4, fnName) => ({ type, reason, error }) => {
11726
11726
  debug4(`error of type "${type}" in ${fnName}:
@@ -11786,7 +11786,7 @@ async function getConfig(options) {
11786
11786
  }
11787
11787
  return Promise.resolve(data);
11788
11788
  }
11789
- const error = (0, import_chunk_LVFPGUOH.$)(configEither.left).with({ type: "wasm-error" }, (e) => {
11789
+ const error = (0, import_chunk_E3UZYEGF.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
11790
11790
  debugErrorType(e);
11791
11791
  if (isWasmPanic(e.error)) {
11792
11792
  const { message, stack } = getWasmError(e.error);
@@ -11851,9 +11851,9 @@ var init_getConfig = (0, import_chunk_WWAWV7DQ.__esm)({
11851
11851
  "../internals/src/engine-commands/getConfig.ts"() {
11852
11852
  "use strict";
11853
11853
  init_Either();
11854
- import_function3 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_LVFPGUOH.require_function)());
11854
+ import_function3 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_E3UZYEGF.require_function)());
11855
11855
  (0, import_chunk_6TE2RIPN.init_colors)();
11856
- (0, import_chunk_LVFPGUOH.init_dist)();
11856
+ (0, import_chunk_E3UZYEGF.init_dist)();
11857
11857
  init_panic();
11858
11858
  init_schemaFileInput();
11859
11859
  init_wasm();
@@ -11864,7 +11864,7 @@ var init_getConfig = (0, import_chunk_WWAWV7DQ.__esm)({
11864
11864
  SCHEMA_VALIDATION_ERROR_CODE = "P1012";
11865
11865
  GetConfigError = class extends Error {
11866
11866
  constructor(params) {
11867
- const constructedErrorMessage = (0, import_chunk_LVFPGUOH.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
11867
+ const constructedErrorMessage = (0, import_chunk_E3UZYEGF.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
11868
11868
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
11869
11869
  return `${reason}
11870
11870
  ${errorCodeMessage}
@@ -12143,7 +12143,7 @@ var init_MigrateDiff = (0, import_chunk_WWAWV7DQ.__esm)({
12143
12143
  import_fs_jetpack = (0, import_chunk_WWAWV7DQ.__toESM)(require_main());
12144
12144
  (0, import_chunk_6TE2RIPN.init_colors)();
12145
12145
  init_getSchema();
12146
- (0, import_chunk_LJOMIPJW.init_Migrate)();
12146
+ (0, import_chunk_NCDRH4BH.init_Migrate)();
12147
12147
  (0, import_chunk_TKAGMA5K.init_captureStdout)();
12148
12148
  debug3 = (0, import_debug3.default)("prisma:migrate:diff");
12149
12149
  helpOptions = (0, import_internals.format)(
@@ -12321,7 +12321,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Flags")}
12321
12321
  url: `file:${d1Database}`
12322
12322
  };
12323
12323
  }
12324
- const migrate = new import_chunk_LJOMIPJW.Migrate();
12324
+ const migrate = new import_chunk_NCDRH4BH.Migrate();
12325
12325
  const captureStdout = new import_chunk_TKAGMA5K.CaptureStdout();
12326
12326
  const outputPath = args["--output"];
12327
12327
  const isOutputDefined = Boolean(outputPath);
@@ -26,15 +26,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_GUBDW6S7_exports = {};
30
- __export(chunk_GUBDW6S7_exports, {
29
+ var chunk_4NDZU7KV_exports = {};
30
+ __export(chunk_4NDZU7KV_exports, {
31
31
  MigrateReset: () => MigrateReset,
32
32
  init_MigrateReset: () => init_MigrateReset
33
33
  });
34
- module.exports = __toCommonJS(chunk_GUBDW6S7_exports);
34
+ module.exports = __toCommonJS(chunk_4NDZU7KV_exports);
35
35
  var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
36
36
  var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
37
- var import_chunk_LJOMIPJW = require("./chunk-LJOMIPJW.js");
37
+ var import_chunk_NCDRH4BH = require("./chunk-NCDRH4BH.js");
38
38
  var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
39
39
  var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
40
40
  var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
@@ -47,7 +47,7 @@ var _MigrateReset, MigrateReset;
47
47
  var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
48
48
  "src/commands/MigrateReset.ts"() {
49
49
  (0, import_chunk_6TE2RIPN.init_colors)();
50
- (0, import_chunk_LJOMIPJW.init_Migrate)();
50
+ (0, import_chunk_NCDRH4BH.init_Migrate)();
51
51
  (0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
52
52
  (0, import_chunk_U374EXYQ.init_errors)();
53
53
  (0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
@@ -99,7 +99,7 @@ var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
99
99
  process.exit(130);
100
100
  }
101
101
  }
102
- const migrate = new import_chunk_LJOMIPJW.Migrate(schemaPath);
102
+ const migrate = new import_chunk_NCDRH4BH.Migrate(schemaPath);
103
103
  let migrationIds;
104
104
  try {
105
105
  await migrate.reset();
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_PCJYN6LT_exports = {};
30
- __export(chunk_PCJYN6LT_exports, {
29
+ var chunk_7MUF3HLX_exports = {};
30
+ __export(chunk_7MUF3HLX_exports, {
31
31
  EngineError: () => EngineError,
32
32
  SchemaEngine: () => SchemaEngine,
33
33
  init_SchemaEngine: () => init_SchemaEngine
34
34
  });
35
- module.exports = __toCommonJS(chunk_PCJYN6LT_exports);
36
- var import_chunk_LVFPGUOH = require("./chunk-LVFPGUOH.js");
35
+ module.exports = __toCommonJS(chunk_7MUF3HLX_exports);
36
+ var import_chunk_E3UZYEGF = require("./chunk-E3UZYEGF.js");
37
37
  var import_chunk_AAATUOV6 = require("./chunk-AAATUOV6.js");
38
38
  var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
39
39
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
@@ -50,7 +50,7 @@ var init_SchemaEngine = (0, import_chunk_WWAWV7DQ.__esm)({
50
50
  "src/SchemaEngine.ts"() {
51
51
  (0, import_chunk_6TE2RIPN.init_colors)();
52
52
  (0, import_chunk_AAATUOV6.init_byline)();
53
- (0, import_chunk_LVFPGUOH.init_handleViewsIO)();
53
+ (0, import_chunk_E3UZYEGF.init_handleViewsIO)();
54
54
  debugRpc = (0, import_debug.default)("prisma:schemaEngine:rpc");
55
55
  debugStderr = (0, import_debug.default)("prisma:schemaEngine:stderr");
56
56
  debugStdin = (0, import_debug.default)("prisma:schemaEngine:stdin");
@@ -175,7 +175,7 @@ var init_SchemaEngine = (0, import_chunk_WWAWV7DQ.__esm)({
175
175
  const { views } = introspectResult;
176
176
  if (views) {
177
177
  const schemaPath = this.schemaPath ?? import_node_path.default.join(process.cwd(), "prisma");
178
- await (0, import_chunk_LVFPGUOH.handleViewsIO)({ views, schemaPath });
178
+ await (0, import_chunk_E3UZYEGF.handleViewsIO)({ views, schemaPath });
179
179
  }
180
180
  return introspectResult;
181
181
  } finally {
@@ -26,20 +26,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_NKL64AIB_exports = {};
30
- __export(chunk_NKL64AIB_exports, {
29
+ var chunk_AOCCG7RR_exports = {};
30
+ __export(chunk_AOCCG7RR_exports, {
31
31
  getDatabaseVersionSafe: () => getDatabaseVersionSafe,
32
32
  init_getDatabaseVersionSafe: () => init_getDatabaseVersionSafe
33
33
  });
34
- module.exports = __toCommonJS(chunk_NKL64AIB_exports);
35
- var import_chunk_PCJYN6LT = require("./chunk-PCJYN6LT.js");
34
+ module.exports = __toCommonJS(chunk_AOCCG7RR_exports);
35
+ var import_chunk_7MUF3HLX = require("./chunk-7MUF3HLX.js");
36
36
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
37
37
  var import_debug = __toESM(require("@prisma/debug"));
38
38
  async function getDatabaseVersionSafe(args) {
39
39
  let engine;
40
40
  let dbVersion;
41
41
  try {
42
- engine = new import_chunk_PCJYN6LT.SchemaEngine({});
42
+ engine = new import_chunk_7MUF3HLX.SchemaEngine({});
43
43
  dbVersion = await engine.getDatabaseVersion(args);
44
44
  } catch (e) {
45
45
  debug(e);
@@ -53,7 +53,7 @@ async function getDatabaseVersionSafe(args) {
53
53
  var debug;
54
54
  var init_getDatabaseVersionSafe = (0, import_chunk_WWAWV7DQ.__esm)({
55
55
  "src/utils/getDatabaseVersionSafe.ts"() {
56
- (0, import_chunk_PCJYN6LT.init_SchemaEngine)();
56
+ (0, import_chunk_7MUF3HLX.init_SchemaEngine)();
57
57
  debug = (0, import_debug.default)("prisma:cli");
58
58
  }
59
59
  });
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_X6GGREJW_exports = {};
30
- __export(chunk_X6GGREJW_exports, {
29
+ var chunk_BQXAMKF7_exports = {};
30
+ __export(chunk_BQXAMKF7_exports, {
31
31
  MigrateDeploy: () => MigrateDeploy,
32
32
  init_MigrateDeploy: () => init_MigrateDeploy
33
33
  });
34
- module.exports = __toCommonJS(chunk_X6GGREJW_exports);
34
+ module.exports = __toCommonJS(chunk_BQXAMKF7_exports);
35
35
  var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
36
- var import_chunk_LJOMIPJW = require("./chunk-LJOMIPJW.js");
36
+ var import_chunk_NCDRH4BH = require("./chunk-NCDRH4BH.js");
37
37
  var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
38
38
  var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
39
39
  var import_chunk_KEBB7UIB = require("./chunk-KEBB7UIB.js");
@@ -45,7 +45,7 @@ var debug, _MigrateDeploy, MigrateDeploy;
45
45
  var init_MigrateDeploy = (0, import_chunk_WWAWV7DQ.__esm)({
46
46
  "src/commands/MigrateDeploy.ts"() {
47
47
  (0, import_chunk_6TE2RIPN.init_colors)();
48
- (0, import_chunk_LJOMIPJW.init_Migrate)();
48
+ (0, import_chunk_NCDRH4BH.init_Migrate)();
49
49
  (0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
50
50
  (0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
51
51
  (0, import_chunk_Q7ACZDDT.init_printDatasource)();
@@ -76,7 +76,7 @@ var init_MigrateDeploy = (0, import_chunk_WWAWV7DQ.__esm)({
76
76
  await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
77
77
  const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
78
78
  (0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_KEBB7UIB.getDatasourceInfo)({ schemaPath }) });
79
- const migrate = new import_chunk_LJOMIPJW.Migrate(schemaPath);
79
+ const migrate = new import_chunk_NCDRH4BH.Migrate(schemaPath);
80
80
  try {
81
81
  const wasDbCreated = await (0, import_chunk_KEBB7UIB.ensureDatabaseExists)("apply", schemaPath);
82
82
  if (wasDbCreated) {