@prisma/migrate 6.3.0-integration-simpler-typeinfo-query.1 → 6.3.0-integration-studio-ux-refinements.1

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 (61) hide show
  1. package/dist/Migrate.js +5 -5
  2. package/dist/SchemaEngine.js +5 -5
  3. package/dist/bin.js +41 -42
  4. package/dist/{chunk-LLGEQ76N.js → chunk-33HVTIBE.js} +15 -15
  5. package/dist/{chunk-BAVMZZAR.js → chunk-4BFDHH3U.js} +12 -12
  6. package/dist/{chunk-XLLUFIQK.js → chunk-7MUF3HLX.js} +9 -8
  7. package/dist/{chunk-SV5GANSI.js → chunk-7TICHBC5.js} +10 -10
  8. package/dist/{chunk-GJN3CSXW.js → chunk-AOCCG7RR.js} +6 -6
  9. package/dist/{chunk-ZLGLVUFD.js → chunk-E2XKFV2C.js} +8 -8
  10. package/dist/{chunk-LVFPGUOH.js → chunk-E3UZYEGF.js} +92 -87
  11. package/dist/{chunk-BAFPAACN.js → chunk-ILJRJJ3S.js} +4 -4
  12. package/dist/{chunk-E3KHFUFQ.js → chunk-J77IRNPE.js} +9 -124
  13. package/dist/{chunk-RYWEOVLN.js → chunk-KHICE54Q.js} +6 -6
  14. package/dist/{chunk-5VYRCIVT.js → chunk-MQQLTARC.js} +100 -182
  15. package/dist/{chunk-MWEO3VUS.js → chunk-NCDRH4BH.js} +7 -7
  16. package/dist/{chunk-VWV2NY26.js → chunk-NKQGJ3AE.js} +7 -3
  17. package/dist/{chunk-XVL5RF2T.js → chunk-OANG4W7W.js} +15 -15
  18. package/dist/{chunk-55NRLWME.js → chunk-PSSOKBLN.js} +1029 -339
  19. package/dist/{chunk-EXUBPCXZ.js → chunk-TFIFMCN4.js} +18 -18
  20. package/dist/{chunk-76XWADEV.js → chunk-TJZ4FW7K.js} +10 -10
  21. package/dist/{chunk-ZBOJAYON.js → chunk-UI76O6B2.js} +6 -6
  22. package/dist/{chunk-KEBB7UIB.js → chunk-UQQQ6HXZ.js} +5 -3
  23. package/dist/{chunk-W3ROQKBN.js → chunk-V7DE6JTG.js} +4 -4
  24. package/dist/{chunk-UJWMQPUH.js → chunk-XQEPG5ZX.js} +10 -10
  25. package/dist/{chunk-YOW3VBYS.js → chunk-XQJTDY7A.js} +6 -6
  26. package/dist/{chunk-WIZM7TFT.js → chunk-YKUZUAXA.js} +443 -55
  27. package/dist/commands/DbDrop.js +3 -3
  28. package/dist/commands/DbExecute.js +6 -6
  29. package/dist/commands/DbPull.js +8 -8
  30. package/dist/commands/DbPush.js +7 -7
  31. package/dist/commands/DbSeed.js +4 -5
  32. package/dist/commands/MigrateDeploy.js +7 -7
  33. package/dist/commands/MigrateDev.js +8 -9
  34. package/dist/commands/MigrateDiff.js +7 -8
  35. package/dist/commands/MigrateReset.js +8 -9
  36. package/dist/commands/MigrateResolve.js +7 -7
  37. package/dist/commands/MigrateStatus.js +7 -7
  38. package/dist/index.js +52 -53
  39. package/dist/internals/src/cli/getTypescriptVersion.d.ts +1 -0
  40. package/dist/internals/src/index.d.ts +1 -0
  41. package/dist/internals/src/tracing/types.d.ts +26 -16
  42. package/dist/internals/src/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
  43. package/dist/migrate/src/utils/ensureDatabaseExists.d.ts +1 -1
  44. package/dist/migrate/src/utils/printDatasources.d.ts +2 -1
  45. package/dist/{multipart-parser-KKECAI5D.js → multipart-parser-73VM3J4A.js} +10 -7
  46. package/dist/{multipart-parser-47FFAP42-P3F6TPHJ.js → multipart-parser-ITART6UP-FFJAMHWE.js} +25 -22
  47. package/dist/typescript-AILDXN3I.js +205230 -0
  48. package/dist/typescript-WN4QH2CP.js +205192 -0
  49. package/dist/utils/ensureDatabaseExists.js +7 -7
  50. package/dist/utils/getDatabaseVersionSafe.js +5 -5
  51. package/dist/utils/introspectSql.js +4 -4
  52. package/dist/utils/removeSchemaFiles.js +3 -3
  53. package/dist/utils/saveSchemaFiles.js +3 -3
  54. package/dist/utils/seed.js +6 -7
  55. package/dist/utils/setupMSSQL.js +62 -59
  56. package/dist/utils/setupMongo.js +17608 -14119
  57. package/dist/utils/setupMysql.js +45 -0
  58. package/dist/views/handleViewsIO.js +3 -3
  59. package/package.json +14 -15
  60. package/dist/chunk-EFPE3Q7J.js +0 -424
  61. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +0 -9
