@prisma/migrate 5.23.0-integration-engines-5-23-0-8-integration-include-field-native-type-data-to-dmmf-f616ccc38c3d791e452ebd52f830a7fad0161650.2 → 5.23.0-integration-engines-5-23-0-17-implicit-m2m-id-701e194f51e12fda9d113117e2c8300f554160d3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/dist/Migrate.js +4 -4
  2. package/dist/SchemaEngine.js +4 -4
  3. package/dist/bin.js +39 -40
  4. package/dist/{chunk-EXUBPCXZ.js → chunk-3H4RLVCQ.js} +12 -12
  5. package/dist/{chunk-IS2AYOEI.js → chunk-3SNQUH74.js} +63 -145
  6. package/dist/{chunk-ZLGLVUFD.js → chunk-E2XKFV2C.js} +8 -8
  7. package/dist/{chunk-XVL5RF2T.js → chunk-GUBDW6S7.js} +11 -11
  8. package/dist/{chunk-BAVMZZAR.js → chunk-HODZFC64.js} +7 -7
  9. package/dist/{chunk-BAFPAACN.js → chunk-ILJRJJ3S.js} +4 -4
  10. package/dist/{chunk-LLGEQ76N.js → chunk-ILQWQHQO.js} +11 -11
  11. package/dist/{chunk-76XWADEV.js → chunk-KEPR65SW.js} +6 -6
  12. package/dist/{chunk-MWEO3VUS.js → chunk-LJOMIPJW.js} +7 -7
  13. package/dist/{chunk-GJN3CSXW.js → chunk-NKL64AIB.js} +6 -6
  14. package/dist/{chunk-VWV2NY26.js → chunk-NKQGJ3AE.js} +7 -3
  15. package/dist/{chunk-Z42EGZQH.js → chunk-NS6WV5WI.js} +64 -146
  16. package/dist/{chunk-XLLUFIQK.js → chunk-PCJYN6LT.js} +6 -5
  17. package/dist/{chunk-SV5GANSI.js → chunk-PFEH6ILG.js} +6 -6
  18. package/dist/{chunk-ZBOJAYON.js → chunk-PNBMPQYH.js} +6 -6
  19. package/dist/{chunk-W3ROQKBN.js → chunk-V7DE6JTG.js} +4 -4
  20. package/dist/{chunk-UJWMQPUH.js → chunk-X6GGREJW.js} +6 -6
  21. package/dist/{chunk-WIZM7TFT.js → chunk-YKUZUAXA.js} +443 -55
  22. package/dist/{chunk-YOW3VBYS.js → chunk-Z4OLB2H4.js} +6 -6
  23. package/dist/commands/DbExecute.js +5 -5
  24. package/dist/commands/DbPull.js +6 -6
  25. package/dist/commands/DbPush.js +5 -5
  26. package/dist/commands/DbSeed.js +4 -5
  27. package/dist/commands/MigrateDeploy.js +5 -5
  28. package/dist/commands/MigrateDev.js +6 -7
  29. package/dist/commands/MigrateDiff.js +6 -7
  30. package/dist/commands/MigrateReset.js +6 -7
  31. package/dist/commands/MigrateResolve.js +5 -5
  32. package/dist/commands/MigrateStatus.js +5 -5
  33. package/dist/index.js +45 -46
  34. package/dist/internals/src/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
  35. package/dist/{multipart-parser-KKECAI5D.js → multipart-parser-73VM3J4A.js} +10 -7
  36. package/dist/{multipart-parser-47FFAP42-P3F6TPHJ.js → multipart-parser-ITART6UP-FFJAMHWE.js} +25 -22
  37. package/dist/utils/getDatabaseVersionSafe.js +4 -4
  38. package/dist/utils/introspectSql.js +3 -3
  39. package/dist/utils/removeSchemaFiles.js +3 -3
  40. package/dist/utils/saveSchemaFiles.js +3 -3
  41. package/dist/utils/seed.js +6 -7
  42. package/dist/utils/setupMSSQL.js +49 -46
  43. package/dist/utils/setupMongo.js +23081 -21199
  44. package/dist/utils/setupMysql.js +45 -0
  45. package/package.json +12 -13
  46. package/dist/chunk-EFPE3Q7J.js +0 -424
  47. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +0 -9
