@prisma/migrate 6.6.0-dev.2 → 6.6.0-dev.21

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 (40) hide show
  1. package/dist/Migrate.js +3 -4
  2. package/dist/bin.js +25 -28
  3. package/dist/{chunk-X6KW7BYP.js → chunk-2VSCT73F.js} +9 -9
  4. package/dist/{chunk-EX2UWGES.js → chunk-3OQIC7NW.js} +6 -6
  5. package/dist/chunk-3VFKYWQZ.js +486 -0
  6. package/dist/chunk-4ZFVT4RS.js +2590 -0
  7. package/dist/{chunk-5VDXAE53.js → chunk-5PSO7BDO.js} +15 -5
  8. package/dist/{chunk-AYOOPD2C.js → chunk-B3XQ3BCN.js} +10 -10
  9. package/dist/{chunk-Q7M5ANIE.js → chunk-CLANLLK4.js} +9 -9
  10. package/dist/{chunk-ZQ3OWSVS.js → chunk-DAYMMAJB.js} +5 -5
  11. package/dist/{chunk-A4BCLP6K.js → chunk-DNOOU7FC.js} +9 -9
  12. package/dist/{chunk-X5N72JHI.js → chunk-IY67YUOD.js} +5 -5
  13. package/dist/{chunk-E7OXHCDR.js → chunk-MREGRQDD.js} +5 -5
  14. package/dist/chunk-N5UBDQRA.js +846 -0
  15. package/dist/{chunk-LZOZZRHB.js → chunk-NAXFX7K7.js} +5 -5
  16. package/dist/{chunk-TPJISPJ5.js → chunk-PW3LNSDM.js} +5 -5
  17. package/dist/{chunk-G2XUUMKH.js → chunk-UKVQP5ES.js} +7 -7
  18. package/dist/{chunk-V3ZMNXZC.js → chunk-WG2SP5KE.js} +248 -6
  19. package/dist/commands/DbExecute.js +4 -5
  20. package/dist/commands/DbPull.js +4 -7
  21. package/dist/commands/DbPush.js +4 -5
  22. package/dist/commands/DbSeed.js +3 -4
  23. package/dist/commands/MigrateDeploy.js +4 -5
  24. package/dist/commands/MigrateDev.js +5 -6
  25. package/dist/commands/MigrateDiff.js +4 -5
  26. package/dist/commands/MigrateReset.js +5 -6
  27. package/dist/commands/MigrateResolve.js +4 -5
  28. package/dist/commands/MigrateStatus.js +4 -5
  29. package/dist/index.js +25 -28
  30. package/dist/utils/seed.js +5 -6
  31. package/dist/utils/setupMSSQL.js +123 -21
  32. package/dist/utils/setupMongo.js +3 -4
  33. package/dist/utils/spinner.js +3 -6
  34. package/package.json +10 -10
  35. package/dist/chunk-6C7ESGWY.js +0 -1184
  36. package/dist/chunk-DIAO4W7O.js +0 -5774
  37. package/dist/chunk-J46BJQHT.js +0 -268
  38. package/dist/chunk-KXMACMQC.js +0 -660
  39. package/dist/chunk-RM5LJIEV.js +0 -35
  40. package/dist/chunk-YUCPBDWV.js +0 -131
