@prisma/migrate 6.4.0-dev.4 → 6.4.0-dev.41

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 (52) hide show
  1. package/dist/CLI.js +3 -3
  2. package/dist/bin.js +56 -42
  3. package/dist/{chunk-CSUAUCRR.js → chunk-5Z62IFXC.js} +6 -5
  4. package/dist/{chunk-7QAR4NT3.js → chunk-62TCLCPV.js} +6 -5
  5. package/dist/{chunk-NKQGJ3AE.js → chunk-A6PMXMMT.js} +29 -15
  6. package/dist/{chunk-G66QFMM5.js → chunk-COGVXKKS.js} +8 -7
  7. package/dist/{chunk-GRGGAY6L.js → chunk-CUDKD32S.js} +159 -5
  8. package/dist/{chunk-77RYI3ZW.js → chunk-HK47ZTH2.js} +6 -5
  9. package/dist/{chunk-NJUAN6V2.js → chunk-L5WSTNST.js} +6 -6
  10. package/dist/{chunk-HAJNCOW7.js → chunk-LEODRY55.js} +19 -18
  11. package/dist/{chunk-43RWRQLU.js → chunk-LRSJQHJE.js} +6 -5
  12. package/dist/{chunk-JZ6FKTWG.js → chunk-MWDR5RWF.js} +5 -6
  13. package/dist/{chunk-CK5VLKFM.js → chunk-NGDFNKHZ.js} +6 -6
  14. package/dist/{chunk-JESW2ENL.js → chunk-OKNTDCKF.js} +6 -5
  15. package/dist/{chunk-E2XKFV2C.js → chunk-QV7SOU3V.js} +6 -5
  16. package/dist/{chunk-I63N54YI.js → chunk-RR4VDHNZ.js} +6 -5
  17. package/dist/{chunk-WJT3IOMB.js → chunk-VGYN2FAS.js} +6 -5
  18. package/dist/{chunk-S6MPG3R3.js → chunk-WZSBTF6I.js} +17 -15
  19. package/dist/{chunk-SDB56MUM.js → chunk-XKAJB3OJ.js} +16 -14
  20. package/dist/commands/DbCommand.js +3 -3
  21. package/dist/commands/DbDrop.js +2 -2
  22. package/dist/commands/DbExecute.js +3 -3
  23. package/dist/commands/DbPull.js +4 -4
  24. package/dist/commands/DbPush.js +3 -3
  25. package/dist/commands/DbSeed.js +3 -3
  26. package/dist/commands/MigrateCommand.js +3 -3
  27. package/dist/commands/MigrateDeploy.js +3 -3
  28. package/dist/commands/MigrateDev.js +3 -3
  29. package/dist/commands/MigrateDiff.js +4 -4
  30. package/dist/commands/MigrateReset.js +3 -3
  31. package/dist/commands/MigrateResolve.js +3 -3
  32. package/dist/commands/MigrateStatus.js +3 -3
  33. package/dist/index.js +40 -40
  34. package/dist/internals/src/cli/types.d.ts +2 -1
  35. package/dist/internals/src/utils/loadEnvFile.d.ts +4 -2
  36. package/dist/migrate/src/CLI.d.ts +2 -1
  37. package/dist/migrate/src/commands/DbCommand.d.ts +2 -1
  38. package/dist/migrate/src/commands/DbDrop.d.ts +2 -1
  39. package/dist/migrate/src/commands/DbExecute.d.ts +2 -1
  40. package/dist/migrate/src/commands/DbPull.d.ts +2 -1
  41. package/dist/migrate/src/commands/DbPush.d.ts +2 -1
  42. package/dist/migrate/src/commands/DbSeed.d.ts +2 -1
  43. package/dist/migrate/src/commands/MigrateCommand.d.ts +2 -1
  44. package/dist/migrate/src/commands/MigrateDeploy.d.ts +2 -1
  45. package/dist/migrate/src/commands/MigrateDev.d.ts +2 -1
  46. package/dist/migrate/src/commands/MigrateDiff.d.ts +2 -1
  47. package/dist/migrate/src/commands/MigrateReset.d.ts +2 -1
  48. package/dist/migrate/src/commands/MigrateResolve.d.ts +2 -1
  49. package/dist/migrate/src/commands/MigrateStatus.d.ts +2 -1
  50. package/dist/utils/setupMSSQL.js +72 -73
  51. package/dist/utils/spinner.js +3 -3
  52. package/package.json +7 -6
