@prisma/migrate 6.6.0-dev.17 → 6.6.0-dev.19

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 (33) hide show
  1. package/dist/Migrate.js +3 -3
  2. package/dist/bin.js +25 -25
  3. package/dist/{chunk-KS7IEA6Z.js → chunk-2VSCT73F.js} +9 -9
  4. package/dist/{chunk-HCBZB4XC.js → chunk-3OQIC7NW.js} +6 -6
  5. package/dist/chunk-3VFKYWQZ.js +486 -0
  6. package/dist/{chunk-MCWCB2AX.js → chunk-4ZFVT4RS.js} +22 -470
  7. package/dist/{chunk-3IDVYAZC.js → chunk-BC7TR6DY.js} +5 -5
  8. package/dist/{chunk-GG54LOYV.js → chunk-DAYMMAJB.js} +5 -5
  9. package/dist/{chunk-Q3ZLC44N.js → chunk-DNOOU7FC.js} +9 -9
  10. package/dist/{chunk-WI2A2TQE.js → chunk-IY67YUOD.js} +5 -5
  11. package/dist/{chunk-N3KYWSX2.js → chunk-MREGRQDD.js} +5 -5
  12. package/dist/chunk-N5UBDQRA.js +846 -0
  13. package/dist/{chunk-N4XTKFY6.js → chunk-NAXFX7K7.js} +5 -5
  14. package/dist/{chunk-CQZFVAXC.js → chunk-PW3LNSDM.js} +5 -5
  15. package/dist/{chunk-G2XUUMKH.js → chunk-UKVQP5ES.js} +7 -7
  16. package/dist/{chunk-V3ZMNXZC.js → chunk-WG2SP5KE.js} +248 -6
  17. package/dist/{chunk-4U5LVILF.js → chunk-XR7HARSY.js} +6 -6
  18. package/dist/commands/DbExecute.js +4 -4
  19. package/dist/commands/DbPull.js +4 -3
  20. package/dist/commands/DbPush.js +4 -4
  21. package/dist/commands/DbSeed.js +3 -4
  22. package/dist/commands/MigrateDeploy.js +4 -4
  23. package/dist/commands/MigrateDev.js +5 -5
  24. package/dist/commands/MigrateDiff.js +4 -4
  25. package/dist/commands/MigrateReset.js +5 -5
  26. package/dist/commands/MigrateResolve.js +4 -4
  27. package/dist/commands/MigrateStatus.js +4 -4
  28. package/dist/index.js +25 -25
  29. package/dist/utils/seed.js +5 -6
  30. package/dist/utils/spinner.js +3 -2
  31. package/package.json +7 -7
  32. package/dist/chunk-J46BJQHT.js +0 -268
  33. package/dist/chunk-KOF4LGTS.js +0 -1817
