@prisma/migrate 7.9.0-dev.26 → 7.9.0-dev.28

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 (51) hide show
  1. package/dist/bin.js +13 -13
  2. package/dist/{chunk-2UHNNEP4.js → chunk-6EQA63NM.js} +4 -4
  3. package/dist/chunk-6TSRRBNA.js +40 -0
  4. package/dist/{chunk-TEUL2TU3.js → chunk-CQTYRADU.js} +5 -5
  5. package/dist/{chunk-6UO6YJTU.js → chunk-DL2W77GY.js} +6 -6
  6. package/dist/chunk-DPRQXN36.js +34 -0
  7. package/dist/{chunk-KRQEFTDT.js → chunk-G222ME3D.js} +4 -4
  8. package/dist/chunk-GBUW4I6U.js +33 -0
  9. package/dist/chunk-HWBQGGZH.js +50 -0
  10. package/dist/chunk-INC5VUX4.js +33 -0
  11. package/dist/chunk-NGEWTXY6.js +33 -0
  12. package/dist/chunk-PPE4XDUL.js +63 -0
  13. package/dist/chunk-TEOIOJ7P.js +34 -0
  14. package/dist/chunk-THJ7K72W.js +33 -0
  15. package/dist/{chunk-L6GPGK4U.js → chunk-TW5MYPTK.js} +5 -5
  16. package/dist/chunk-VEBRKA5H.js +33 -0
  17. package/dist/chunk-WA2SOLDQ.js +35 -0
  18. package/dist/chunk-YNB3IN6Q.js +40 -0
  19. package/dist/commands/DbPull.js +3 -3
  20. package/dist/commands/MigrateDeploy.js +4 -4
  21. package/dist/commands/MigrateDev.js +4 -4
  22. package/dist/commands/MigrateReset.js +4 -4
  23. package/dist/commands/db-command-completion.js +25 -0
  24. package/dist/commands/db-execute-completion.js +25 -0
  25. package/dist/commands/db-pull-completion.js +25 -0
  26. package/dist/commands/db-push-completion.js +25 -0
  27. package/dist/commands/db-seed-completion.js +25 -0
  28. package/dist/commands/migrate-command-completion.js +25 -0
  29. package/dist/commands/migrate-deploy-completion.js +25 -0
  30. package/dist/commands/migrate-dev-completion.js +25 -0
  31. package/dist/commands/migrate-diff-completion.js +25 -0
  32. package/dist/commands/migrate-reset-completion.js +25 -0
  33. package/dist/commands/migrate-resolve-completion.js +25 -0
  34. package/dist/commands/migrate-status-completion.js +25 -0
  35. package/dist/index.js +37 -13
  36. package/dist/src/commands/db-command-completion.d.ts +2 -0
  37. package/dist/src/commands/db-execute-completion.d.ts +2 -0
  38. package/dist/src/commands/db-pull-completion.d.ts +2 -0
  39. package/dist/src/commands/db-push-completion.d.ts +2 -0
  40. package/dist/src/commands/db-seed-completion.d.ts +2 -0
  41. package/dist/src/commands/migrate-command-completion.d.ts +2 -0
  42. package/dist/src/commands/migrate-deploy-completion.d.ts +2 -0
  43. package/dist/src/commands/migrate-dev-completion.d.ts +2 -0
  44. package/dist/src/commands/migrate-diff-completion.d.ts +2 -0
  45. package/dist/src/commands/migrate-reset-completion.d.ts +2 -0
  46. package/dist/src/commands/migrate-resolve-completion.d.ts +2 -0
  47. package/dist/src/commands/migrate-status-completion.d.ts +2 -0
  48. package/dist/src/index.d.ts +12 -0
  49. package/dist/utils/printFiles.js +4 -4
  50. package/dist/utils/setupMSSQL.js +1 -1
  51. package/package.json +9 -9
package/dist/bin.js CHANGED
@@ -24,26 +24,26 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  ));
25
25
  var import_chunk_TXQI3C4H = require("./chunk-TXQI3C4H.js");
26
26
  var import_chunk_FXSCTGN2 = require("./chunk-FXSCTGN2.js");
27
- var import_chunk_TEUL2TU3 = require("./chunk-TEUL2TU3.js");
28
- var import_chunk_6UO6YJTU = require("./chunk-6UO6YJTU.js");
27
+ var import_chunk_CQTYRADU = require("./chunk-CQTYRADU.js");
28
+ var import_chunk_DL2W77GY = require("./chunk-DL2W77GY.js");
29
29
  var import_chunk_C3722PDA = require("./chunk-C3722PDA.js");