package/dist/CLI.js CHANGED
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var CLI_exports = {};
20
20
  __export(CLI_exports, {
21
- CLI: () => import_chunk_JZ6FKTWG.CLI
21
+ CLI: () => import_chunk_MWDR5RWF.CLI
22
22
  });
23
23
  module.exports = __toCommonJS(CLI_exports);
24
- var import_chunk_JZ6FKTWG = require("./chunk-JZ6FKTWG.js");
24
+ var import_chunk_MWDR5RWF = require("./chunk-MWDR5RWF.js");
25
25
  var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
26
26
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
27
- (0, import_chunk_JZ6FKTWG.init_CLI)();
27
+ (0, import_chunk_MWDR5RWF.init_CLI)();
package/dist/bin.js CHANGED
@@ -32,14 +32,14 @@ __export(bin_exports, {
32
32
  default: () => bin_default
33
33
  });
34
34
  module.exports = __toCommonJS(bin_exports);
35
- var import_chunk_JZ6FKTWG = require("./chunk-JZ6FKTWG.js");
35
+ var import_chunk_MWDR5RWF = require("./chunk-MWDR5RWF.js");
36
36
  var import_chunk_JTNVQIRB = require("./chunk-JTNVQIRB.js");
37
- var import_chunk_7QAR4NT3 = require("./chunk-7QAR4NT3.js");
38
- var import_chunk_I63N54YI = require("./chunk-I63N54YI.js");
39
- var import_chunk_77RYI3ZW = require("./chunk-77RYI3ZW.js");
40
- var import_chunk_G66QFMM5 = require("./chunk-G66QFMM5.js");
41
- var import_chunk_HAJNCOW7 = require("./chunk-HAJNCOW7.js");
42
- var import_chunk_GRGGAY6L = require("./chunk-GRGGAY6L.js");
37
+ var import_chunk_62TCLCPV = require("./chunk-62TCLCPV.js");
38
+ var import_chunk_RR4VDHNZ = require("./chunk-RR4VDHNZ.js");
39
+ var import_chunk_HK47ZTH2 = require("./chunk-HK47ZTH2.js");
40
+ var import_chunk_COGVXKKS = require("./chunk-COGVXKKS.js");
41
+ var import_chunk_LEODRY55 = require("./chunk-LEODRY55.js");
42
+ var import_chunk_CUDKD32S = require("./chunk-CUDKD32S.js");
43
43
  var import_chunk_ILJRJJ3S = require("./chunk-ILJRJJ3S.js");
44
44
  var import_chunk_YUCPBDWV = require("./chunk-YUCPBDWV.js");
45
45
  var import_chunk_RM5LJIEV = require("./chunk-RM5LJIEV.js");
@@ -49,19 +49,19 @@ var import_chunk_V7DE6JTG = require("./chunk-V7DE6JTG.js");
49
49
  var import_chunk_QBK5XTJE = require("./chunk-QBK5XTJE.js");
50
50
  var import_chunk_INC2OACE = require("./chunk-INC2OACE.js");
51
51
  var import_chunk_GN5BY5N2 = require("./chunk-GN5BY5N2.js");
52
- var import_chunk_JESW2ENL = require("./chunk-JESW2ENL.js");
53
- var import_chunk_E2XKFV2C = require("./chunk-E2XKFV2C.js");
54
- var import_chunk_CK5VLKFM = require("./chunk-CK5VLKFM.js");
55
- var import_chunk_43RWRQLU = require("./chunk-43RWRQLU.js");
56
- var import_chunk_CSUAUCRR = require("./chunk-CSUAUCRR.js");
52
+ var import_chunk_OKNTDCKF = require("./chunk-OKNTDCKF.js");
53
+ var import_chunk_QV7SOU3V = require("./chunk-QV7SOU3V.js");
54
+ var import_chunk_NGDFNKHZ = require("./chunk-NGDFNKHZ.js");
55
+ var import_chunk_LRSJQHJE = require("./chunk-LRSJQHJE.js");
56
+ var import_chunk_5Z62IFXC = require("./chunk-5Z62IFXC.js");
57
57
  var import_chunk_IFCV5MY4 = require("./chunk-IFCV5MY4.js");
