@prisma/migrate 6.4.0-dev.5 → 6.4.0-dev.50

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.
Files changed (63) hide show
  1. package/dist/CLI.js +3 -3
  2. package/dist/Migrate.js +4 -4
  3. package/dist/SchemaEngine.js +4 -4
  4. package/dist/bin.js +61 -47
  5. package/dist/{chunk-7S3QTEWV.js → chunk-425Y6H4U.js} +41 -37
  6. package/dist/{chunk-XVXYNQ6H.js → chunk-6MPIO773.js} +40 -36
  7. package/dist/{chunk-AMRGQNRR.js → chunk-75EIHNAH.js} +6 -6
  8. package/dist/{chunk-Q3SQU7C6.js → chunk-7S3Q4MCN.js} +4 -4
  9. package/dist/{chunk-NKQGJ3AE.js → chunk-A6PMXMMT.js} +29 -15
  10. package/dist/{chunk-GRGGAY6L.js → chunk-CUDKD32S.js} +159 -5
  11. package/dist/{chunk-7QAR4NT3.js → chunk-EDQWDMXR.js} +9 -8
  12. package/dist/{chunk-43RWRQLU.js → chunk-FM4XJBEM.js} +9 -8
  13. package/dist/{chunk-JESW2ENL.js → chunk-JYXY3OJ6.js} +9 -8
  14. package/dist/{chunk-77RYI3ZW.js → chunk-KW5YM5ZK.js} +9 -8
  15. package/dist/{chunk-NJUAN6V2.js → chunk-L5WSTNST.js} +6 -6
  16. package/dist/{chunk-HAJNCOW7.js → chunk-LPSZG4BL.js} +22 -21
  17. package/dist/{chunk-JZ6FKTWG.js → chunk-MWDR5RWF.js} +5 -6
  18. package/dist/{chunk-G66QFMM5.js → chunk-N3AT4GUM.js} +11 -10
  19. package/dist/{chunk-CK5VLKFM.js → chunk-NGDFNKHZ.js} +6 -6
  20. package/dist/{chunk-E2XKFV2C.js → chunk-QV7SOU3V.js} +6 -5
  21. package/dist/{chunk-CSUAUCRR.js → chunk-REKABZBY.js} +9 -8
  22. package/dist/{chunk-I63N54YI.js → chunk-T6Y2635A.js} +10 -9
  23. package/dist/{chunk-ZKWJDQMB.js → chunk-UVNSK22K.js} +7 -7
  24. package/dist/{chunk-WJT3IOMB.js → chunk-VGYN2FAS.js} +6 -5
  25. package/dist/{chunk-JTNVQIRB.js → chunk-YWWOSXMY.js} +6 -6
  26. package/dist/commands/DbCommand.js +3 -3
  27. package/dist/commands/DbDrop.js +2 -2
  28. package/dist/commands/DbExecute.js +5 -5
  29. package/dist/commands/DbPull.js +5 -5
  30. package/dist/commands/DbPush.js +5 -5
  31. package/dist/commands/DbSeed.js +3 -3
  32. package/dist/commands/MigrateCommand.js +3 -3
  33. package/dist/commands/MigrateDeploy.js +5 -5
  34. package/dist/commands/MigrateDev.js +5 -5
  35. package/dist/commands/MigrateDiff.js +6 -6
  36. package/dist/commands/MigrateReset.js +5 -5
  37. package/dist/commands/MigrateResolve.js +5 -5
  38. package/dist/commands/MigrateStatus.js +5 -5
  39. package/dist/index.js +51 -51
  40. package/dist/internals/src/cli/getSchema.d.ts +1 -39
  41. package/dist/internals/src/cli/types.d.ts +2 -1
  42. package/dist/internals/src/index.d.ts +2 -1
  43. package/dist/internals/src/utils/loadEnvFile.d.ts +4 -2
  44. package/dist/internals/src/utils/toSchemasContainer.d.ts +1 -1
  45. package/dist/migrate/src/CLI.d.ts +2 -1
  46. package/dist/migrate/src/commands/DbCommand.d.ts +2 -1
  47. package/dist/migrate/src/commands/DbDrop.d.ts +2 -1
  48. package/dist/migrate/src/commands/DbExecute.d.ts +2 -1
  49. package/dist/migrate/src/commands/DbPull.d.ts +2 -1
  50. package/dist/migrate/src/commands/DbPush.d.ts +2 -1
  51. package/dist/migrate/src/commands/DbSeed.d.ts +2 -1
  52. package/dist/migrate/src/commands/MigrateCommand.d.ts +2 -1
  53. package/dist/migrate/src/commands/MigrateDeploy.d.ts +2 -1
  54. package/dist/migrate/src/commands/MigrateDev.d.ts +2 -1
  55. package/dist/migrate/src/commands/MigrateDiff.d.ts +2 -1
  56. package/dist/migrate/src/commands/MigrateReset.d.ts +2 -1
  57. package/dist/migrate/src/commands/MigrateResolve.d.ts +2 -1
  58. package/dist/migrate/src/commands/MigrateStatus.d.ts +2 -1
  59. package/dist/utils/getDatabaseVersionSafe.js +4 -4
  60. package/dist/utils/introspectSql.js +3 -3
  61. package/dist/utils/setupMSSQL.js +72 -73
  62. package/dist/utils/spinner.js +3 -3
  63. package/package.json +7 -6