30
30
  var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
31
31
  var import_chunk_RM4WK3ML = require("./chunk-RM4WK3ML.js");
32
- var import_chunk_L6GPGK4U = require("./chunk-L6GPGK4U.js");
33
- var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
34
- var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
32
+ var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
33
+ var import_chunk_TW5MYPTK = require("./chunk-TW5MYPTK.js");
34
+ var import_chunk_G222ME3D = require("./chunk-G222ME3D.js");
35
35
  var import_chunk_2R6DII47 = require("./chunk-2R6DII47.js");
36
+ var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
36
37
  var import_chunk_AL3XYISJ = require("./chunk-AL3XYISJ.js");
37
38
  var import_chunk_TDN3QQTH = require("./chunk-TDN3QQTH.js");
38
- var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
39
39
  var import_chunk_2HCAA4GX = require("./chunk-2HCAA4GX.js");
40
40
  var import_chunk_QCPYZUFF = require("./chunk-QCPYZUFF.js");
41
- var import_chunk_2UHNNEP4 = require("./chunk-2UHNNEP4.js");
41
+ var import_chunk_6EQA63NM = require("./chunk-6EQA63NM.js");
42
42
  var import_chunk_ZOT2HSX5 = require("./chunk-ZOT2HSX5.js");
43
+ var import_chunk_AHJ2N6BJ = require("./chunk-AHJ2N6BJ.js");
43
44
  var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
44
45
  var import_chunk_RTGQXNX6 = require("./chunk-RTGQXNX6.js");
45
46
  var import_chunk_JFKDSUIE = require("./chunk-JFKDSUIE.js");
46
- var import_chunk_AHJ2N6BJ = require("./chunk-AHJ2N6BJ.js");
47
47
  var import_chunk_LGYRZ6CV = require("./chunk-LGYRZ6CV.js");
48
48
  var import_chunk_WP5M3D4N = require("./chunk-WP5M3D4N.js");
49
49
  var import_chunk_PHX6STZ3 = require("./chunk-PHX6STZ3.js");
@@ -67,7 +67,7 @@ var import_config = require("@prisma/config");
67
67
  var import_debug = __toESM(require("@prisma/debug"));
68
68
  var import_engines_version = require("@prisma/engines-version");
69
69
  var import_internals = require("@prisma/internals");
70
- var version = "7.9.0-dev.26";
70
+ var version = "7.9.0-dev.28";
71
71
  process.on("uncaughtException", (e) => {
72
72
  console.log(e);
73
73
  });