58
58
  var import_chunk_SGCF5OHF = require("./chunk-SGCF5OHF.js");
59
59
  var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
60
60
  var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
61
61
  var import_chunk_6QFE3AWR = require("./chunk-6QFE3AWR.js");
62
62
  var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
63
- var import_chunk_S6MPG3R3 = require("./chunk-S6MPG3R3.js");
64
- var import_chunk_NKQGJ3AE = require("./chunk-NKQGJ3AE.js");
63
+ var import_chunk_WZSBTF6I = require("./chunk-WZSBTF6I.js");
64
+ var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
65
65
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
66
66
  var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
67
67
  var import_chunk_ZKWJDQMB = require("./chunk-ZKWJDQMB.js");
@@ -70,7 +70,7 @@ var import_chunk_J46BJQHT = require("./chunk-J46BJQHT.js");
70
70
  var import_chunk_Q3SQU7C6 = require("./chunk-Q3SQU7C6.js");
71
71
  var import_chunk_CQQQ436N = require("./chunk-CQQQ436N.js");
72
72
  var import_chunk_AAATUOV6 = require("./chunk-AAATUOV6.js");
73
- var import_chunk_NJUAN6V2 = require("./chunk-NJUAN6V2.js");
73
+ var import_chunk_L5WSTNST = require("./chunk-L5WSTNST.js");
74
74
  var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
75
75
  var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
76
76
  var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
@@ -78,25 +78,26 @@ var import_chunk_XJQP3B4W = require("./chunk-XJQP3B4W.js");
78
78
  var import_chunk_KPUNMK5W = require("./chunk-KPUNMK5W.js");
79
79
  var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
80
80
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
81
+ var import_config = require("@prisma/config");
81
82
  var import_debug = __toESM(require("@prisma/debug"));
82
83
  var import_engines_version = require("@prisma/engines-version");
83
84
  var import_internals = require("@prisma/internals");