@@ -26,13 +26,13 @@ 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_Q3SQU7C6_exports = {};
30
- __export(chunk_Q3SQU7C6_exports, {
29
+ var chunk_7S3Q4MCN_exports = {};
30
+ __export(chunk_7S3Q4MCN_exports, {
31
31
  EngineError: () => EngineError,
32
32
  SchemaEngine: () => SchemaEngine,
33
33
  init_SchemaEngine: () => init_SchemaEngine
34
34
  });
35
- module.exports = __toCommonJS(chunk_Q3SQU7C6_exports);
35
+ module.exports = __toCommonJS(chunk_7S3Q4MCN_exports);
36
36
  var import_chunk_CQQQ436N = require("./chunk-CQQQ436N.js");
37
37
  var import_chunk_AAATUOV6 = require("./chunk-AAATUOV6.js");
38
38
  var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
@@ -260,7 +260,7 @@ var init_SchemaEngine = (0, import_chunk_WWAWV7DQ.__esm)({
260
260
  try {
261
261
  result = JSON.parse(response);
262
262
  } catch (e) {
263
- console.error(`Could not parse Schema engine response: ${response.slice(0, 200)}`);
263
+ console.error(`Could not parse Schema engine response: ${response.slice(0, 200)}. Error: ${e.message}`);
264
264
  }
265
265
  if (result) {
266
266
  if (result.id && (result.result !== void 0 || result.error !== void 0)) {
@@ -16,8 +16,8 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_NKQGJ3AE_exports = {};
20
- __export(chunk_NKQGJ3AE_exports, {
19
+ var chunk_A6PMXMMT_exports = {};
20
+ __export(chunk_A6PMXMMT_exports, {
21
21
  require_clean: () => require_clean,
22
22
  require_constants: () => require_constants,
23
23
  require_debug: () => require_debug,
@@ -28,10 +28,10 @@ __export(chunk_NKQGJ3AE_exports, {
28
28
  require_semver: () => require_semver,
29
29
  require_valid: () => require_valid
30
30
  });
31
- module.exports = __toCommonJS(chunk_NKQGJ3AE_exports);
31
+ module.exports = __toCommonJS(chunk_A6PMXMMT_exports);
32
32
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
33
33
  var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
34
- "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js"(exports, module2) {
34
+ "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/debug.js"(exports, module2) {
35
35
  "use strict";
36
36
  var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
37
37
  };
@@ -39,7 +39,7 @@ var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
39
39
  }
40
40
  });
41
41
  var require_constants = (0, import_chunk_WWAWV7DQ.__commonJS)({
42
- "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js"(exports, module2) {
42
+ "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/constants.js"(exports, module2) {
43
43
  "use strict";
44
44
  var SEMVER_SPEC_VERSION = "2.0.0";
45
45
  var MAX_LENGTH = 256;
@@ -69,7 +69,7 @@ var require_constants = (0, import_chunk_WWAWV7DQ.__commonJS)({
69
69
  }
70
70
  });
71
71
  var require_re = (0, import_chunk_WWAWV7DQ.__commonJS)({
72
- "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js"(exports, module2) {
72
+ "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/re.js"(exports, module2) {
73
73
  "use strict";
74
74
  var {
75
75
  MAX_SAFE_COMPONENT_LENGTH,
@@ -153,7 +153,7 @@ var require_re = (0, import_chunk_WWAWV7DQ.__commonJS)({
153
153
  }
154
154
  });
155
155
  var require_parse_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
156
- "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js"(exports, module2) {
156
+ "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/parse-options.js"(exports, module2) {
157
157
  "use strict";
158
158
  var looseOption = Object.freeze({ loose: true });
159
159
  var emptyOpts = Object.freeze({});
@@ -170,7 +170,7 @@ var require_parse_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
170
170
  }
171
171
  });
172
172
  var require_identifiers = (0, import_chunk_WWAWV7DQ.__commonJS)({
173
- "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js"(exports, module2) {
173
+ "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/identifiers.js"(exports, module2) {
174
174
  "use strict";
175
175
  var numeric = /^[0-9]+$/;
176
176
  var compareIdentifiers = (a, b) => {
@@ -190,7 +190,7 @@ var require_identifiers = (0, import_chunk_WWAWV7DQ.__commonJS)({
190
190
  }
191
191
  });
192
192
  var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
193
- "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js"(exports, module2) {
193
+ "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/classes/semver.js"(exports, module2) {
194
194
  "use strict";
195
195
  var debug = require_debug();
196
196
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
@@ -334,6 +334,17 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
334
334
  // preminor will bump the version up to the next minor release, and immediately
335
335
  // down to pre-release. premajor and prepatch work the same way.
336
336
  inc(release, identifier, identifierBase) {
337
+ if (release.startsWith("pre")) {
338
+ if (!identifier && identifierBase === false) {
339
+ throw new Error("invalid increment argument: identifier is empty");
340
+ }
341
+ if (identifier) {
342
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
343
+ if (!match || match[1] !== identifier) {
344
+ throw new Error(`invalid identifier: ${identifier}`);
345
+ }
346
+ }
347
+ }
337
348
  switch (release) {
338
349
  case "premajor":
339
350
  this.prerelease.length = 0;
@@ -361,6 +372,12 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
361
372
  }
362
373
  this.inc("pre", identifier, identifierBase);
363
374
  break;
375
+ case "release":
376
+ if (this.prerelease.length === 0) {
377
+ throw new Error(`version ${this.raw} is not a prerelease`);
378
+ }
379
+ this.prerelease.length = 0;
380
+ break;
364
381
  case "major":
365
382
  if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
366
383
  this.major++;
@@ -386,9 +403,6 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
386
403
  // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
387
404
  case "pre": {
388
405
  const base = Number(identifierBase) ? 1 : 0;
389
- if (!identifier && identifierBase === false) {
390
- throw new Error("invalid increment argument: identifier is empty");
391
- }
392
406
  if (this.prerelease.length === 0) {
393
407
  this.prerelease = [base];
394
408
  } else {
@@ -435,7 +449,7 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
435
449
  }
436
450
  });
437
451
  var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
438
- "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js"(exports, module2) {
452
+ "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/functions/parse.js"(exports, module2) {
439
453
  "use strict";
440
454
  var SemVer = require_semver();
441
455
  var parse = (version, options, throwErrors = false) => {
@@ -455,7 +469,7 @@ var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
455
469
  }
456
470
  });
457
471
  var require_valid = (0, import_chunk_WWAWV7DQ.__commonJS)({
458
- "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js"(exports, module2) {
472
+ "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/functions/valid.js"(exports, module2) {
459
473
  "use strict";
460
474
  var parse = require_parse();
461
475
  var valid = (version, options) => {
@@ -466,7 +480,7 @@ var require_valid = (0, import_chunk_WWAWV7DQ.__commonJS)({
466
480
  }
467
481
  });
468
482
  var require_clean = (0, import_chunk_WWAWV7DQ.__commonJS)({
469
- "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js"(exports, module2) {
483
+ "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/functions/clean.js"(exports, module2) {
470
484
  "use strict";
471
485
  var parse = require_parse();
472
486
  var clean = (version, options) => {
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_GRGGAY6L_exports = {};
20
- __export(chunk_GRGGAY6L_exports, {
19
+ var chunk_CUDKD32S_exports = {};
20
+ __export(chunk_CUDKD32S_exports, {
21
21
  createSpinner: () => createSpinner,
22
22
  init_spinner: () => init_spinner
23
23
  });
24
- module.exports = __toCommonJS(chunk_GRGGAY6L_exports);
24
+ module.exports = __toCommonJS(chunk_CUDKD32S_exports);
25
25
  var import_chunk_YUCPBDWV = require("./chunk-YUCPBDWV.js");
26
26
  var import_chunk_RM5LJIEV = require("./chunk-RM5LJIEV.js");
27
27
  var import_chunk_6C7ESGWY = require("./chunk-6C7ESGWY.js");
@@ -452,7 +452,7 @@ var require_source = (0, import_chunk_WWAWV7DQ.__commonJS)({
452
452
  }
453
453
  });
454
454
  var require_spinners = (0, import_chunk_WWAWV7DQ.__commonJS)({
455
- "../../node_modules/.pnpm/cli-spinners@2.7.0/node_modules/cli-spinners/spinners.json"(exports, module2) {
455
+ "../../node_modules/.pnpm/cli-spinners@2.9.2/node_modules/cli-spinners/spinners.json"(exports, module2) {
456
456
  module2.exports = {
457
457
  dots: {
458
458
  interval: 80,
@@ -1240,6 +1240,21 @@ var require_spinners = (0, import_chunk_WWAWV7DQ.__commonJS)({
1240
1240
  "\u25E5"
1241
1241
  ]
1242
1242
  },
1243
+ binary: {
1244
+ interval: 80,
1245
+ frames: [
1246
+ "010010",
1247
+ "001100",
1248
+ "100101",
1249
+ "111010",
1250
+ "111101",
1251
+ "010111",
1252
+ "101011",
1253
+ "111000",
1254
+ "110011",
1255
+ "110101"
1256
+ ]
1257
+ },
1243
1258
  arc: {
1244
1259
  interval: 100,
1245
1260
  frames: [
@@ -1432,6 +1447,7 @@ var require_spinners = (0, import_chunk_WWAWV7DQ.__commonJS)({
1432
1447
  "[= ]",
1433
1448
  "[== ]",
1434
1449
  "[=== ]",
1450
+ "[====]",
1435
1451
  "[ ===]",
1436
1452
  "[ ==]",
1437
1453
  "[ =]",
@@ -1919,12 +1935,150 @@ var require_spinners = (0, import_chunk_WWAWV7DQ.__commonJS)({
1919
1935
  "\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0",
1920
1936
  "\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"
1921
1937
  ]
1938
+ },
1939
+ dwarfFortress: {
1940
+ interval: 80,
1941
+ frames: [
1942
+ " \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1943
+ "\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1944
+ "\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1945
+ "\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1946
+ "\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1947
+ "\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1948
+ "\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1949
+ "\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1950
+ "\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1951
+ "\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1952
+ " \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1953
+ " \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1954
+ " \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1955
+ " \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1956
+ " \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1957
+ " \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1958
+ " \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1959
+ " \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1960
+ " \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1961
+ " \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1962
+ " \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
1963
+ " \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 ",
1964
+ " \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 ",
1965
+ " \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 ",
1966
+ " \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 ",
1967
+ " \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 ",
1968
+ " \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 ",
1969
+ " \u263A \u2588\u2588\u2588\xA3\xA3\xA3 ",
1970
+ " \u263A\u2588\u2588\u2588\xA3\xA3\xA3 ",
1971
+ " \u263A\u2588\u2588\u2588\xA3\xA3\xA3 ",
1972
+ " \u263A\u2593\u2588\u2588\xA3\xA3\xA3 ",
1973
+ " \u263A\u2593\u2588\u2588\xA3\xA3\xA3 ",
1974
+ " \u263A\u2592\u2588\u2588\xA3\xA3\xA3 ",
1975
+ " \u263A\u2592\u2588\u2588\xA3\xA3\xA3 ",
1976
+ " \u263A\u2591\u2588\u2588\xA3\xA3\xA3 ",
1977
+ " \u263A\u2591\u2588\u2588\xA3\xA3\xA3 ",
1978
+ " \u263A \u2588\u2588\xA3\xA3\xA3 ",
1979
+ " \u263A\u2588\u2588\xA3\xA3\xA3 ",
1980
+ " \u263A\u2588\u2588\xA3\xA3\xA3 ",
1981
+ " \u263A\u2593\u2588\xA3\xA3\xA3 ",
1982
+ " \u263A\u2593\u2588\xA3\xA3\xA3 ",
1983
+ " \u263A\u2592\u2588\xA3\xA3\xA3 ",
1984
+ " \u263A\u2592\u2588\xA3\xA3\xA3 ",
1985
+ " \u263A\u2591\u2588\xA3\xA3\xA3 ",
1986
+ " \u263A\u2591\u2588\xA3\xA3\xA3 ",
1987
+ " \u263A \u2588\xA3\xA3\xA3 ",
1988
+ " \u263A\u2588\xA3\xA3\xA3 ",
1989
+ " \u263A\u2588\xA3\xA3\xA3 ",
1990
+ " \u263A\u2593\xA3\xA3\xA3 ",
1991
+ " \u263A\u2593\xA3\xA3\xA3 ",
1992
+ " \u263A\u2592\xA3\xA3\xA3 ",
1993
+ " \u263A\u2592\xA3\xA3\xA3 ",
1994
+ " \u263A\u2591\xA3\xA3\xA3 ",
1995
+ " \u263A\u2591\xA3\xA3\xA3 ",
1996
+ " \u263A \xA3\xA3\xA3 ",
1997
+ " \u263A\xA3\xA3\xA3 ",
1998
+ " \u263A\xA3\xA3\xA3 ",
1999
+ " \u263A\u2593\xA3\xA3 ",
2000
+ " \u263A\u2593\xA3\xA3 ",
2001
+ " \u263A\u2592\xA3\xA3 ",
2002
+ " \u263A\u2592\xA3\xA3 ",
2003
+ " \u263A\u2591\xA3\xA3 ",
2004
+ " \u263A\u2591\xA3\xA3 ",
2005
+ " \u263A \xA3\xA3 ",
2006
+ " \u263A\xA3\xA3 ",
2007
+ " \u263A\xA3\xA3 ",
2008
+ " \u263A\u2593\xA3 ",
2009
+ " \u263A\u2593\xA3 ",
2010
+ " \u263A\u2592\xA3 ",
2011
+ " \u263A\u2592\xA3 ",
2012
+ " \u263A\u2591\xA3 ",
2013
+ " \u263A\u2591\xA3 ",
2014
+ " \u263A \xA3 ",
2015
+ " \u263A\xA3 ",
2016
+ " \u263A\xA3 ",
2017
+ " \u263A\u2593 ",
2018
+ " \u263A\u2593 ",
2019
+ " \u263A\u2592 ",
2020
+ " \u263A\u2592 ",
2021
+ " \u263A\u2591 ",
2022
+ " \u263A\u2591 ",
2023
+ " \u263A ",
2024
+ " \u263A &",
2025
+ " \u263A \u263C&",
2026
+ " \u263A \u263C &",
2027
+ " \u263A\u263C &",
2028
+ " \u263A\u263C & ",
2029
+ " \u203C & ",
2030
+ " \u263A & ",
2031
+ " \u203C & ",
2032
+ " \u263A & ",
2033
+ " \u203C & ",
2034
+ " \u263A & ",
2035
+ "\u203C & ",
2036
+ " & ",
2037
+ " & ",
2038
+ " & \u2591 ",
2039
+ " & \u2592 ",
2040
+ " & \u2593 ",
2041
+ " & \xA3 ",
2042
+ " & \u2591\xA3 ",
2043
+ " & \u2592\xA3 ",
2044
+ " & \u2593\xA3 ",
2045
+ " & \xA3\xA3 ",
2046
+ " & \u2591\xA3\xA3 ",
2047
+ " & \u2592\xA3\xA3 ",
2048
+ "& \u2593\xA3\xA3 ",
2049
+ "& \xA3\xA3\xA3 ",
2050
+ " \u2591\xA3\xA3\xA3 ",
2051
+ " \u2592\xA3\xA3\xA3 ",
2052
+ " \u2593\xA3\xA3\xA3 ",
2053
+ " \u2588\xA3\xA3\xA3 ",
2054
+ " \u2591\u2588\xA3\xA3\xA3 ",
2055
+ " \u2592\u2588\xA3\xA3\xA3 ",
2056
+ " \u2593\u2588\xA3\xA3\xA3 ",
2057
+ " \u2588\u2588\xA3\xA3\xA3 ",
2058
+ " \u2591\u2588\u2588\xA3\xA3\xA3 ",
2059
+ " \u2592\u2588\u2588\xA3\xA3\xA3 ",
2060
+ " \u2593\u2588\u2588\xA3\xA3\xA3 ",
2061
+ " \u2588\u2588\u2588\xA3\xA3\xA3 ",
2062
+ " \u2591\u2588\u2588\u2588\xA3\xA3\xA3 ",
2063
+ " \u2592\u2588\u2588\u2588\xA3\xA3\xA3 ",
2064
+ " \u2593\u2588\u2588\u2588\xA3\xA3\xA3 ",
2065
+ " \u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
2066
+ " \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
2067
+ " \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
2068
+ " \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
2069
+ " \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
2070
+ " \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
2071
+ " \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
2072
+ " \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
2073
+ " \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
2074
+ " \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "
2075
+ ]
1922
2076
  }
1923
2077
  };
1924
2078
  }
1925
2079
  });
1926
2080
  var require_cli_spinners = (0, import_chunk_WWAWV7DQ.__commonJS)({
1927
- "../../node_modules/.pnpm/cli-spinners@2.7.0/node_modules/cli-spinners/index.js"(exports, module2) {
2081
+ "../../node_modules/.pnpm/cli-spinners@2.9.2/node_modules/cli-spinners/index.js"(exports, module2) {
1928
2082
  "use strict";
1929
2083
  var spinners = Object.assign({}, require_spinners());
1930
2084
  var spinnersList = Object.keys(spinners);
@@ -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_7QAR4NT3_exports = {};
30
- __export(chunk_7QAR4NT3_exports, {
29
+ var chunk_EDQWDMXR_exports = {};
30
+ __export(chunk_EDQWDMXR_exports, {
31
31
  MigrateReset: () => MigrateReset,
32
32
  init_MigrateReset: () => init_MigrateReset
33
33
  });
34
- module.exports = __toCommonJS(chunk_7QAR4NT3_exports);
34
+ module.exports = __toCommonJS(chunk_EDQWDMXR_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_ZKWJDQMB = require("./chunk-ZKWJDQMB.js");
37
+ var import_chunk_UVNSK22K = require("./chunk-UVNSK22K.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_ZKWJDQMB.init_Migrate)();
50
+ (0, import_chunk_UVNSK22K.init_Migrate)();
51
51
  (0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
52
52
  (0, import_chunk_U374EXYQ.init_errors)();
53
53
  (0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
@@ -58,7 +58,7 @@ var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
58
58
  static new() {
59
59
  return new _MigrateReset2();
60
60
  }
61
- async parse(argv) {
61
+ async parse(argv, config) {
62
62
  const args = (0, import_internals.arg)(argv, {
63
63
  "--help": Boolean,
64
64
  "-h": "--help",
@@ -76,7 +76,7 @@ var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
76
76
  if (args["--help"]) {
77
77
  return this.help();
78
78
  }
79
- await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
79
+ await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
80
80
  const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
81
81
  const datasourceInfo = await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath });
82
82
  (0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
@@ -100,7 +100,7 @@ var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
100
100
  process.exit(130);
101
101
  }
102
102
  }
103
- const migrate = new import_chunk_ZKWJDQMB.Migrate(schemaPath);
103
+ const migrate = new import_chunk_UVNSK22K.Migrate(schemaPath);
104
104
  let migrationIds;
105
105
  try {
106
106
  await migrate.reset();
@@ -166,6 +166,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Usage")}
166
166
  ${(0, import_chunk_6TE2RIPN.bold)("Options")}
167
167
 
168
168
  -h, --help Display this help message
169
+ --config Custom path to your Prisma config file
169
170
  --schema Custom path to your Prisma schema
170
171
  --skip-generate Skip triggering generators (e.g. Prisma Client)
171
172
  --skip-seed Skip triggering seed
@@ -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_43RWRQLU_exports = {};
30
- __export(chunk_43RWRQLU_exports, {
29
+ var chunk_FM4XJBEM_exports = {};
30
+ __export(chunk_FM4XJBEM_exports, {
31
31
  MigrateDeploy: () => MigrateDeploy,
32
32
  init_MigrateDeploy: () => init_MigrateDeploy
33
33
  });
34
- module.exports = __toCommonJS(chunk_43RWRQLU_exports);
34
+ module.exports = __toCommonJS(chunk_FM4XJBEM_exports);
35
35
  var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
36
- var import_chunk_ZKWJDQMB = require("./chunk-ZKWJDQMB.js");
36
+ var import_chunk_UVNSK22K = require("./chunk-UVNSK22K.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_XJQP3B4W = require("./chunk-XJQP3B4W.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_ZKWJDQMB.init_Migrate)();
48
+ (0, import_chunk_UVNSK22K.init_Migrate)();
49
49
  (0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
50
50
  (0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
51
51
  (0, import_chunk_Q7ACZDDT.init_printDatasource)();
@@ -55,7 +55,7 @@ var init_MigrateDeploy = (0, import_chunk_WWAWV7DQ.__esm)({
55
55
  static new() {
56
56
  return new _MigrateDeploy2();
57
57
  }
58
- async parse(argv) {
58
+ async parse(argv, config) {
59
59
  const args = (0, import_internals.arg)(
60
60
  argv,
61
61
  {
@@ -73,10 +73,10 @@ var init_MigrateDeploy = (0, import_chunk_WWAWV7DQ.__esm)({
73
73
  if (args["--help"]) {
74
74
  return this.help();
75
75
  }
76
- await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
76
+ await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
77
77
  const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
78
78
  (0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath }) });
79
- const migrate = new import_chunk_ZKWJDQMB.Migrate(schemaPath);
79
+ const migrate = new import_chunk_UVNSK22K.Migrate(schemaPath);
80
80
  try {
81
81
  const wasDbCreated = await (0, import_chunk_XJQP3B4W.ensureDatabaseExists)("apply", schemaPath);
82
82
  if (wasDbCreated) {
@@ -143,6 +143,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Usage")}
143
143
  ${(0, import_chunk_6TE2RIPN.bold)("Options")}
144
144
 
145
145
  -h, --help Display this help message
146
+ --config Custom path to your Prisma config file
146
147
  --schema Custom path to your Prisma schema
147
148
 
148
149
  ${(0, import_chunk_6TE2RIPN.bold)("Examples")}
@@ -26,13 +26,13 @@ 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_JESW2ENL_exports = {};
30
- __export(chunk_JESW2ENL_exports, {
29
+ var chunk_JYXY3OJ6_exports = {};
30
+ __export(chunk_JYXY3OJ6_exports, {
31
31
  DbPush: () => DbPush,
32
32
  init_DbPush: () => init_DbPush
33
33
  });
34
- module.exports = __toCommonJS(chunk_JESW2ENL_exports);
35
- var import_chunk_ZKWJDQMB = require("./chunk-ZKWJDQMB.js");
34
+ module.exports = __toCommonJS(chunk_JYXY3OJ6_exports);
35
+ var import_chunk_UVNSK22K = require("./chunk-UVNSK22K.js");
36
36
  var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
37
37
  var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
38
38
  var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
@@ -45,7 +45,7 @@ var _DbPush, DbPush;
45
45
  var init_DbPush = (0, import_chunk_WWAWV7DQ.__esm)({
46
46
  "src/commands/DbPush.ts"() {
47
47
  (0, import_chunk_6TE2RIPN.init_colors)();
48
- (0, import_chunk_ZKWJDQMB.init_Migrate)();
48
+ (0, import_chunk_UVNSK22K.init_Migrate)();
49
49
  (0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
50
50
  (0, import_chunk_U374EXYQ.init_errors)();
51
51
  (0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
@@ -54,7 +54,7 @@ var init_DbPush = (0, import_chunk_WWAWV7DQ.__esm)({
54
54
  static new() {
55
55
  return new _DbPush2();
56
56
  }
57
- async parse(argv) {
57
+ async parse(argv, config) {
58
58
  const args = (0, import_internals.arg)(
59
59
  argv,
60
60
  {
@@ -75,11 +75,11 @@ var init_DbPush = (0, import_chunk_WWAWV7DQ.__esm)({
75
75
  if (args["--help"]) {
76
76
  return this.help();
77
77
  }
78
- await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
78
+ await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
79
79
  const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
80
80
  const datasourceInfo = await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath });
81
81
  (0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
82
- const migrate = new import_chunk_ZKWJDQMB.Migrate(schemaPath);
82
+ const migrate = new import_chunk_UVNSK22K.Migrate(schemaPath);
83
83
  try {
84
84
  const wasDbCreated = await (0, import_chunk_XJQP3B4W.ensureDatabaseExists)("push", schemaPath);
85
85
  if (wasDbCreated) {
@@ -256,6 +256,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Usage")}
256
256
  ${(0, import_chunk_6TE2RIPN.bold)("Options")}
257
257
 
258
258
  -h, --help Display this help message
259
+ --config Custom path to your Prisma config file
259
260
  --schema Custom path to your Prisma schema
260
261
  --accept-data-loss Ignore data loss warnings
261
262
  --force-reset Force a reset of the database before push
@@ -26,13 +26,13 @@ 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_77RYI3ZW_exports = {};
30
- __export(chunk_77RYI3ZW_exports, {
29
+ var chunk_KW5YM5ZK_exports = {};
30
+ __export(chunk_KW5YM5ZK_exports, {
31
31
  MigrateStatus: () => MigrateStatus,
32
32
  init_MigrateStatus: () => init_MigrateStatus
33
33
  });
34
- module.exports = __toCommonJS(chunk_77RYI3ZW_exports);
35
- var import_chunk_ZKWJDQMB = require("./chunk-ZKWJDQMB.js");
34
+ module.exports = __toCommonJS(chunk_KW5YM5ZK_exports);
35
+ var import_chunk_UVNSK22K = require("./chunk-UVNSK22K.js");
36
36
  var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
37
37
  var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
38
38
  var import_chunk_XJQP3B4W = require("./chunk-XJQP3B4W.js");
@@ -44,7 +44,7 @@ var debug, _MigrateStatus, MigrateStatus;
44
44
  var init_MigrateStatus = (0, import_chunk_WWAWV7DQ.__esm)({
45
45
  "src/commands/MigrateStatus.ts"() {
46
46
  (0, import_chunk_6TE2RIPN.init_colors)();
47
- (0, import_chunk_ZKWJDQMB.init_Migrate)();
47
+ (0, import_chunk_UVNSK22K.init_Migrate)();
48
48
  (0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
49
49
  (0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
50
50
  (0, import_chunk_Q7ACZDDT.init_printDatasource)();
@@ -53,7 +53,7 @@ var init_MigrateStatus = (0, import_chunk_WWAWV7DQ.__esm)({
53
53
  static new() {
54
54
  return new _MigrateStatus2();
55
55
  }
56
- async parse(argv) {
56
+ async parse(argv, config) {
57
57
  const args = (0, import_internals.arg)(
58
58
  argv,
59
59
  {
@@ -71,10 +71,10 @@ var init_MigrateStatus = (0, import_chunk_WWAWV7DQ.__esm)({
71
71
  if (args["--help"]) {
72
72
  return this.help();
73
73
  }
74
- await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
74
+ await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
75
75
  const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
76
76
  (0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath }) });
77
- const migrate = new import_chunk_ZKWJDQMB.Migrate(schemaPath);
77
+ const migrate = new import_chunk_UVNSK22K.Migrate(schemaPath);
78
78
  await (0, import_chunk_XJQP3B4W.ensureCanConnectToDatabase)(schemaPath);
79
79
  let diagnoseResult;
80
80
  let listMigrationDirectoriesResult;
@@ -190,6 +190,7 @@ Check the status of your database migrations
190
190
  ${(0, import_chunk_6TE2RIPN.bold)("Options")}
191
191
 
192
192
  -h, --help Display this help message
193
+ --config Custom path to your Prisma config file
193
194
  --schema Custom path to your Prisma schema
194
195
 
195
196
  ${(0, import_chunk_6TE2RIPN.bold)("Examples")}
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_NJUAN6V2_exports = {};
20
- __export(chunk_NJUAN6V2_exports, {
19
+ var chunk_L5WSTNST_exports = {};
20
+ __export(chunk_L5WSTNST_exports, {
21
21
  DbCommand: () => DbCommand,
22
22
  init_DbCommand: () => init_DbCommand
23
23
  });
24
- module.exports = __toCommonJS(chunk_NJUAN6V2_exports);
24
+ module.exports = __toCommonJS(chunk_L5WSTNST_exports);
25
25
  var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
26
26
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
27
27
  var import_internals = require("@prisma/internals");
@@ -36,8 +36,7 @@ var init_DbCommand = (0, import_chunk_WWAWV7DQ.__esm)({
36
36
  static new(cmds) {
37
37
  return new _DbCommand2(cmds);
38
38
  }
39
- /* eslint-disable-next-line @typescript-eslint/require-await */
40
- async parse(argv) {
39
+ async parse(argv, config) {
41
40
  const args = (0, import_internals.arg)(argv, {
42
41
  "--help": Boolean,
43
42
  "-h": "--help",
@@ -53,7 +52,7 @@ var init_DbCommand = (0, import_chunk_WWAWV7DQ.__esm)({
53
52
  const cmd = this.cmds[args._[0]];
54
53
  if (cmd) {
55
54
  const argsForCmd = args["--preview-feature"] ? [...args._.slice(1), `--preview-feature`] : args._.slice(1);
56
- return cmd.parse(argsForCmd);
55
+ return cmd.parse(argsForCmd, config);
57
56
  }
58
57
  return (0, import_internals.unknownCommand)(_DbCommand2.help, args._[0]);
59
58
  }
@@ -76,6 +75,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Usage")}
76
75
  ${(0, import_chunk_6TE2RIPN.bold)("Options")}
77
76
 
78
77
  -h, --help Display this help message
78
+ --config Custom path to your Prisma config file
79
79
  --schema Custom path to your Prisma schema
80
80
 
81
81
  ${(0, import_chunk_6TE2RIPN.bold)("Commands")}