@@ -89,16 +89,16 @@ var args = (0, import_internals.arg)(
89
89
  async function main() {
90
90
  const cli = import_chunk_TXQI3C4H.CLI.new({
91
91
  migrate: import_chunk_DNNMOG7A.MigrateCommand.new({
92
- dev: import_chunk_6UO6YJTU.MigrateDev.new(),
92
+ dev: import_chunk_DL2W77GY.MigrateDev.new(),
93
93
  status: import_chunk_TDN3QQTH.MigrateStatus.new(),
94
94
  resolve: import_chunk_AL3XYISJ.MigrateResolve.new(),
95
- reset: import_chunk_L6GPGK4U.MigrateReset.new(),
96
- deploy: import_chunk_TEUL2TU3.MigrateDeploy.new(),
95
+ reset: import_chunk_TW5MYPTK.MigrateReset.new(),
96
+ deploy: import_chunk_CQTYRADU.MigrateDeploy.new(),
97
97
  diff: import_chunk_RM4WK3ML.MigrateDiff.new()
98
98
  }),
99
99
  db: import_chunk_2HCAA4GX.DbCommand.new({
100
100
  execute: import_chunk_QCPYZUFF.DbExecute.new(),
101
- pull: import_chunk_2UHNNEP4.DbPull.new(),
101
+ pull: import_chunk_6EQA63NM.DbPull.new(),
102
102
  push: import_chunk_WP5M3D4N.DbPush.new(),
103
103
  // drop: DbDrop.new(),
104
104
  seed: import_chunk_XTEEOIUV.DbSeed.new()
@@ -26,16 +26,16 @@ 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_2UHNNEP4_exports = {};
30
- __export(chunk_2UHNNEP4_exports, {
29
+ var chunk_6EQA63NM_exports = {};
30
+ __export(chunk_6EQA63NM_exports, {
31
31
  DbPull: () => DbPull
32
32
  });
33
- module.exports = __toCommonJS(chunk_2UHNNEP4_exports);
33
+ module.exports = __toCommonJS(chunk_6EQA63NM_exports);
34
34
  var import_chunk_ZOT2HSX5 = require("./chunk-ZOT2HSX5.js");
35
+ var import_chunk_AHJ2N6BJ = require("./chunk-AHJ2N6BJ.js");
35
36
  var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
36
37
  var import_chunk_RTGQXNX6 = require("./chunk-RTGQXNX6.js");
37
38
  var import_chunk_JFKDSUIE = require("./chunk-JFKDSUIE.js");
38
- var import_chunk_AHJ2N6BJ = require("./chunk-AHJ2N6BJ.js");
39
39
  var import_chunk_LGYRZ6CV = require("./chunk-LGYRZ6CV.js");
40
40
  var import_chunk_ZUHJASAP = require("./chunk-ZUHJASAP.js");
41
41
  var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_6TSRRBNA_exports = {};
20
+ __export(chunk_6TSRRBNA_exports, {
21
+ dbPushCompletion: () => dbPushCompletion
22
+ });
23
+ module.exports = __toCommonJS(chunk_6TSRRBNA_exports);
24
+ var import_completion_values = require("@prisma/internals/src/cli/completion-values");
25
+ var dbPushCompletion = {
26
+ name: "db push",
27
+ description: "Push the Prisma schema state to the database",
28
+ options: [
29
+ { name: "help", alias: "h", description: "Display this help message" },
30
+ { name: "schema", description: "Custom path to your Prisma schema", values: import_completion_values.completionSchemaPaths },
31
+ { name: "config", description: "Custom path to your Prisma config file", values: import_completion_values.completionConfigPaths },
32
+ {
33
+ name: "url",
34
+ description: "Override the datasource URL from the Prisma config file",
35
+ values: import_completion_values.completionDatasourceUrls
36
+ },
37
+ { name: "accept-data-loss", description: "Ignore data loss warnings" },
38
+ { name: "force-reset", description: "Force a reset of the database before push" }
39
+ ]
40
+ };
@@ -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_TEUL2TU3_exports = {};
30
- __export(chunk_TEUL2TU3_exports, {
29
+ var chunk_CQTYRADU_exports = {};
30
+ __export(chunk_CQTYRADU_exports, {
31
31
  MigrateDeploy: () => MigrateDeploy
32
32
  });
33
- module.exports = __toCommonJS(chunk_TEUL2TU3_exports);
34
- var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
33
+ module.exports = __toCommonJS(chunk_CQTYRADU_exports);
34
+ var import_chunk_G222ME3D = require("./chunk-G222ME3D.js");
35
35
  var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
36
36
  var import_chunk_BRPS327A = require("./chunk-BRPS327A.js");
37
37
  var import_chunk_RGXJYLMD = require("./chunk-RGXJYLMD.js");
@@ -149,7 +149,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
149
149
  } else {
150
150
  return `The following migration(s) have been applied:
151
151
 
152
- ${(0, import_chunk_KRQEFTDT.printFilesFromMigrationIds)(
152
+ ${(0, import_chunk_G222ME3D.printFilesFromMigrationIds)(
153
153
  "migrations",
154
154
  migrationIds,
155
155
  {
@@ -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_6UO6YJTU_exports = {};
30
- __export(chunk_6UO6YJTU_exports, {
29
+ var chunk_DL2W77GY_exports = {};
30
+ __export(chunk_DL2W77GY_exports, {
31
31
  MigrateDev: () => MigrateDev
32
32
  });
33
- module.exports = __toCommonJS(chunk_6UO6YJTU_exports);
33
+ module.exports = __toCommonJS(chunk_DL2W77GY_exports);
34
34
  var import_chunk_C3722PDA = require("./chunk-C3722PDA.js");
35
35
  var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
36
- var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
36
+ var import_chunk_G222ME3D = require("./chunk-G222ME3D.js");
37
37
  var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
38
38
  var import_chunk_ZUHJASAP = require("./chunk-ZUHJASAP.js");
39
39
  var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
@@ -176,7 +176,7 @@ ${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.red)("All data will
176
176
  `
177
177
  The following migration(s) have been applied:
178
178
 
179
- ${(0, import_chunk_KRQEFTDT.printFilesFromMigrationIds)(
179
+ ${(0, import_chunk_G222ME3D.printFilesFromMigrationIds)(
180
180
  "migrations",
181
181
  appliedMigrationNames,
182
182
  {
@@ -281,7 +281,7 @@ You can now edit it and apply it by running ${(0, import_chunk_SKRR5WT4.green)((
281
281
  `
282
282
  The following migration(s) have been created and applied from new schema changes:
283
283
 
284
- ${(0, import_chunk_KRQEFTDT.printFilesFromMigrationIds)(
284
+ ${(0, import_chunk_G222ME3D.printFilesFromMigrationIds)(
285
285
  migrationsDirPathRelative,
286
286
  migrationIds,
287
287
  {
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_DPRQXN36_exports = {};
20
+ __export(chunk_DPRQXN36_exports, {
21
+ dbExecuteCompletion: () => dbExecuteCompletion
22
+ });
23
+ module.exports = __toCommonJS(chunk_DPRQXN36_exports);
24
+ var import_completion_values = require("@prisma/internals/src/cli/completion-values");
25
+ var dbExecuteCompletion = {
26
+ name: "db execute",
27
+ description: "Execute SQL or scripts on your database",
28
+ options: [
29
+ { name: "help", alias: "h", description: "Display this help message" },
30
+ { name: "config", description: "Custom path to your Prisma config file", values: import_completion_values.completionConfigPaths },
31
+ { name: "file", description: "Path to a file containing the script to execute", values: import_completion_values.completionSqlScriptPaths },
32
+ { name: "stdin", description: "Use terminal standard input as the script to execute" }
33
+ ]
34
+ };
@@ -16,14 +16,14 @@ 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_KRQEFTDT_exports = {};
20
- __export(chunk_KRQEFTDT_exports, {
19
+ var chunk_G222ME3D_exports = {};
20
+ __export(chunk_G222ME3D_exports, {
21
21
  printFiles: () => printFiles,
22
22
  printFilesFromMigrationIds: () => printFilesFromMigrationIds
23
23
  });
24
- module.exports = __toCommonJS(chunk_KRQEFTDT_exports);
25
- var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
24
+ module.exports = __toCommonJS(chunk_G222ME3D_exports);
26
25
  var import_chunk_2R6DII47 = require("./chunk-2R6DII47.js");
26
+ var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
27
27
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
28
28
  var import_indent_string = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_2R6DII47.require_indent_string)());
29
29
  function printFiles(printPath, files) {
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_GBUW4I6U_exports = {};
20
+ __export(chunk_GBUW4I6U_exports, {
21
+ dbCompletion: () => dbCompletion
22
+ });
23
+ module.exports = __toCommonJS(chunk_GBUW4I6U_exports);
24
+ var import_completion_values = require("@prisma/internals/src/cli/completion-values");
25
+ var dbCompletion = {
26
+ name: "db",
27
+ description: "Manage your database schema and lifecycle",
28
+ options: [
29
+ { name: "help", alias: "h", description: "Display this help message" },
30
+ { name: "config", description: "Custom path to your Prisma config file", values: import_completion_values.completionConfigPaths },
31
+ { name: "schema", description: "Custom path to your Prisma schema", values: import_completion_values.completionSchemaPaths }
32
+ ]
33
+ };
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_HWBQGGZH_exports = {};
20
+ __export(chunk_HWBQGGZH_exports, {
21
+ dbPullCompletion: () => dbPullCompletion
22
+ });
23
+ module.exports = __toCommonJS(chunk_HWBQGGZH_exports);
24
+ var import_completion_values = require("@prisma/internals/src/cli/completion-values");
25
+ var dbPullCompletion = {
26
+ name: "db pull",
27
+ description: "Pull the schema from an existing database",
28
+ options: [
29
+ { name: "help", alias: "h", description: "Display this help message" },
30
+ { name: "schema", description: "Custom path to your Prisma schema", values: import_completion_values.completionSchemaPaths },
31
+ { name: "config", description: "Custom path to your Prisma config file", values: import_completion_values.completionConfigPaths },
32
+ {
33
+ name: "url",
34
+ description: "Override the datasource URL from the Prisma config file",
35
+ values: import_completion_values.completionDatasourceUrls
36
+ },
37
+ { name: "force", description: "Ignore current Prisma schema file" },
38
+ { name: "print", description: "Print the introspected Prisma schema to stdout" },
39
+ {
40
+ name: "composite-type-depth",
41
+ description: "Specify the depth for introspecting composite types",
42
+ values: import_completion_values.completionCompositeTypeDepths
43
+ },
44
+ {
45
+ name: "schemas",
46
+ description: "Specify database schemas to introspect (overrides datasource block)",
47
+ values: import_completion_values.completionDatabaseSchemas
48
+ }
49
+ ]
50
+ };
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_INC5VUX4_exports = {};
20
+ __export(chunk_INC5VUX4_exports, {
21
+ migrateDeployCompletion: () => migrateDeployCompletion
22
+ });
23
+ module.exports = __toCommonJS(chunk_INC5VUX4_exports);
24
+ var import_completion_values = require("@prisma/internals/src/cli/completion-values");
25
+ var migrateDeployCompletion = {
26
+ name: "migrate deploy",
27
+ description: "Apply pending migrations to the database",
28
+ options: [
29
+ { name: "help", alias: "h", description: "Display this help message" },
30
+ { name: "schema", description: "Custom path to your Prisma schema", values: import_completion_values.completionSchemaPaths },
31
+ { name: "config", description: "Custom path to your Prisma config file", values: import_completion_values.completionConfigPaths }
32
+ ]
33
+ };
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_NGEWTXY6_exports = {};
20
+ __export(chunk_NGEWTXY6_exports, {
21
+ migrateCompletion: () => migrateCompletion
22
+ });
23
+ module.exports = __toCommonJS(chunk_NGEWTXY6_exports);
24
+ var import_completion_values = require("@prisma/internals/src/cli/completion-values");
25
+ var migrateCompletion = {
26
+ name: "migrate",
27
+ description: "Migrate your database",
28
+ options: [
29
+ { name: "help", alias: "h", description: "Display this help message" },
30
+ { name: "config", description: "Custom path to your Prisma config file", values: import_completion_values.completionConfigPaths },
31
+ { name: "schema", description: "Custom path to your Prisma schema", values: import_completion_values.completionSchemaPaths }
32
+ ]
33
+ };
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_PPE4XDUL_exports = {};
20
+ __export(chunk_PPE4XDUL_exports, {
21
+ migrateDiffCompletion: () => migrateDiffCompletion
22
+ });
23
+ module.exports = __toCommonJS(chunk_PPE4XDUL_exports);
24
+ var import_completion_values = require("@prisma/internals/src/cli/completion-values");
25
+ var migrateDiffCompletion = {
26
+ name: "migrate diff",
27
+ description: "Compare the database schema from two arbitrary sources",
28
+ options: [
29
+ { name: "help", alias: "h", description: "Display this help message" },
30
+ { name: "config", description: "Custom path to your Prisma config file", values: import_completion_values.completionConfigPaths },
31
+ {
32
+ name: "output",
33
+ alias: "o",
34
+ description: "Write the diff to a file instead of stdout",
35
+ values: import_completion_values.completionDiffOutputPaths
36
+ },
37
+ { name: "from-empty", description: "Assume the source data model is empty" },
38
+ { name: "from-schema", description: "Path to a Prisma schema file as the source", values: import_completion_values.completionSchemaPaths },
39
+ {
40
+ name: "from-migrations",
41
+ description: "Path to a Prisma migrations directory as the source",
42
+ values: import_completion_values.completionMigrationsDirPaths
43
+ },
44
+ { name: "from-config-datasource", description: "Use the datasource from the Prisma config file as the source" },
45
+ { name: "to-empty", description: "Assume the destination data model is empty" },
46
+ {
47
+ name: "to-schema",
48
+ description: "Path to a Prisma schema file as the destination",
49
+ values: import_completion_values.completionSchemaPaths
50
+ },
51
+ {
52
+ name: "to-migrations",
53
+ description: "Path to a Prisma migrations directory as the destination",
54
+ values: import_completion_values.completionMigrationsDirPaths
55
+ },
56
+ {
57
+ name: "to-config-datasource",
58
+ description: "Use the datasource from the Prisma config file as the destination"
59
+ },
60
+ { name: "script", description: "Output a SQL script instead of a human-readable summary" },
61
+ { name: "exit-code", description: "Change the exit code behavior (Empty=0, Error=1, Not empty=2)" }
62
+ ]
63
+ };
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_TEOIOJ7P_exports = {};
20
+ __export(chunk_TEOIOJ7P_exports, {
21
+ migrateResetCompletion: () => migrateResetCompletion
22
+ });
23
+ module.exports = __toCommonJS(chunk_TEOIOJ7P_exports);
24
+ var import_completion_values = require("@prisma/internals/src/cli/completion-values");
25
+ var migrateResetCompletion = {
26
+ name: "migrate reset",
27
+ description: "Reset your database and apply all migrations",
28
+ options: [
29
+ { name: "help", alias: "h", description: "Display this help message" },
30
+ { name: "schema", description: "Custom path to your Prisma schema", values: import_completion_values.completionSchemaPaths },
31
+ { name: "config", description: "Custom path to your Prisma config file", values: import_completion_values.completionConfigPaths },
32
+ { name: "force", alias: "f", description: "Skip the confirmation prompt" }
33
+ ]
34
+ };
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_THJ7K72W_exports = {};
20
+ __export(chunk_THJ7K72W_exports, {
21
+ dbSeedCompletion: () => dbSeedCompletion
22
+ });
23
+ module.exports = __toCommonJS(chunk_THJ7K72W_exports);
24
+ var import_completion_values = require("@prisma/internals/src/cli/completion-values");
25
+ var dbSeedCompletion = {
26
+ name: "db seed",
27
+ description: "Seed your database",
28
+ options: [
29
+ { name: "help", alias: "h", description: "Display this help message" },
30
+ { name: "schema", description: "Custom path to your Prisma schema", values: import_completion_values.completionSchemaPaths },
31
+ { name: "config", description: "Custom path to your Prisma config file", values: import_completion_values.completionConfigPaths }
32
+ ]
33
+ };
@@ -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_L6GPGK4U_exports = {};
30
- __export(chunk_L6GPGK4U_exports, {
29
+ var chunk_TW5MYPTK_exports = {};
30
+ __export(chunk_TW5MYPTK_exports, {
31
31
  MigrateReset: () => MigrateReset
32
32
  });
33
- module.exports = __toCommonJS(chunk_L6GPGK4U_exports);
34
- var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
33
+ module.exports = __toCommonJS(chunk_TW5MYPTK_exports);
34
+ var import_chunk_G222ME3D = require("./chunk-G222ME3D.js");
35
35
  var import_chunk_PHX6STZ3 = require("./chunk-PHX6STZ3.js");
36
36
  var import_chunk_ZUHJASAP = require("./chunk-ZUHJASAP.js");
37
37
  var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
@@ -155,7 +155,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
155
155
 
156
156
  The following migration(s) have been applied:
157
157
 
158
- ${(0, import_chunk_KRQEFTDT.printFilesFromMigrationIds)("migrations", migrationIds, {
158
+ ${(0, import_chunk_G222ME3D.printFilesFromMigrationIds)("migrations", migrationIds, {
159
159
  "migration.sql": ""
160
160
  })}
161
161
  `
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_VEBRKA5H_exports = {};
20
+ __export(chunk_VEBRKA5H_exports, {
21
+ migrateStatusCompletion: () => migrateStatusCompletion
22
+ });
23
+ module.exports = __toCommonJS(chunk_VEBRKA5H_exports);
24
+ var import_completion_values = require("@prisma/internals/src/cli/completion-values");
25
+ var migrateStatusCompletion = {
26
+ name: "migrate status",
27
+ description: "Check the status of your database migrations",
28
+ options: [
29
+ { name: "help", alias: "h", description: "Display this help message" },
30
+ { name: "schema", description: "Custom path to your Prisma schema", values: import_completion_values.completionSchemaPaths },
31
+ { name: "config", description: "Custom path to your Prisma config file", values: import_completion_values.completionConfigPaths }
32
+ ]
33
+ };
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_WA2SOLDQ_exports = {};
20
+ __export(chunk_WA2SOLDQ_exports, {
21
+ migrateResolveCompletion: () => migrateResolveCompletion
22
+ });
23
+ module.exports = __toCommonJS(chunk_WA2SOLDQ_exports);
24
+ var import_completion_values = require("@prisma/internals/src/cli/completion-values");
25
+ var migrateResolveCompletion = {
26
+ name: "migrate resolve",
27
+ description: "Mark a migration as applied or rolled back",
28
+ options: [
29
+ { name: "help", alias: "h", description: "Display this help message" },
30
+ { name: "schema", description: "Custom path to your Prisma schema", values: import_completion_values.completionSchemaPaths },
31
+ { name: "config", description: "Custom path to your Prisma config file", values: import_completion_values.completionConfigPaths },
32
+ { name: "applied", description: "Mark a migration as applied", values: import_completion_values.completionMigrationIds },
33
+ { name: "rolled-back", description: "Mark a migration as rolled back", values: import_completion_values.completionMigrationIds }
34
+ ]
35
+ };