84
85
  var require_bin = (0, import_chunk_WWAWV7DQ.__commonJS)({
85
86
  "src/bin.ts"(exports, module) {
86
87
  (0, import_chunk_6TE2RIPN.init_colors)();
87
- (0, import_chunk_JZ6FKTWG.init_CLI)();
88
- (0, import_chunk_NJUAN6V2.init_DbCommand)();
89
- (0, import_chunk_G66QFMM5.init_DbExecute)();
90
- (0, import_chunk_HAJNCOW7.init_DbPull)();
91
- (0, import_chunk_JESW2ENL.init_DbPush)();
92
- (0, import_chunk_E2XKFV2C.init_DbSeed)();
93
- (0, import_chunk_CK5VLKFM.init_MigrateCommand)();
94
- (0, import_chunk_43RWRQLU.init_MigrateDeploy)();
95
- (0, import_chunk_CSUAUCRR.init_MigrateDev)();
96
- (0, import_chunk_S6MPG3R3.init_MigrateDiff)();
97
- (0, import_chunk_7QAR4NT3.init_MigrateReset)();
98
- (0, import_chunk_I63N54YI.init_MigrateResolve)();
99
- (0, import_chunk_77RYI3ZW.init_MigrateStatus)();
88
+ (0, import_chunk_MWDR5RWF.init_CLI)();
89
+ (0, import_chunk_L5WSTNST.init_DbCommand)();
90
+ (0, import_chunk_COGVXKKS.init_DbExecute)();
91
+ (0, import_chunk_LEODRY55.init_DbPull)();
92
+ (0, import_chunk_OKNTDCKF.init_DbPush)();
93
+ (0, import_chunk_QV7SOU3V.init_DbSeed)();
94
+ (0, import_chunk_NGDFNKHZ.init_MigrateCommand)();
95
+ (0, import_chunk_LRSJQHJE.init_MigrateDeploy)();
96
+ (0, import_chunk_5Z62IFXC.init_MigrateDev)();
97
+ (0, import_chunk_WZSBTF6I.init_MigrateDiff)();
98
+ (0, import_chunk_62TCLCPV.init_MigrateReset)();
99
+ (0, import_chunk_RR4VDHNZ.init_MigrateResolve)();
100
+ (0, import_chunk_HK47ZTH2.init_MigrateStatus)();
100
101
  (0, import_chunk_JTNVQIRB.init_getDatabaseVersionSafe)();
101
102
  process.on("uncaughtException", (e) => {
102
103
  console.log(e);
@@ -108,26 +109,39 @@ var require_bin = (0, import_chunk_WWAWV7DQ.__commonJS)({
108
109
  process.exit(130);
109
110
  });
110
111
  var commandArray = process.argv.slice(2);
112
+ var args = (0, import_internals.arg)(
113
+ commandArray,
114
+ {
115
+ "--config": String
116
+ },
117
+ false,
118
+ true
119
+ );
111
120
  var packageJson = eval(`require('../package.json')`);
112
121
  async function main() {
113
- const cli = import_chunk_JZ6FKTWG.CLI.new({
114
- migrate: import_chunk_CK5VLKFM.MigrateCommand.new({
115
- dev: import_chunk_CSUAUCRR.MigrateDev.new(),
116
- status: import_chunk_77RYI3ZW.MigrateStatus.new(),
117
- resolve: import_chunk_I63N54YI.MigrateResolve.new(),
118
- reset: import_chunk_7QAR4NT3.MigrateReset.new(),
119
- deploy: import_chunk_43RWRQLU.MigrateDeploy.new(),
120
- diff: import_chunk_S6MPG3R3.MigrateDiff.new()
122
+ const cli = import_chunk_MWDR5RWF.CLI.new({
123
+ migrate: import_chunk_NGDFNKHZ.MigrateCommand.new({
124
+ dev: import_chunk_5Z62IFXC.MigrateDev.new(),
125
+ status: import_chunk_HK47ZTH2.MigrateStatus.new(),
126
+ resolve: import_chunk_RR4VDHNZ.MigrateResolve.new(),
127
+ reset: import_chunk_62TCLCPV.MigrateReset.new(),
128
+ deploy: import_chunk_LRSJQHJE.MigrateDeploy.new(),
129
+ diff: import_chunk_WZSBTF6I.MigrateDiff.new()
121
130
  }),
122
- db: import_chunk_NJUAN6V2.DbCommand.new({
123
- execute: import_chunk_G66QFMM5.DbExecute.new(),
124
- pull: import_chunk_HAJNCOW7.DbPull.new(),
125
- push: import_chunk_JESW2ENL.DbPush.new(),
131
+ db: import_chunk_L5WSTNST.DbCommand.new({
132
+ execute: import_chunk_COGVXKKS.DbExecute.new(),
133
+ pull: import_chunk_LEODRY55.DbPull.new(),
134
+ push: import_chunk_OKNTDCKF.DbPush.new(),
126
135
  // drop: DbDrop.new(),
127
- seed: import_chunk_E2XKFV2C.DbSeed.new()
136
+ seed: import_chunk_QV7SOU3V.DbSeed.new()
128
137
  })
129
138
  });
130
- const result = await cli.parse(commandArray);
139
+ const { config, error } = await (0, import_config.loadConfigFromFile)({ configFile: args["--config"] });
140
+ if (error) {
141
+ console.error(`Failed to load config file: ${error._tag}`);
142
+ return 1;
143
+ }
144
+ const result = await cli.parse(commandArray, { ...(0, import_config.defaultConfig)(), ...config });
131
145
  if (result instanceof import_internals.HelpError) {
132
146
  console.error(result);
133
147
  return 1;
@@ -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_CSUAUCRR_exports = {};
30
- __export(chunk_CSUAUCRR_exports, {
29
+ var chunk_5Z62IFXC_exports = {};
30
+ __export(chunk_5Z62IFXC_exports, {
31
31
  MigrateDev: () => MigrateDev,
32
32
  init_MigrateDev: () => init_MigrateDev
33
33
  });
34
- module.exports = __toCommonJS(chunk_CSUAUCRR_exports);
34
+ module.exports = __toCommonJS(chunk_5Z62IFXC_exports);
35
35
  var import_chunk_IFCV5MY4 = require("./chunk-IFCV5MY4.js");
36
36
  var import_chunk_SGCF5OHF = require("./chunk-SGCF5OHF.js");
37
37
  var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
@@ -66,7 +66,7 @@ var init_MigrateDev = (0, import_chunk_WWAWV7DQ.__esm)({
66
66
  static new() {
67
67
  return new _MigrateDev2();
68
68
  }
69
- async parse(argv) {
69
+ async parse(argv, config) {
70
70
  const args = (0, import_internals.arg)(argv, {
71
71
  "--help": Boolean,
72
72
  "-h": "--help",
@@ -87,7 +87,7 @@ var init_MigrateDev = (0, import_chunk_WWAWV7DQ.__esm)({
87
87
  if (args["--help"]) {
88
88
  return this.help();
89
89
  }
90
- await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
90
+ await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
91
91
  const { schemaPath, schemas } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
92
92
  const datasourceInfo = await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath });
93
93
  (0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
@@ -340,6 +340,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Usage")}
340
340
  ${(0, import_chunk_6TE2RIPN.bold)("Options")}
341
341
 
342
342
  -h, --help Display this help message
343
+ --config Custom path to your Prisma config file
343
344
  --schema Custom path to your Prisma schema
344
345
  -n, --name Name the migration
345
346
  --create-only Create a new migration but do not apply it
@@ -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_7QAR4NT3_exports = {};
30
- __export(chunk_7QAR4NT3_exports, {
29
+ var chunk_62TCLCPV_exports = {};
30
+ __export(chunk_62TCLCPV_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_62TCLCPV_exports);
35
35
  var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
36
36
  var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
37
37
  var import_chunk_ZKWJDQMB = require("./chunk-ZKWJDQMB.js");
@@ -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 });
@@ -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
@@ -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) => {
@@ -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_G66QFMM5_exports = {};
30
- __export(chunk_G66QFMM5_exports, {
29
+ var chunk_COGVXKKS_exports = {};
30
+ __export(chunk_COGVXKKS_exports, {
31
31
  DbExecute: () => DbExecute,
32
32
  init_DbExecute: () => init_DbExecute
33
33
  });
34
- module.exports = __toCommonJS(chunk_G66QFMM5_exports);
34
+ module.exports = __toCommonJS(chunk_COGVXKKS_exports);
35
35
  var import_chunk_ZKWJDQMB = require("./chunk-ZKWJDQMB.js");
36
36
  var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
37
37
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
@@ -81,6 +81,7 @@ ${(0, import_chunk_6TE2RIPN.dim)("$")} prisma db execute [options]
81
81
  ${(0, import_chunk_6TE2RIPN.bold)("Options")}
82
82
 
83
83
  -h, --help Display this help message
84
+ --config Custom path to your Prisma config file
84
85
 
85
86
  ${(0, import_chunk_6TE2RIPN.italic)("Datasource input, only 1 must be provided:")}
86
87
  --url URL of the datasource to run the command on
@@ -97,7 +98,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Flags")}
97
98
  static new() {
98
99
  return new _DbExecute2();
99
100
  }
100
- async parse(argv) {
101
+ async parse(argv, config) {
101
102
  const args = (0, import_internals.arg)(
102
103
  argv,
103
104
  {
@@ -118,7 +119,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Flags")}
118
119
  if (args["--help"]) {
119
120
  return this.help();
120
121
  }
121
- await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: false });
122
+ await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: false, config });
122
123
  if (args["--stdin"] && args["--file"]) {
123
124
  throw new Error(
124
125
  `--stdin and --file cannot be used at the same time. Only 1 must be provided.
@@ -165,10 +166,10 @@ See \`${(0, import_chunk_6TE2RIPN.green)((0, import_internals.getCommandWithExec
165
166
  };
166
167
  } else {
167
168
  const schemaWithPath = await (0, import_internals.getSchemaWithPath)(args["--schema"]);
168
- const config = await (0, import_internals.getConfig)({ datamodel: schemaWithPath.schemas });
169
+ const config2 = await (0, import_internals.getConfig)({ datamodel: schemaWithPath.schemas });
169
170
  datasourceType = {
170
171
  tag: "schema",
171
- ...(0, import_internals.toSchemasWithConfigDir)(schemaWithPath, config)
172
+ ...(0, import_internals.toSchemasWithConfigDir)(schemaWithPath, config2)
172
173
  };
173
174
  }
174
175
  const migrate = new import_chunk_ZKWJDQMB.Migrate();
@@ -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);