@@ -26,18 +26,18 @@ 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_LLGEQ76N_exports = {};
30
- __export(chunk_LLGEQ76N_exports, {
29
+ var chunk_ILQWQHQO_exports = {};
30
+ __export(chunk_ILQWQHQO_exports, {
31
31
  MigrateDev: () => MigrateDev,
32
32
  init_MigrateDev: () => init_MigrateDev
33
33
  });
34
- module.exports = __toCommonJS(chunk_LLGEQ76N_exports);
34
+ module.exports = __toCommonJS(chunk_ILQWQHQO_exports);
35
35
  var import_chunk_IFCV5MY4 = require("./chunk-IFCV5MY4.js");
36
36
  var import_chunk_SGCF5OHF = require("./chunk-SGCF5OHF.js");
37
- var import_chunk_EFPE3Q7J = require("./chunk-EFPE3Q7J.js");
37
+ var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
38
38
  var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
39
39
  var import_chunk_6QFE3AWR = require("./chunk-6QFE3AWR.js");
40
- var import_chunk_MWEO3VUS = require("./chunk-MWEO3VUS.js");
40
+ var import_chunk_LJOMIPJW = require("./chunk-LJOMIPJW.js");
41
41
  var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
42
42
  var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
43
43
  var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
@@ -51,7 +51,7 @@ var debug, _MigrateDev, MigrateDev;
51
51
  var init_MigrateDev = (0, import_chunk_WWAWV7DQ.__esm)({
52
52
  "src/commands/MigrateDev.ts"() {
53
53
  (0, import_chunk_6TE2RIPN.init_colors)();
54
- (0, import_chunk_MWEO3VUS.init_Migrate)();
54
+ (0, import_chunk_LJOMIPJW.init_Migrate)();
55
55
  (0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
56
56
  (0, import_chunk_U374EXYQ.init_errors)();
57
57
  (0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
@@ -60,7 +60,7 @@ var init_MigrateDev = (0, import_chunk_WWAWV7DQ.__esm)({
60
60
  (0, import_chunk_WOOPRG54.init_printFiles)();
61
61
  (0, import_chunk_6QFE3AWR.init_printMigrationId)();
62
62
  (0, import_chunk_IFCV5MY4.init_promptForMigrationName)();
63
- (0, import_chunk_EFPE3Q7J.init_seed)();
63
+ (0, import_chunk_YKUZUAXA.init_seed)();
64
64
  debug = (0, import_debug.default)("prisma:migrate:dev");
65
65
  _MigrateDev = class _MigrateDev2 {
66
66
  static new() {
@@ -103,7 +103,7 @@ var init_MigrateDev = (0, import_chunk_WWAWV7DQ.__esm)({
103
103
  if (wasDbCreated) {
104
104
  process.stdout.write(wasDbCreated + "\n\n");
105
105
  }
106
- const migrate = new import_chunk_MWEO3VUS.Migrate(schemaPath);
106
+ const migrate = new import_chunk_LJOMIPJW.Migrate(schemaPath);
107
107
  let devDiagnostic;
108
108
  try {
109
109
  devDiagnostic = await migrate.devDiagnostic();
@@ -268,10 +268,10 @@ ${(0, import_chunk_6TE2RIPN.green)("Your database is now in sync with your schem
268
268
  }
269
269
  if ((wasDbCreated || devDiagnostic.action.tag === "reset") && !process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
270
270
  try {
271
- const seedCommandFromPkgJson = await (0, import_chunk_EFPE3Q7J.getSeedCommandFromPackageJson)(process.cwd());
271
+ const seedCommandFromPkgJson = await (0, import_chunk_YKUZUAXA.getSeedCommandFromPackageJson)(process.cwd());
272
272
  if (seedCommandFromPkgJson) {
273
273
  process.stdout.write("\n");
274
- const successfulSeeding = await (0, import_chunk_EFPE3Q7J.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
274
+ const successfulSeeding = await (0, import_chunk_YKUZUAXA.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
275
275
  if (successfulSeeding) {
276
276
  process.stdout.write(`
277
277
  ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
@@ -281,7 +281,7 @@ ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been ex
281
281
  }
282
282
  } else {
283
283
  const { schemaPath: schemaPath2 } = await (0, import_internals.getSchemaWithPath)(args["--schema"]);
284
- await (0, import_chunk_EFPE3Q7J.verifySeedConfigAndReturnMessage)(schemaPath2);
284
+ await (0, import_chunk_YKUZUAXA.verifySeedConfigAndReturnMessage)(schemaPath2);
285
285
  }
286
286
  } catch (e) {
287
287
  console.error(e);
@@ -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_76XWADEV_exports = {};
30
- __export(chunk_76XWADEV_exports, {
29
+ var chunk_KEPR65SW_exports = {};
30
+ __export(chunk_KEPR65SW_exports, {
31
31
  DbPush: () => DbPush,
32
32
  init_DbPush: () => init_DbPush
33
33
  });
34
- module.exports = __toCommonJS(chunk_76XWADEV_exports);
35
- var import_chunk_MWEO3VUS = require("./chunk-MWEO3VUS.js");
34
+ module.exports = __toCommonJS(chunk_KEPR65SW_exports);
35
+ var import_chunk_LJOMIPJW = require("./chunk-LJOMIPJW.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_MWEO3VUS.init_Migrate)();
48
+ (0, import_chunk_LJOMIPJW.init_Migrate)();
49
49
  (0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
50
50
  (0, import_chunk_U374EXYQ.init_errors)();
51
51
  (0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
@@ -79,7 +79,7 @@ var init_DbPush = (0, import_chunk_WWAWV7DQ.__esm)({
79
79
  const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
80
80
  const datasourceInfo = await (0, import_chunk_KEBB7UIB.getDatasourceInfo)({ schemaPath });
81
81
  (0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
82
- const migrate = new import_chunk_MWEO3VUS.Migrate(schemaPath);
82
+ const migrate = new import_chunk_LJOMIPJW.Migrate(schemaPath);
83
83
  try {
84
84
  const wasDbCreated = await (0, import_chunk_KEBB7UIB.ensureDatabaseExists)("push", schemaPath);
85
85
  if (wasDbCreated) {
@@ -26,14 +26,14 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_MWEO3VUS_exports = {};
30
- __export(chunk_MWEO3VUS_exports, {
29
+ var chunk_LJOMIPJW_exports = {};
30
+ __export(chunk_LJOMIPJW_exports, {
31
31
  Migrate: () => Migrate,
32
32
  init_Migrate: () => init_Migrate
33
33
  });
34
- module.exports = __toCommonJS(chunk_MWEO3VUS_exports);
34
+ module.exports = __toCommonJS(chunk_LJOMIPJW_exports);
35
35
  var import_chunk_6C7ESGWY = require("./chunk-6C7ESGWY.js");
36
- var import_chunk_XLLUFIQK = require("./chunk-XLLUFIQK.js");
36
+ var import_chunk_PCJYN6LT = require("./chunk-PCJYN6LT.js");
37
37
  var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
38
38
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
39
39
  var import_engines_version = require("@prisma/engines-version");
@@ -543,19 +543,19 @@ var init_Migrate = (0, import_chunk_WWAWV7DQ.__esm)({
543
543
  "src/Migrate.ts"() {
544
544
  (0, import_chunk_6TE2RIPN.init_colors)();
545
545
  import_log_update = (0, import_chunk_WWAWV7DQ.__toESM)(require_log_update());
546
- (0, import_chunk_XLLUFIQK.init_SchemaEngine)();
546
+ (0, import_chunk_PCJYN6LT.init_SchemaEngine)();
547
547
  packageJson = eval(`require('../package.json')`);
548
548
  Migrate = class {
549
549
  constructor(schemaPath, enabledPreviewFeatures) {
550
550
  if (schemaPath) {
551
551
  this.schemaPath = import_path.default.resolve(process.cwd(), schemaPath);
552
552
  this.migrationsDirectoryPath = import_path.default.join(import_path.default.dirname(this.schemaPath), "migrations");
553
- this.engine = new import_chunk_XLLUFIQK.SchemaEngine({
553
+ this.engine = new import_chunk_PCJYN6LT.SchemaEngine({
554
554
  schemaPath: this.schemaPath,
555
555
  enabledPreviewFeatures
556
556
  });
557
557
  } else {
558
- this.engine = new import_chunk_XLLUFIQK.SchemaEngine({
558
+ this.engine = new import_chunk_PCJYN6LT.SchemaEngine({
559
559
  enabledPreviewFeatures
560
560
  });
561
561
  }
@@ -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_GJN3CSXW_exports = {};
30
- __export(chunk_GJN3CSXW_exports, {
29
+ var chunk_NKL64AIB_exports = {};
30
+ __export(chunk_NKL64AIB_exports, {
31
31
  getDatabaseVersionSafe: () => getDatabaseVersionSafe,
32
32
  init_getDatabaseVersionSafe: () => init_getDatabaseVersionSafe
33
33
  });
34
- module.exports = __toCommonJS(chunk_GJN3CSXW_exports);
35
- var import_chunk_XLLUFIQK = require("./chunk-XLLUFIQK.js");
34
+ module.exports = __toCommonJS(chunk_NKL64AIB_exports);
35
+ var import_chunk_PCJYN6LT = require("./chunk-PCJYN6LT.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_XLLUFIQK.SchemaEngine({});
42
+ engine = new import_chunk_PCJYN6LT.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_XLLUFIQK.init_SchemaEngine)();
56
+ (0, import_chunk_PCJYN6LT.init_SchemaEngine)();
57
57
  debug = (0, import_debug.default)("prisma:cli");
58
58
  }
59
59
  });
@@ -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_VWV2NY26_exports = {};
20
- __export(chunk_VWV2NY26_exports, {
19
+ var chunk_NKQGJ3AE_exports = {};
20
+ __export(chunk_NKQGJ3AE_exports, {
21
21
  require_clean: () => require_clean,
22
22
  require_constants: () => require_constants,
23
23
  require_debug: () => require_debug,
@@ -28,7 +28,7 @@ __export(chunk_VWV2NY26_exports, {
28
28
  require_semver: () => require_semver,
29
29
  require_valid: () => require_valid
30
30
  });
31
- module.exports = __toCommonJS(chunk_VWV2NY26_exports);
31
+ module.exports = __toCommonJS(chunk_NKQGJ3AE_exports);
32
32
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
33
33
  var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
34
34
  "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js"(exports, module2) {
@@ -353,6 +353,8 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
353
353
  this.inc("patch", identifier, identifierBase);
354
354
  this.inc("pre", identifier, identifierBase);
355
355
  break;
356
+ // If the input is a non-prerelease version, this acts the same as
357
+ // prepatch.
356
358
  case "prerelease":
357
359
  if (this.prerelease.length === 0) {
358
360
  this.inc("patch", identifier, identifierBase);
@@ -380,6 +382,8 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
380
382
  }
381
383
  this.prerelease = [];
382
384
  break;
385
+ // This probably shouldn't be used publicly.
386
+ // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
383
387
  case "pre": {
384
388
  const base = Number(identifierBase) ? 1 : 0;
385
389
  if (!identifier && identifierBase === false) {