@@ -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_NCDRH4BH_exports = {};
30
+ __export(chunk_NCDRH4BH_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_NCDRH4BH_exports);
35
35
  var import_chunk_6C7ESGWY = require("./chunk-6C7ESGWY.js");
36
- var import_chunk_XLLUFIQK = require("./chunk-XLLUFIQK.js");
36
+ var import_chunk_7MUF3HLX = require("./chunk-7MUF3HLX.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_7MUF3HLX.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_7MUF3HLX.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_7MUF3HLX.SchemaEngine({
559
559
  enabledPreviewFeatures
560
560
  });
561
561
  }
@@ -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) {
@@ -26,19 +26,19 @@ 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_XVL5RF2T_exports = {};
30
- __export(chunk_XVL5RF2T_exports, {
29
+ var chunk_OANG4W7W_exports = {};
30
+ __export(chunk_OANG4W7W_exports, {
31
31
  MigrateReset: () => MigrateReset,
32
32
  init_MigrateReset: () => init_MigrateReset
33
33
  });
34
- module.exports = __toCommonJS(chunk_XVL5RF2T_exports);
35
- var import_chunk_EFPE3Q7J = require("./chunk-EFPE3Q7J.js");
34
+ module.exports = __toCommonJS(chunk_OANG4W7W_exports);
35
+ var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
36
36
  var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
37
- var import_chunk_MWEO3VUS = require("./chunk-MWEO3VUS.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");
41
- var import_chunk_KEBB7UIB = require("./chunk-KEBB7UIB.js");
41
+ var import_chunk_UQQQ6HXZ = require("./chunk-UQQQ6HXZ.js");
42
42
  var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
43
43
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
44
44
  var import_internals = require("@prisma/internals");
@@ -47,13 +47,13 @@ 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_MWEO3VUS.init_Migrate)();
51
- (0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
50
+ (0, import_chunk_NCDRH4BH.init_Migrate)();
51
+ (0, import_chunk_UQQQ6HXZ.init_ensureDatabaseExists)();
52
52
  (0, import_chunk_U374EXYQ.init_errors)();
53
53
  (0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
54
54
  (0, import_chunk_Q7ACZDDT.init_printDatasource)();
55
55
  (0, import_chunk_WOOPRG54.init_printFiles)();
56
- (0, import_chunk_EFPE3Q7J.init_seed)();
56
+ (0, import_chunk_YKUZUAXA.init_seed)();
57
57
  _MigrateReset = class _MigrateReset2 {
58
58
  static new() {
59
59
  return new _MigrateReset2();
@@ -78,8 +78,8 @@ var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
78
78
  }
79
79
  await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
80
80
  const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
81
- (0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_KEBB7UIB.getDatasourceInfo)({ schemaPath }) });
82
- const wasDbCreated = await (0, import_chunk_KEBB7UIB.ensureDatabaseExists)("create", schemaPath);
81
+ (0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_UQQQ6HXZ.getDatasourceInfo)({ schemaPath }) });
82
+ const wasDbCreated = await (0, import_chunk_UQQQ6HXZ.ensureDatabaseExists)("create", schemaPath);
83
83
  if (wasDbCreated) {
84
84
  process.stdout.write("\n" + wasDbCreated + "\n");
85
85
  }
@@ -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_MWEO3VUS.Migrate(schemaPath);
102
+ const migrate = new import_chunk_NCDRH4BH.Migrate(schemaPath);
103
103
  let migrationIds;
104
104
  try {
105
105
  await migrate.reset();
@@ -128,10 +128,10 @@ ${(0, import_chunk_WOOPRG54.printFilesFromMigrationIds)("migrations", migrationI
128
128
  await migrate.tryToRunGenerate();
129
129
  }
130
130
  if (!process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
131
- const seedCommandFromPkgJson = await (0, import_chunk_EFPE3Q7J.getSeedCommandFromPackageJson)(process.cwd());
131
+ const seedCommandFromPkgJson = await (0, import_chunk_YKUZUAXA.getSeedCommandFromPackageJson)(process.cwd());
132
132
  if (seedCommandFromPkgJson) {
133
133
  process.stdout.write("\n");
134
- const successfulSeeding = await (0, import_chunk_EFPE3Q7J.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
134
+ const successfulSeeding = await (0, import_chunk_YKUZUAXA.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
135
135
  if (successfulSeeding) {
136
136
  process.stdout.write(`
137
137
  ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
@@ -141,7 +141,7 @@ ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been ex
141
141
  }
142
142
  } else {
143
143
  const { schemaPath: schemaPath2 } = await (0, import_internals.getSchemaWithPath)(args["--schema"]);
144
- await (0, import_chunk_EFPE3Q7J.verifySeedConfigAndReturnMessage)(schemaPath2);
144
+ await (0, import_chunk_YKUZUAXA.verifySeedConfigAndReturnMessage)(schemaPath2);
145
145
  }
146
146
  }
147
147
  return ``;