@@ -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_Q3ZLC44N_exports = {};
30
- __export(chunk_Q3ZLC44N_exports, {
29
+ var chunk_DNOOU7FC_exports = {};
30
+ __export(chunk_DNOOU7FC_exports, {
31
31
  MigrateDev: () => MigrateDev
32
32
  });
33
- module.exports = __toCommonJS(chunk_Q3ZLC44N_exports);
33
+ module.exports = __toCommonJS(chunk_DNOOU7FC_exports);
34
34
  var import_chunk_OCQGHQED = require("./chunk-OCQGHQED.js");
35
35
  var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
36
- var import_chunk_V3ZMNXZC = require("./chunk-V3ZMNXZC.js");
36
+ var import_chunk_WG2SP5KE = require("./chunk-WG2SP5KE.js");
37
37
  var import_chunk_255BRND3 = require("./chunk-255BRND3.js");
38
38
  var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
39
- var import_chunk_KOF4LGTS = require("./chunk-KOF4LGTS.js");
39
+ var import_chunk_N5UBDQRA = require("./chunk-N5UBDQRA.js");
40
40
  var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
41
41
  var import_chunk_GKDFIHM2 = require("./chunk-GKDFIHM2.js");
42
42
  var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
@@ -89,7 +89,7 @@ var _MigrateDev = class _MigrateDev2 {
89
89
  if (wasDbCreated) {
90
90
  process.stdout.write(wasDbCreated + "\n\n");
91
91
  }
92
- const migrate = new import_chunk_KOF4LGTS.Migrate(schemaPath);
92
+ const migrate = new import_chunk_N5UBDQRA.Migrate(schemaPath);
93
93
  let devDiagnostic;
94
94
  try {
95
95
  devDiagnostic = await migrate.devDiagnostic();
@@ -244,10 +244,10 @@ ${(0, import_chunk_SKRR5WT4.green)("Your database is now in sync with your schem
244
244
  }
245
245
  if (wasDbCreated && !process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
246
246
  try {
247
- const seedCommandFromPkgJson = await (0, import_chunk_V3ZMNXZC.getSeedCommandFromPackageJson)(process.cwd());
247
+ const seedCommandFromPkgJson = await (0, import_chunk_WG2SP5KE.getSeedCommandFromPackageJson)(process.cwd());
248
248
  if (seedCommandFromPkgJson) {
249
249
  process.stdout.write("\n");
250
- const successfulSeeding = await (0, import_chunk_V3ZMNXZC.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
250
+ const successfulSeeding = await (0, import_chunk_WG2SP5KE.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
251
251
  if (successfulSeeding) {
252
252
  process.stdout.write(`
253
253
  ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
@@ -257,7 +257,7 @@ ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been ex
257
257
  }
258
258
  } else {
259
259
  const { schemaPath: schemaPath2 } = await (0, import_internals.getSchemaWithPath)(args["--schema"], config.schema);
260
- await (0, import_chunk_V3ZMNXZC.verifySeedConfigAndReturnMessage)(schemaPath2);
260
+ await (0, import_chunk_WG2SP5KE.verifySeedConfigAndReturnMessage)(schemaPath2);
261
261
  }
262
262
  } catch (e) {
263
263
  console.error(e);
@@ -26,12 +26,12 @@ 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_WI2A2TQE_exports = {};
30
- __export(chunk_WI2A2TQE_exports, {
29
+ var chunk_IY67YUOD_exports = {};
30
+ __export(chunk_IY67YUOD_exports, {
31
31
  DbPull: () => DbPull
32
32
  });
33
- module.exports = __toCommonJS(chunk_WI2A2TQE_exports);
34
- var import_chunk_MCWCB2AX = require("./chunk-MCWCB2AX.js");
33
+ module.exports = __toCommonJS(chunk_IY67YUOD_exports);
34
+ var import_chunk_4ZFVT4RS = require("./chunk-4ZFVT4RS.js");
35
35
  var import_chunk_RTGQXNX6 = require("./chunk-RTGQXNX6.js");
36
36
  var import_chunk_RP2N6UXA = require("./chunk-RP2N6UXA.js");
37
37
  var import_chunk_AHJ2N6BJ = require("./chunk-AHJ2N6BJ.js");
@@ -80,7 +80,7 @@ var _DbPull = class _DbPull2 {
80
80
  "--local-d1": Boolean
81
81
  // optional, only on cloudflare D1
82
82
  });
83
- const spinnerFactory = (0, import_chunk_MCWCB2AX.createSpinner)(!args["--print"]);
83
+ const spinnerFactory = (0, import_chunk_4ZFVT4RS.createSpinner)(!args["--print"]);
84
84
  if (args instanceof Error) {
85
85
  return this.help(args.message);
86
86
  }
@@ -26,12 +26,12 @@ 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_N3KYWSX2_exports = {};
30
- __export(chunk_N3KYWSX2_exports, {
29
+ var chunk_MREGRQDD_exports = {};
30
+ __export(chunk_MREGRQDD_exports, {
31
31
  DbExecute: () => DbExecute
32
32
  });
33
- module.exports = __toCommonJS(chunk_N3KYWSX2_exports);
34
- var import_chunk_KOF4LGTS = require("./chunk-KOF4LGTS.js");
33
+ module.exports = __toCommonJS(chunk_MREGRQDD_exports);
34
+ var import_chunk_N5UBDQRA = require("./chunk-N5UBDQRA.js");
35
35
  var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
36
36
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
37
37
  var import_internals = require("@prisma/internals");
@@ -161,7 +161,7 @@ See \`${(0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExec
161
161
  ...(0, import_internals.toSchemasWithConfigDir)(schemaWithPath, engineConfig)
162
162
  };
163
163
  }
164
- const migrate = new import_chunk_KOF4LGTS.Migrate();
164
+ const migrate = new import_chunk_N5UBDQRA.Migrate();
165
165
  try {
166
166
  await migrate.engine.dbExecute({
167
167
  script,