@@ -1,268 +0,0 @@
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_J46BJQHT_exports = {};
20
- __export(chunk_J46BJQHT_exports, {
21
- require_onetime: () => require_onetime,
22
- require_signal_exit: () => require_signal_exit
23
- });
24
- module.exports = __toCommonJS(chunk_J46BJQHT_exports);
25
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
26
- var require_mimic_fn = (0, import_chunk_WWAWV7DQ.__commonJS)({
27
- "../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports, module2) {
28
- "use strict";
29
- var mimicFn = (to, from) => {
30
- for (const prop of Reflect.ownKeys(from)) {
31
- Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
32
- }
33
- return to;
34
- };
35
- module2.exports = mimicFn;
36
- module2.exports.default = mimicFn;
37
- }
38
- });
39
- var require_onetime = (0, import_chunk_WWAWV7DQ.__commonJS)({
40
- "../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports, module2) {
41
- "use strict";
42
- var mimicFn = require_mimic_fn();
43
- var calledFunctions = /* @__PURE__ */ new WeakMap();
44
- var onetime = (function_, options = {}) => {
45
- if (typeof function_ !== "function") {
46
- throw new TypeError("Expected a function");
47
- }
48
- let returnValue;
49
- let callCount = 0;
50
- const functionName = function_.displayName || function_.name || "<anonymous>";
51
- const onetime2 = function(...arguments_) {
52
- calledFunctions.set(onetime2, ++callCount);
53
- if (callCount === 1) {
54
- returnValue = function_.apply(this, arguments_);
55
- function_ = null;
56
- } else if (options.throw === true) {
57
- throw new Error(`Function \`${functionName}\` can only be called once`);
58
- }
59
- return returnValue;
60
- };
61
- mimicFn(onetime2, function_);
62
- calledFunctions.set(onetime2, callCount);
63
- return onetime2;
64
- };
65
- module2.exports = onetime;
66
- module2.exports.default = onetime;
67
- module2.exports.callCount = (function_) => {
68
- if (!calledFunctions.has(function_)) {
69
- throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
70
- }
71
- return calledFunctions.get(function_);
72
- };
73
- }
74
- });
75
- var require_signals = (0, import_chunk_WWAWV7DQ.__commonJS)({
76
- "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports, module2) {
77
- "use strict";
78
- module2.exports = [
79
- "SIGABRT",
80
- "SIGALRM",
81
- "SIGHUP",
82
- "SIGINT",
83
- "SIGTERM"
84
- ];
85
- if (process.platform !== "win32") {
86
- module2.exports.push(
87
- "SIGVTALRM",
88
- "SIGXCPU",
89
- "SIGXFSZ",
90
- "SIGUSR2",
91
- "SIGTRAP",
92
- "SIGSYS",
93
- "SIGQUIT",
94
- "SIGIOT"
95
- // should detect profiler and enable/disable accordingly.
96
- // see #21
97
- // 'SIGPROF'
98
- );
99
- }
100
- if (process.platform === "linux") {
101
- module2.exports.push(
102
- "SIGIO",
103
- "SIGPOLL",
104
- "SIGPWR",
105
- "SIGSTKFLT",
106
- "SIGUNUSED"
107
- );
108
- }
109
- }
110
- });
111
- var require_signal_exit = (0, import_chunk_WWAWV7DQ.__commonJS)({
112
- "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
113
- "use strict";
114
- var process2 = global.process;
115
- var processOk = function(process3) {
116
- return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
117
- };
118
- if (!processOk(process2)) {
119
- module2.exports = function() {
120
- return function() {
121
- };
122
- };
123
- } else {
124
- assert = (0, import_chunk_WWAWV7DQ.__require)("assert");
125
- signals = require_signals();
126
- isWin = /^win/i.test(process2.platform);
127
- EE = (0, import_chunk_WWAWV7DQ.__require)("events");
128
- if (typeof EE !== "function") {
129
- EE = EE.EventEmitter;
130
- }
131
- if (process2.__signal_exit_emitter__) {
132
- emitter = process2.__signal_exit_emitter__;
133
- } else {
134
- emitter = process2.__signal_exit_emitter__ = new EE();
135
- emitter.count = 0;
136
- emitter.emitted = {};
137
- }
138
- if (!emitter.infinite) {
139
- emitter.setMaxListeners(Infinity);
140
- emitter.infinite = true;
141
- }
142
- module2.exports = function(cb, opts) {
143
- if (!processOk(global.process)) {
144
- return function() {
145
- };
146
- }
147
- assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
148
- if (loaded === false) {
149
- load();
150
- }
151
- var ev = "exit";
152
- if (opts && opts.alwaysLast) {
153
- ev = "afterexit";
154
- }
155
- var remove = function() {
156
- emitter.removeListener(ev, cb);
157
- if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
158
- unload();
159
- }
160
- };
161
- emitter.on(ev, cb);
162
- return remove;
163
- };
164
- unload = function unload2() {
165
- if (!loaded || !processOk(global.process)) {
166
- return;
167
- }
168
- loaded = false;
169
- signals.forEach(function(sig) {
170
- try {
171
- process2.removeListener(sig, sigListeners[sig]);
172
- } catch (er) {
173
- }
174
- });
175
- process2.emit = originalProcessEmit;
176
- process2.reallyExit = originalProcessReallyExit;
177
- emitter.count -= 1;
178
- };
179
- module2.exports.unload = unload;
180
- emit = function emit2(event, code, signal) {
181
- if (emitter.emitted[event]) {
182
- return;
183
- }
184
- emitter.emitted[event] = true;
185
- emitter.emit(event, code, signal);
186
- };
187
- sigListeners = {};
188
- signals.forEach(function(sig) {
189
- sigListeners[sig] = function listener() {
190
- if (!processOk(global.process)) {
191
- return;
192
- }
193
- var listeners = process2.listeners(sig);
194
- if (listeners.length === emitter.count) {
195
- unload();
196
- emit("exit", null, sig);
197
- emit("afterexit", null, sig);
198
- if (isWin && sig === "SIGHUP") {
199
- sig = "SIGINT";
200
- }
201
- process2.kill(process2.pid, sig);
202
- }
203
- };
204
- });
205
- module2.exports.signals = function() {
206
- return signals;
207
- };
208
- loaded = false;
209
- load = function load2() {
210
- if (loaded || !processOk(global.process)) {
211
- return;
212
- }
213
- loaded = true;
214
- emitter.count += 1;
215
- signals = signals.filter(function(sig) {
216
- try {
217
- process2.on(sig, sigListeners[sig]);
218
- return true;
219
- } catch (er) {
220
- return false;
221
- }
222
- });
223
- process2.emit = processEmit;
224
- process2.reallyExit = processReallyExit;
225
- };
226
- module2.exports.load = load;
227
- originalProcessReallyExit = process2.reallyExit;
228
- processReallyExit = function processReallyExit2(code) {
229
- if (!processOk(global.process)) {
230
- return;
231
- }
232
- process2.exitCode = code || /* istanbul ignore next */
233
- 0;
234
- emit("exit", process2.exitCode, null);
235
- emit("afterexit", process2.exitCode, null);
236
- originalProcessReallyExit.call(process2, process2.exitCode);
237
- };
238
- originalProcessEmit = process2.emit;
239
- processEmit = function processEmit2(ev, arg) {
240
- if (ev === "exit" && processOk(global.process)) {
241
- if (arg !== void 0) {
242
- process2.exitCode = arg;
243
- }
244
- var ret = originalProcessEmit.apply(this, arguments);
245
- emit("exit", process2.exitCode, null);
246
- emit("afterexit", process2.exitCode, null);
247
- return ret;
248
- } else {
249
- return originalProcessEmit.apply(this, arguments);
250
- }
251
- };
252
- }
253
- var assert;
254
- var signals;
255
- var isWin;
256
- var EE;
257
- var emitter;
258
- var unload;
259
- var emit;
260
- var sigListeners;
261
- var loaded;
262
- var load;
263
- var originalProcessReallyExit;
264
- var processReallyExit;
265
- var originalProcessEmit;
266
- var processEmit;
267
- }
268
- });