@prisma/migrate 6.1.0-dev.3 → 6.1.0-dev.30

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 (34) hide show
  1. package/dist/Migrate.js +5 -5
  2. package/dist/SchemaEngine.js +5 -5
  3. package/dist/bin.js +33 -33
  4. package/dist/{chunk-ILQWQHQO.js → chunk-3EBHV6P7.js} +6 -6
  5. package/dist/{chunk-GUBDW6S7.js → chunk-4NDZU7KV.js} +6 -6
  6. package/dist/{chunk-XYJKCYH6.js → chunk-7DE6A3RE.js} +814 -42
  7. package/dist/{chunk-PCJYN6LT.js → chunk-7MUF3HLX.js} +6 -6
  8. package/dist/{chunk-NKL64AIB.js → chunk-AOCCG7RR.js} +6 -6
  9. package/dist/{chunk-X6GGREJW.js → chunk-BQXAMKF7.js} +6 -6
  10. package/dist/{chunk-LVFPGUOH.js → chunk-E3UZYEGF.js} +92 -87
  11. package/dist/{chunk-KEPR65SW.js → chunk-ET2H4E2O.js} +6 -6
  12. package/dist/{chunk-PFEH6ILG.js → chunk-KX5GI2BM.js} +6 -6
  13. package/dist/{chunk-3H4RLVCQ.js → chunk-MBLWML5Q.js} +9 -9
  14. package/dist/{chunk-LJOMIPJW.js → chunk-NCDRH4BH.js} +7 -7
  15. package/dist/{chunk-HODZFC64.js → chunk-RCPXHNHW.js} +7 -7
  16. package/dist/{chunk-PNBMPQYH.js → chunk-UI76O6B2.js} +6 -6
  17. package/dist/{chunk-HTBRUJZH.js → chunk-WIZAZG3S.js} +815 -43
  18. package/dist/{chunk-Z4OLB2H4.js → chunk-XQJTDY7A.js} +6 -6
  19. package/dist/commands/DbExecute.js +6 -6
  20. package/dist/commands/DbPull.js +5 -5
  21. package/dist/commands/DbPush.js +6 -6
  22. package/dist/commands/MigrateDeploy.js +6 -6
  23. package/dist/commands/MigrateDev.js +6 -6
  24. package/dist/commands/MigrateDiff.js +6 -6
  25. package/dist/commands/MigrateReset.js +6 -6
  26. package/dist/commands/MigrateResolve.js +6 -6
  27. package/dist/commands/MigrateStatus.js +6 -6
  28. package/dist/index.js +39 -39
  29. package/dist/internals/src/tracing/types.d.ts +26 -16
  30. package/dist/utils/getDatabaseVersionSafe.js +5 -5
  31. package/dist/utils/introspectSql.js +4 -4
  32. package/dist/utils/setupMongo.js +25279 -23672
  33. package/dist/views/handleViewsIO.js +3 -3
  34. package/package.json +9 -9
@@ -26,17 +26,17 @@ 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_HTBRUJZH_exports = {};
30
- __export(chunk_HTBRUJZH_exports, {
29
+ var chunk_WIZAZG3S_exports = {};
30
+ __export(chunk_WIZAZG3S_exports, {
31
31
  MigrateDiff: () => MigrateDiff,
32
32
  init_MigrateDiff: () => init_MigrateDiff
33
33
  });
34
- module.exports = __toCommonJS(chunk_HTBRUJZH_exports);
34
+ module.exports = __toCommonJS(chunk_WIZAZG3S_exports);
35
35
  var import_chunk_NKQGJ3AE = require("./chunk-NKQGJ3AE.js");
36
36
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
37
37
  var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
38
- var import_chunk_LJOMIPJW = require("./chunk-LJOMIPJW.js");
39
- var import_chunk_LVFPGUOH = require("./chunk-LVFPGUOH.js");
38
+ var import_chunk_NCDRH4BH = require("./chunk-NCDRH4BH.js");
39
+ var import_chunk_E3UZYEGF = require("./chunk-E3UZYEGF.js");
40
40
  var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
41
41
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
42
42
  var import_node_process = __toESM(require("node:process"));
@@ -1314,11 +1314,11 @@ var require_brace_expansion = (0, import_chunk_WWAWV7DQ.__commonJS)({
1314
1314
  if (pad) {
1315
1315
  var need = width - c.length;
1316
1316
  if (need > 0) {
1317
- var z = new Array(need + 1).join("0");
1317
+ var z2 = new Array(need + 1).join("0");
1318
1318
  if (i < 0)
1319
- c = "-" + z + c.slice(1);
1319
+ c = "-" + z2 + c.slice(1);
1320
1320
  else
1321
- c = z + c;
1321
+ c = z2 + c;
1322
1322
  }
1323
1323
  }
1324
1324
  }
@@ -5031,6 +5031,778 @@ var require_ensure = (0, import_chunk_WWAWV7DQ.__commonJS)({
5031
5031
  };
5032
5032
  }
5033
5033
  });
5034
+ var require_polyfills2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5035
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
5036
+ "use strict";
5037
+ var constants = (0, import_chunk_WWAWV7DQ.__require)("constants");
5038
+ var origCwd = process.cwd;
5039
+ var cwd = null;
5040
+ var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
5041
+ process.cwd = function() {
5042
+ if (!cwd)
5043
+ cwd = origCwd.call(process);
5044
+ return cwd;
5045
+ };
5046
+ try {
5047
+ process.cwd();
5048
+ } catch (er) {
5049
+ }
5050
+ if (typeof process.chdir === "function") {
5051
+ chdir = process.chdir;
5052
+ process.chdir = function(d) {
5053
+ cwd = null;
5054
+ chdir.call(process, d);
5055
+ };
5056
+ if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
5057
+ }
5058
+ var chdir;
5059
+ module2.exports = patch;
5060
+ function patch(fs3) {
5061
+ if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
5062
+ patchLchmod(fs3);
5063
+ }
5064
+ if (!fs3.lutimes) {
5065
+ patchLutimes(fs3);
5066
+ }
5067
+ fs3.chown = chownFix(fs3.chown);
5068
+ fs3.fchown = chownFix(fs3.fchown);
5069
+ fs3.lchown = chownFix(fs3.lchown);
5070
+ fs3.chmod = chmodFix(fs3.chmod);
5071
+ fs3.fchmod = chmodFix(fs3.fchmod);
5072
+ fs3.lchmod = chmodFix(fs3.lchmod);
5073
+ fs3.chownSync = chownFixSync(fs3.chownSync);
5074
+ fs3.fchownSync = chownFixSync(fs3.fchownSync);
5075
+ fs3.lchownSync = chownFixSync(fs3.lchownSync);
5076
+ fs3.chmodSync = chmodFixSync(fs3.chmodSync);
5077
+ fs3.fchmodSync = chmodFixSync(fs3.fchmodSync);
5078
+ fs3.lchmodSync = chmodFixSync(fs3.lchmodSync);
5079
+ fs3.stat = statFix(fs3.stat);
5080
+ fs3.fstat = statFix(fs3.fstat);
5081
+ fs3.lstat = statFix(fs3.lstat);
5082
+ fs3.statSync = statFixSync(fs3.statSync);
5083
+ fs3.fstatSync = statFixSync(fs3.fstatSync);
5084
+ fs3.lstatSync = statFixSync(fs3.lstatSync);
5085
+ if (fs3.chmod && !fs3.lchmod) {
5086
+ fs3.lchmod = function(path7, mode, cb) {
5087
+ if (cb) process.nextTick(cb);
5088
+ };
5089
+ fs3.lchmodSync = function() {
5090
+ };
5091
+ }
5092
+ if (fs3.chown && !fs3.lchown) {
5093
+ fs3.lchown = function(path7, uid, gid, cb) {
5094
+ if (cb) process.nextTick(cb);
5095
+ };
5096
+ fs3.lchownSync = function() {
5097
+ };
5098
+ }
5099
+ if (platform === "win32") {
5100
+ fs3.rename = typeof fs3.rename !== "function" ? fs3.rename : function(fs$rename) {
5101
+ function rename(from, to, cb) {
5102
+ var start = Date.now();
5103
+ var backoff = 0;
5104
+ fs$rename(from, to, function CB(er) {
5105
+ if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
5106
+ setTimeout(function() {
5107
+ fs3.stat(to, function(stater, st) {
5108
+ if (stater && stater.code === "ENOENT")
5109
+ fs$rename(from, to, CB);
5110
+ else
5111
+ cb(er);
5112
+ });
5113
+ }, backoff);
5114
+ if (backoff < 100)
5115
+ backoff += 10;
5116
+ return;
5117
+ }
5118
+ if (cb) cb(er);
5119
+ });
5120
+ }
5121
+ if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
5122
+ return rename;
5123
+ }(fs3.rename);
5124
+ }
5125
+ fs3.read = typeof fs3.read !== "function" ? fs3.read : function(fs$read) {
5126
+ function read(fd, buffer, offset, length, position, callback_) {
5127
+ var callback;
5128
+ if (callback_ && typeof callback_ === "function") {
5129
+ var eagCounter = 0;
5130
+ callback = function(er, _, __) {
5131
+ if (er && er.code === "EAGAIN" && eagCounter < 10) {
5132
+ eagCounter++;
5133
+ return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
5134
+ }
5135
+ callback_.apply(this, arguments);
5136
+ };
5137
+ }
5138
+ return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
5139
+ }
5140
+ if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
5141
+ return read;
5142
+ }(fs3.read);
5143
+ fs3.readSync = typeof fs3.readSync !== "function" ? fs3.readSync : /* @__PURE__ */ function(fs$readSync) {
5144
+ return function(fd, buffer, offset, length, position) {
5145
+ var eagCounter = 0;
5146
+ while (true) {
5147
+ try {
5148
+ return fs$readSync.call(fs3, fd, buffer, offset, length, position);
5149
+ } catch (er) {
5150
+ if (er.code === "EAGAIN" && eagCounter < 10) {
5151
+ eagCounter++;
5152
+ continue;
5153
+ }
5154
+ throw er;
5155
+ }
5156
+ }
5157
+ };
5158
+ }(fs3.readSync);
5159
+ function patchLchmod(fs4) {
5160
+ fs4.lchmod = function(path7, mode, callback) {
5161
+ fs4.open(
5162
+ path7,
5163
+ constants.O_WRONLY | constants.O_SYMLINK,
5164
+ mode,
5165
+ function(err, fd) {
5166
+ if (err) {
5167
+ if (callback) callback(err);
5168
+ return;
5169
+ }
5170
+ fs4.fchmod(fd, mode, function(err2) {
5171
+ fs4.close(fd, function(err22) {
5172
+ if (callback) callback(err2 || err22);
5173
+ });
5174
+ });
5175
+ }
5176
+ );
5177
+ };
5178
+ fs4.lchmodSync = function(path7, mode) {
5179
+ var fd = fs4.openSync(path7, constants.O_WRONLY | constants.O_SYMLINK, mode);
5180
+ var threw = true;
5181
+ var ret;
5182
+ try {
5183
+ ret = fs4.fchmodSync(fd, mode);
5184
+ threw = false;
5185
+ } finally {
5186
+ if (threw) {
5187
+ try {
5188
+ fs4.closeSync(fd);
5189
+ } catch (er) {
5190
+ }
5191
+ } else {
5192
+ fs4.closeSync(fd);
5193
+ }
5194
+ }
5195
+ return ret;
5196
+ };
5197
+ }
5198
+ function patchLutimes(fs4) {
5199
+ if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
5200
+ fs4.lutimes = function(path7, at, mt, cb) {
5201
+ fs4.open(path7, constants.O_SYMLINK, function(er, fd) {
5202
+ if (er) {
5203
+ if (cb) cb(er);
5204
+ return;
5205
+ }
5206
+ fs4.futimes(fd, at, mt, function(er2) {
5207
+ fs4.close(fd, function(er22) {
5208
+ if (cb) cb(er2 || er22);
5209
+ });
5210
+ });
5211
+ });
5212
+ };
5213
+ fs4.lutimesSync = function(path7, at, mt) {
5214
+ var fd = fs4.openSync(path7, constants.O_SYMLINK);
5215
+ var ret;
5216
+ var threw = true;
5217
+ try {
5218
+ ret = fs4.futimesSync(fd, at, mt);
5219
+ threw = false;
5220
+ } finally {
5221
+ if (threw) {
5222
+ try {
5223
+ fs4.closeSync(fd);
5224
+ } catch (er) {
5225
+ }
5226
+ } else {
5227
+ fs4.closeSync(fd);
5228
+ }
5229
+ }
5230
+ return ret;
5231
+ };
5232
+ } else if (fs4.futimes) {
5233
+ fs4.lutimes = function(_a, _b, _c, cb) {
5234
+ if (cb) process.nextTick(cb);
5235
+ };
5236
+ fs4.lutimesSync = function() {
5237
+ };
5238
+ }
5239
+ }
5240
+ function chmodFix(orig) {
5241
+ if (!orig) return orig;
5242
+ return function(target, mode, cb) {
5243
+ return orig.call(fs3, target, mode, function(er) {
5244
+ if (chownErOk(er)) er = null;
5245
+ if (cb) cb.apply(this, arguments);
5246
+ });
5247
+ };
5248
+ }
5249
+ function chmodFixSync(orig) {
5250
+ if (!orig) return orig;
5251
+ return function(target, mode) {
5252
+ try {
5253
+ return orig.call(fs3, target, mode);
5254
+ } catch (er) {
5255
+ if (!chownErOk(er)) throw er;
5256
+ }
5257
+ };
5258
+ }
5259
+ function chownFix(orig) {
5260
+ if (!orig) return orig;
5261
+ return function(target, uid, gid, cb) {
5262
+ return orig.call(fs3, target, uid, gid, function(er) {
5263
+ if (chownErOk(er)) er = null;
5264
+ if (cb) cb.apply(this, arguments);
5265
+ });
5266
+ };
5267
+ }
5268
+ function chownFixSync(orig) {
5269
+ if (!orig) return orig;
5270
+ return function(target, uid, gid) {
5271
+ try {
5272
+ return orig.call(fs3, target, uid, gid);
5273
+ } catch (er) {
5274
+ if (!chownErOk(er)) throw er;
5275
+ }
5276
+ };
5277
+ }
5278
+ function statFix(orig) {
5279
+ if (!orig) return orig;
5280
+ return function(target, options, cb) {
5281
+ if (typeof options === "function") {
5282
+ cb = options;
5283
+ options = null;
5284
+ }
5285
+ function callback(er, stats) {
5286
+ if (stats) {
5287
+ if (stats.uid < 0) stats.uid += 4294967296;
5288
+ if (stats.gid < 0) stats.gid += 4294967296;
5289
+ }
5290
+ if (cb) cb.apply(this, arguments);
5291
+ }
5292
+ return options ? orig.call(fs3, target, options, callback) : orig.call(fs3, target, callback);
5293
+ };
5294
+ }
5295
+ function statFixSync(orig) {
5296
+ if (!orig) return orig;
5297
+ return function(target, options) {
5298
+ var stats = options ? orig.call(fs3, target, options) : orig.call(fs3, target);
5299
+ if (stats) {
5300
+ if (stats.uid < 0) stats.uid += 4294967296;
5301
+ if (stats.gid < 0) stats.gid += 4294967296;
5302
+ }
5303
+ return stats;
5304
+ };
5305
+ }
5306
+ function chownErOk(er) {
5307
+ if (!er)
5308
+ return true;
5309
+ if (er.code === "ENOSYS")
5310
+ return true;
5311
+ var nonroot = !process.getuid || process.getuid() !== 0;
5312
+ if (nonroot) {
5313
+ if (er.code === "EINVAL" || er.code === "EPERM")
5314
+ return true;
5315
+ }
5316
+ return false;
5317
+ }
5318
+ }
5319
+ }
5320
+ });
5321
+ var require_legacy_streams2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5322
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
5323
+ "use strict";
5324
+ var Stream = (0, import_chunk_WWAWV7DQ.__require)("stream").Stream;
5325
+ module2.exports = legacy;
5326
+ function legacy(fs3) {
5327
+ return {
5328
+ ReadStream,
5329
+ WriteStream
5330
+ };
5331
+ function ReadStream(path7, options) {
5332
+ if (!(this instanceof ReadStream)) return new ReadStream(path7, options);
5333
+ Stream.call(this);
5334
+ var self = this;
5335
+ this.path = path7;
5336
+ this.fd = null;
5337
+ this.readable = true;
5338
+ this.paused = false;
5339
+ this.flags = "r";
5340
+ this.mode = 438;
5341
+ this.bufferSize = 64 * 1024;
5342
+ options = options || {};
5343
+ var keys = Object.keys(options);
5344
+ for (var index = 0, length = keys.length; index < length; index++) {
5345
+ var key = keys[index];
5346
+ this[key] = options[key];
5347
+ }
5348
+ if (this.encoding) this.setEncoding(this.encoding);
5349
+ if (this.start !== void 0) {
5350
+ if ("number" !== typeof this.start) {
5351
+ throw TypeError("start must be a Number");
5352
+ }
5353
+ if (this.end === void 0) {
5354
+ this.end = Infinity;
5355
+ } else if ("number" !== typeof this.end) {
5356
+ throw TypeError("end must be a Number");
5357
+ }
5358
+ if (this.start > this.end) {
5359
+ throw new Error("start must be <= end");
5360
+ }
5361
+ this.pos = this.start;
5362
+ }
5363
+ if (this.fd !== null) {
5364
+ process.nextTick(function() {
5365
+ self._read();
5366
+ });
5367
+ return;
5368
+ }
5369
+ fs3.open(this.path, this.flags, this.mode, function(err, fd) {
5370
+ if (err) {
5371
+ self.emit("error", err);
5372
+ self.readable = false;
5373
+ return;
5374
+ }
5375
+ self.fd = fd;
5376
+ self.emit("open", fd);
5377
+ self._read();
5378
+ });
5379
+ }
5380
+ function WriteStream(path7, options) {
5381
+ if (!(this instanceof WriteStream)) return new WriteStream(path7, options);
5382
+ Stream.call(this);
5383
+ this.path = path7;
5384
+ this.fd = null;
5385
+ this.writable = true;
5386
+ this.flags = "w";
5387
+ this.encoding = "binary";
5388
+ this.mode = 438;
5389
+ this.bytesWritten = 0;
5390
+ options = options || {};
5391
+ var keys = Object.keys(options);
5392
+ for (var index = 0, length = keys.length; index < length; index++) {
5393
+ var key = keys[index];
5394
+ this[key] = options[key];
5395
+ }
5396
+ if (this.start !== void 0) {
5397
+ if ("number" !== typeof this.start) {
5398
+ throw TypeError("start must be a Number");
5399
+ }
5400
+ if (this.start < 0) {
5401
+ throw new Error("start must be >= zero");
5402
+ }
5403
+ this.pos = this.start;
5404
+ }
5405
+ this.busy = false;
5406
+ this._queue = [];
5407
+ if (this.fd === null) {
5408
+ this._open = fs3.open;
5409
+ this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
5410
+ this.flush();
5411
+ }
5412
+ }
5413
+ }
5414
+ }
5415
+ });
5416
+ var require_clone2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5417
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
5418
+ "use strict";
5419
+ module2.exports = clone;
5420
+ var getPrototypeOf = Object.getPrototypeOf || function(obj) {
5421
+ return obj.__proto__;
5422
+ };
5423
+ function clone(obj) {
5424
+ if (obj === null || typeof obj !== "object")
5425
+ return obj;
5426
+ if (obj instanceof Object)
5427
+ var copy = { __proto__: getPrototypeOf(obj) };
5428
+ else
5429
+ var copy = /* @__PURE__ */ Object.create(null);
5430
+ Object.getOwnPropertyNames(obj).forEach(function(key) {
5431
+ Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
5432
+ });
5433
+ return copy;
5434
+ }
5435
+ }
5436
+ });
5437
+ var require_graceful_fs2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5438
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
5439
+ "use strict";
5440
+ var fs3 = (0, import_chunk_WWAWV7DQ.__require)("fs");
5441
+ var polyfills = require_polyfills2();
5442
+ var legacy = require_legacy_streams2();
5443
+ var clone = require_clone2();
5444
+ var util = (0, import_chunk_WWAWV7DQ.__require)("util");
5445
+ var gracefulQueue;
5446
+ var previousSymbol;
5447
+ if (typeof Symbol === "function" && typeof Symbol.for === "function") {
5448
+ gracefulQueue = Symbol.for("graceful-fs.queue");
5449
+ previousSymbol = Symbol.for("graceful-fs.previous");
5450
+ } else {
5451
+ gracefulQueue = "___graceful-fs.queue";
5452
+ previousSymbol = "___graceful-fs.previous";
5453
+ }
5454
+ function noop() {
5455
+ }
5456
+ function publishQueue(context, queue2) {
5457
+ Object.defineProperty(context, gracefulQueue, {
5458
+ get: function() {
5459
+ return queue2;
5460
+ }
5461
+ });
5462
+ }
5463
+ var debug4 = noop;
5464
+ if (util.debuglog)
5465
+ debug4 = util.debuglog("gfs4");
5466
+ else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
5467
+ debug4 = function() {
5468
+ var m = util.format.apply(util, arguments);
5469
+ m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
5470
+ console.error(m);
5471
+ };
5472
+ if (!fs3[gracefulQueue]) {
5473
+ queue = global[gracefulQueue] || [];
5474
+ publishQueue(fs3, queue);
5475
+ fs3.close = function(fs$close) {
5476
+ function close(fd, cb) {
5477
+ return fs$close.call(fs3, fd, function(err) {
5478
+ if (!err) {
5479
+ resetQueue();
5480
+ }
5481
+ if (typeof cb === "function")
5482
+ cb.apply(this, arguments);
5483
+ });
5484
+ }
5485
+ Object.defineProperty(close, previousSymbol, {
5486
+ value: fs$close
5487
+ });
5488
+ return close;
5489
+ }(fs3.close);
5490
+ fs3.closeSync = function(fs$closeSync) {
5491
+ function closeSync(fd) {
5492
+ fs$closeSync.apply(fs3, arguments);
5493
+ resetQueue();
5494
+ }
5495
+ Object.defineProperty(closeSync, previousSymbol, {
5496
+ value: fs$closeSync
5497
+ });
5498
+ return closeSync;
5499
+ }(fs3.closeSync);
5500
+ if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
5501
+ process.on("exit", function() {
5502
+ debug4(fs3[gracefulQueue]);
5503
+ (0, import_chunk_WWAWV7DQ.__require)("assert").equal(fs3[gracefulQueue].length, 0);
5504
+ });
5505
+ }
5506
+ }
5507
+ var queue;
5508
+ if (!global[gracefulQueue]) {
5509
+ publishQueue(global, fs3[gracefulQueue]);
5510
+ }
5511
+ module2.exports = patch(clone(fs3));
5512
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs3.__patched) {
5513
+ module2.exports = patch(fs3);
5514
+ fs3.__patched = true;
5515
+ }
5516
+ function patch(fs4) {
5517
+ polyfills(fs4);
5518
+ fs4.gracefulify = patch;
5519
+ fs4.createReadStream = createReadStream;
5520
+ fs4.createWriteStream = createWriteStream;
5521
+ var fs$readFile = fs4.readFile;
5522
+ fs4.readFile = readFile2;
5523
+ function readFile2(path7, options, cb) {
5524
+ if (typeof options === "function")
5525
+ cb = options, options = null;
5526
+ return go$readFile(path7, options, cb);
5527
+ function go$readFile(path8, options2, cb2, startTime) {
5528
+ return fs$readFile(path8, options2, function(err) {
5529
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5530
+ enqueue([go$readFile, [path8, options2, cb2], err, startTime || Date.now(), Date.now()]);
5531
+ else {
5532
+ if (typeof cb2 === "function")
5533
+ cb2.apply(this, arguments);
5534
+ }
5535
+ });
5536
+ }
5537
+ }
5538
+ var fs$writeFile = fs4.writeFile;
5539
+ fs4.writeFile = writeFile;
5540
+ function writeFile(path7, data, options, cb) {
5541
+ if (typeof options === "function")
5542
+ cb = options, options = null;
5543
+ return go$writeFile(path7, data, options, cb);
5544
+ function go$writeFile(path8, data2, options2, cb2, startTime) {
5545
+ return fs$writeFile(path8, data2, options2, function(err) {
5546
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5547
+ enqueue([go$writeFile, [path8, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
5548
+ else {
5549
+ if (typeof cb2 === "function")
5550
+ cb2.apply(this, arguments);
5551
+ }
5552
+ });
5553
+ }
5554
+ }
5555
+ var fs$appendFile = fs4.appendFile;
5556
+ if (fs$appendFile)
5557
+ fs4.appendFile = appendFile;
5558
+ function appendFile(path7, data, options, cb) {
5559
+ if (typeof options === "function")
5560
+ cb = options, options = null;
5561
+ return go$appendFile(path7, data, options, cb);
5562
+ function go$appendFile(path8, data2, options2, cb2, startTime) {
5563
+ return fs$appendFile(path8, data2, options2, function(err) {
5564
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5565
+ enqueue([go$appendFile, [path8, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
5566
+ else {
5567
+ if (typeof cb2 === "function")
5568
+ cb2.apply(this, arguments);
5569
+ }
5570
+ });
5571
+ }
5572
+ }
5573
+ var fs$copyFile = fs4.copyFile;
5574
+ if (fs$copyFile)
5575
+ fs4.copyFile = copyFile;
5576
+ function copyFile(src, dest, flags, cb) {
5577
+ if (typeof flags === "function") {
5578
+ cb = flags;
5579
+ flags = 0;
5580
+ }
5581
+ return go$copyFile(src, dest, flags, cb);
5582
+ function go$copyFile(src2, dest2, flags2, cb2, startTime) {
5583
+ return fs$copyFile(src2, dest2, flags2, function(err) {
5584
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5585
+ enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
5586
+ else {
5587
+ if (typeof cb2 === "function")
5588
+ cb2.apply(this, arguments);
5589
+ }
5590
+ });
5591
+ }
5592
+ }
5593
+ var fs$readdir = fs4.readdir;
5594
+ fs4.readdir = readdir;
5595
+ var noReaddirOptionVersions = /^v[0-5]\./;
5596
+ function readdir(path7, options, cb) {
5597
+ if (typeof options === "function")
5598
+ cb = options, options = null;
5599
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path8, options2, cb2, startTime) {
5600
+ return fs$readdir(path8, fs$readdirCallback(
5601
+ path8,
5602
+ options2,
5603
+ cb2,
5604
+ startTime
5605
+ ));
5606
+ } : function go$readdir2(path8, options2, cb2, startTime) {
5607
+ return fs$readdir(path8, options2, fs$readdirCallback(
5608
+ path8,
5609
+ options2,
5610
+ cb2,
5611
+ startTime
5612
+ ));
5613
+ };
5614
+ return go$readdir(path7, options, cb);
5615
+ function fs$readdirCallback(path8, options2, cb2, startTime) {
5616
+ return function(err, files) {
5617
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5618
+ enqueue([
5619
+ go$readdir,
5620
+ [path8, options2, cb2],
5621
+ err,
5622
+ startTime || Date.now(),
5623
+ Date.now()
5624
+ ]);
5625
+ else {
5626
+ if (files && files.sort)
5627
+ files.sort();
5628
+ if (typeof cb2 === "function")
5629
+ cb2.call(this, err, files);
5630
+ }
5631
+ };
5632
+ }
5633
+ }
5634
+ if (process.version.substr(0, 4) === "v0.8") {
5635
+ var legStreams = legacy(fs4);
5636
+ ReadStream = legStreams.ReadStream;
5637
+ WriteStream = legStreams.WriteStream;
5638
+ }
5639
+ var fs$ReadStream = fs4.ReadStream;
5640
+ if (fs$ReadStream) {
5641
+ ReadStream.prototype = Object.create(fs$ReadStream.prototype);
5642
+ ReadStream.prototype.open = ReadStream$open;
5643
+ }
5644
+ var fs$WriteStream = fs4.WriteStream;
5645
+ if (fs$WriteStream) {
5646
+ WriteStream.prototype = Object.create(fs$WriteStream.prototype);
5647
+ WriteStream.prototype.open = WriteStream$open;
5648
+ }
5649
+ Object.defineProperty(fs4, "ReadStream", {
5650
+ get: function() {
5651
+ return ReadStream;
5652
+ },
5653
+ set: function(val) {
5654
+ ReadStream = val;
5655
+ },
5656
+ enumerable: true,
5657
+ configurable: true
5658
+ });
5659
+ Object.defineProperty(fs4, "WriteStream", {
5660
+ get: function() {
5661
+ return WriteStream;
5662
+ },
5663
+ set: function(val) {
5664
+ WriteStream = val;
5665
+ },
5666
+ enumerable: true,
5667
+ configurable: true
5668
+ });
5669
+ var FileReadStream = ReadStream;
5670
+ Object.defineProperty(fs4, "FileReadStream", {
5671
+ get: function() {
5672
+ return FileReadStream;
5673
+ },
5674
+ set: function(val) {
5675
+ FileReadStream = val;
5676
+ },
5677
+ enumerable: true,
5678
+ configurable: true
5679
+ });
5680
+ var FileWriteStream = WriteStream;
5681
+ Object.defineProperty(fs4, "FileWriteStream", {
5682
+ get: function() {
5683
+ return FileWriteStream;
5684
+ },
5685
+ set: function(val) {
5686
+ FileWriteStream = val;
5687
+ },
5688
+ enumerable: true,
5689
+ configurable: true
5690
+ });
5691
+ function ReadStream(path7, options) {
5692
+ if (this instanceof ReadStream)
5693
+ return fs$ReadStream.apply(this, arguments), this;
5694
+ else
5695
+ return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
5696
+ }
5697
+ function ReadStream$open() {
5698
+ var that = this;
5699
+ open(that.path, that.flags, that.mode, function(err, fd) {
5700
+ if (err) {
5701
+ if (that.autoClose)
5702
+ that.destroy();
5703
+ that.emit("error", err);
5704
+ } else {
5705
+ that.fd = fd;
5706
+ that.emit("open", fd);
5707
+ that.read();
5708
+ }
5709
+ });
5710
+ }
5711
+ function WriteStream(path7, options) {
5712
+ if (this instanceof WriteStream)
5713
+ return fs$WriteStream.apply(this, arguments), this;
5714
+ else
5715
+ return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
5716
+ }
5717
+ function WriteStream$open() {
5718
+ var that = this;
5719
+ open(that.path, that.flags, that.mode, function(err, fd) {
5720
+ if (err) {
5721
+ that.destroy();
5722
+ that.emit("error", err);
5723
+ } else {
5724
+ that.fd = fd;
5725
+ that.emit("open", fd);
5726
+ }
5727
+ });
5728
+ }
5729
+ function createReadStream(path7, options) {
5730
+ return new fs4.ReadStream(path7, options);
5731
+ }
5732
+ function createWriteStream(path7, options) {
5733
+ return new fs4.WriteStream(path7, options);
5734
+ }
5735
+ var fs$open = fs4.open;
5736
+ fs4.open = open;
5737
+ function open(path7, flags, mode, cb) {
5738
+ if (typeof mode === "function")
5739
+ cb = mode, mode = null;
5740
+ return go$open(path7, flags, mode, cb);
5741
+ function go$open(path8, flags2, mode2, cb2, startTime) {
5742
+ return fs$open(path8, flags2, mode2, function(err, fd) {
5743
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5744
+ enqueue([go$open, [path8, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
5745
+ else {
5746
+ if (typeof cb2 === "function")
5747
+ cb2.apply(this, arguments);
5748
+ }
5749
+ });
5750
+ }
5751
+ }
5752
+ return fs4;
5753
+ }
5754
+ function enqueue(elem) {
5755
+ debug4("ENQUEUE", elem[0].name, elem[1]);
5756
+ fs3[gracefulQueue].push(elem);
5757
+ retry();
5758
+ }
5759
+ var retryTimer;
5760
+ function resetQueue() {
5761
+ var now = Date.now();
5762
+ for (var i = 0; i < fs3[gracefulQueue].length; ++i) {
5763
+ if (fs3[gracefulQueue][i].length > 2) {
5764
+ fs3[gracefulQueue][i][3] = now;
5765
+ fs3[gracefulQueue][i][4] = now;
5766
+ }
5767
+ }
5768
+ retry();
5769
+ }
5770
+ function retry() {
5771
+ clearTimeout(retryTimer);
5772
+ retryTimer = void 0;
5773
+ if (fs3[gracefulQueue].length === 0)
5774
+ return;
5775
+ var elem = fs3[gracefulQueue].shift();
5776
+ var fn = elem[0];
5777
+ var args = elem[1];
5778
+ var err = elem[2];
5779
+ var startTime = elem[3];
5780
+ var lastTime = elem[4];
5781
+ if (startTime === void 0) {
5782
+ debug4("RETRY", fn.name, args);
5783
+ fn.apply(null, args);
5784
+ } else if (Date.now() - startTime >= 6e4) {
5785
+ debug4("TIMEOUT", fn.name, args);
5786
+ var cb = args.pop();
5787
+ if (typeof cb === "function")
5788
+ cb.call(null, err);
5789
+ } else {
5790
+ var sinceAttempt = Date.now() - lastTime;
5791
+ var sinceStart = Math.max(lastTime - startTime, 1);
5792
+ var desiredDelay = Math.min(sinceStart * 1.2, 100);
5793
+ if (sinceAttempt >= desiredDelay) {
5794
+ debug4("RETRY", fn.name, args);
5795
+ fn.apply(null, args.concat([startTime]));
5796
+ } else {
5797
+ fs3[gracefulQueue].push(elem);
5798
+ }
5799
+ }
5800
+ if (retryTimer === void 0) {
5801
+ retryTimer = setTimeout(retry, 0);
5802
+ }
5803
+ }
5804
+ }
5805
+ });
5034
5806
  var require_utils2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5035
5807
  "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
5036
5808
  "use strict";
@@ -5051,7 +5823,7 @@ var require_jsonfile = (0, import_chunk_WWAWV7DQ.__commonJS)({
5051
5823
  "use strict";
5052
5824
  var _fs;
5053
5825
  try {
5054
- _fs = require_graceful_fs();
5826
+ _fs = require_graceful_fs2();
5055
5827
  } catch (_) {
5056
5828
  _fs = (0, import_chunk_WWAWV7DQ.__require)("fs");
5057
5829
  }
@@ -6184,26 +6956,26 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
6184
6956
  b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;
6185
6957
  var x = r * 0.4124 + g * 0.3576 + b * 0.1805;
6186
6958
  var y = r * 0.2126 + g * 0.7152 + b * 0.0722;
6187
- var z = r * 0.0193 + g * 0.1192 + b * 0.9505;
6188
- return [x * 100, y * 100, z * 100];
6959
+ var z2 = r * 0.0193 + g * 0.1192 + b * 0.9505;
6960
+ return [x * 100, y * 100, z2 * 100];
6189
6961
  };
6190
6962
  convert.rgb.lab = function(rgb) {
6191
6963
  var xyz = convert.rgb.xyz(rgb);
6192
6964
  var x = xyz[0];
6193
6965
  var y = xyz[1];
6194
- var z = xyz[2];
6966
+ var z2 = xyz[2];
6195
6967
  var l;
6196
6968
  var a;
6197
6969
  var b;
6198
6970
  x /= 95.047;
6199
6971
  y /= 100;
6200
- z /= 108.883;
6972
+ z2 /= 108.883;
6201
6973
  x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
6202
6974
  y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;
6203
- z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
6975
+ z2 = z2 > 8856e-6 ? Math.pow(z2, 1 / 3) : 7.787 * z2 + 16 / 116;
6204
6976
  l = 116 * y - 16;
6205
6977
  a = 500 * (x - y);
6206
- b = 200 * (y - z);
6978
+ b = 200 * (y - z2);
6207
6979
  return [l, a, b];
6208
6980
  };
6209
6981
  convert.hsl.rgb = function(hsl) {
@@ -6378,13 +7150,13 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
6378
7150
  convert.xyz.rgb = function(xyz) {
6379
7151
  var x = xyz[0] / 100;
6380
7152
  var y = xyz[1] / 100;
6381
- var z = xyz[2] / 100;
7153
+ var z2 = xyz[2] / 100;
6382
7154
  var r;
6383
7155
  var g;
6384
7156
  var b;
6385
- r = x * 3.2406 + y * -1.5372 + z * -0.4986;
6386
- g = x * -0.9689 + y * 1.8758 + z * 0.0415;
6387
- b = x * 0.0557 + y * -0.204 + z * 1.057;
7157
+ r = x * 3.2406 + y * -1.5372 + z2 * -0.4986;
7158
+ g = x * -0.9689 + y * 1.8758 + z2 * 0.0415;
7159
+ b = x * 0.0557 + y * -0.204 + z2 * 1.057;
6388
7160
  r = r > 31308e-7 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : r * 12.92;
6389
7161
  g = g > 31308e-7 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : g * 12.92;
6390
7162
  b = b > 31308e-7 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : b * 12.92;
@@ -6396,19 +7168,19 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
6396
7168
  convert.xyz.lab = function(xyz) {
6397
7169
  var x = xyz[0];
6398
7170
  var y = xyz[1];
6399
- var z = xyz[2];
7171
+ var z2 = xyz[2];
6400
7172
  var l;
6401
7173
  var a;
6402
7174
  var b;
6403
7175
  x /= 95.047;
6404
7176
  y /= 100;
6405
- z /= 108.883;
7177
+ z2 /= 108.883;
6406
7178
  x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
6407
7179
  y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;
6408
- z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
7180
+ z2 = z2 > 8856e-6 ? Math.pow(z2, 1 / 3) : 7.787 * z2 + 16 / 116;
6409
7181
  l = 116 * y - 16;
6410
7182
  a = 500 * (x - y);
6411
- b = 200 * (y - z);
7183
+ b = 200 * (y - z2);
6412
7184
  return [l, a, b];
6413
7185
  };
6414
7186
  convert.lab.xyz = function(lab) {
@@ -6417,20 +7189,20 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
6417
7189
  var b = lab[2];
6418
7190
  var x;
6419
7191
  var y;
6420
- var z;
7192
+ var z2;
6421
7193
  y = (l + 16) / 116;
6422
7194
  x = a / 500 + y;
6423
- z = y - b / 200;
7195
+ z2 = y - b / 200;
6424
7196
  var y2 = Math.pow(y, 3);
6425
7197
  var x2 = Math.pow(x, 3);
6426
- var z2 = Math.pow(z, 3);
7198
+ var z22 = Math.pow(z2, 3);
6427
7199
  y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
6428
7200
  x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
6429
- z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
7201
+ z2 = z22 > 8856e-6 ? z22 : (z2 - 16 / 116) / 7.787;
6430
7202
  x *= 95.047;
6431
7203
  y *= 100;
6432
- z *= 108.883;
6433
- return [x, y, z];
7204
+ z2 *= 108.883;
7205
+ return [x, y, z2];
6434
7206
  };
6435
7207
  convert.lab.lch = function(lab) {
6436
7208
  var l = lab[0];
@@ -10757,7 +11529,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
10757
11529
  "../internals/package.json"(exports, module2) {
10758
11530
  module2.exports = {
10759
11531
  name: "@prisma/internals",
10760
- version: "6.1.0-dev.3",
11532
+ version: "6.1.0-dev.30",
10761
11533
  description: "This package is intended for Prisma's internal use",
10762
11534
  main: "dist/index.js",
10763
11535
  types: "dist/index.d.ts",
@@ -10796,7 +11568,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
10796
11568
  archiver: "6.0.2",
10797
11569
  "checkpoint-client": "1.1.33",
10798
11570
  "cli-truncate": "2.1.0",
10799
- dotenv: "16.0.3",
11571
+ dotenv: "16.4.7",
10800
11572
  esbuild: "0.24.0",
10801
11573
  "escape-string-regexp": "4.0.0",
10802
11574
  execa: "5.1.1",
@@ -10831,7 +11603,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
10831
11603
  "terminal-link": "2.1.1",
10832
11604
  tmp: "0.2.3",
10833
11605
  "ts-node": "10.9.2",
10834
- "ts-pattern": "5.2.0",
11606
+ "ts-pattern": "5.6.0",
10835
11607
  "ts-toolbelt": "9.6.0",
10836
11608
  typescript: "5.4.5",
10837
11609
  yarn: "1.22.22"
@@ -10842,7 +11614,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
10842
11614
  "@prisma/fetch-engine": "workspace:*",
10843
11615
  "@prisma/generator-helper": "workspace:*",
10844
11616
  "@prisma/get-platform": "workspace:*",
10845
- "@prisma/prisma-schema-wasm": "6.1.0-3.025d69d4aa1362e128e0bcc53b5147a416dfebad",
11617
+ "@prisma/prisma-schema-wasm": "6.1.0-16.40232c93c80a22f3a8bae784b0386319a57a5aa0",
10846
11618
  "@prisma/schema-files-loader": "workspace:*",
10847
11619
  arg: "5.0.2",
10848
11620
  prompts: "2.4.2"
@@ -10920,12 +11692,12 @@ function parseQueryEngineError({ errorOutput, reason }) {
10920
11692
  ),
10921
11693
  map((errorOutputAsJSON) => {
10922
11694
  const defaultMessage = (0, import_chunk_6TE2RIPN.red)((0, import_chunk_6TE2RIPN.bold)(relativizePathInPSLError(errorOutputAsJSON.message)));
10923
- const getConfigErrorInit = (0, import_chunk_LVFPGUOH.$)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
11695
+ const getConfigErrorInit = (0, import_chunk_E3UZYEGF.z)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
10924
11696
  return {
10925
11697
  reason: createSchemaValidationError(reason),
10926
11698
  errorCode: eJSON.error_code
10927
11699
  };
10928
- }).with({ error_code: import_chunk_LVFPGUOH.N.string }, (eJSON) => {
11700
+ }).with({ error_code: import_chunk_E3UZYEGF.N.string }, (eJSON) => {
10929
11701
  return {
10930
11702
  reason,
10931
11703
  errorCode: eJSON.error_code
@@ -10946,9 +11718,9 @@ var init_queryEngineCommons = (0, import_chunk_WWAWV7DQ.__esm)({
10946
11718
  "../internals/src/engine-commands/queryEngineCommons.ts"() {
10947
11719
  "use strict";
10948
11720
  init_Either();
10949
- import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_LVFPGUOH.require_function)());
11721
+ import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_E3UZYEGF.require_function)());
10950
11722
  (0, import_chunk_6TE2RIPN.init_colors)();
10951
- (0, import_chunk_LVFPGUOH.init_dist)();
11723
+ (0, import_chunk_E3UZYEGF.init_dist)();
10952
11724
  init_relativizePathInPSLError();
10953
11725
  createDebugErrorType = (debug4, fnName) => ({ type, reason, error }) => {
10954
11726
  debug4(`error of type "${type}" in ${fnName}:
@@ -11014,7 +11786,7 @@ async function getConfig(options) {
11014
11786
  }
11015
11787
  return Promise.resolve(data);
11016
11788
  }
11017
- const error = (0, import_chunk_LVFPGUOH.$)(configEither.left).with({ type: "wasm-error" }, (e) => {
11789
+ const error = (0, import_chunk_E3UZYEGF.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
11018
11790
  debugErrorType(e);
11019
11791
  if (isWasmPanic(e.error)) {
11020
11792
  const { message, stack } = getWasmError(e.error);
@@ -11079,9 +11851,9 @@ var init_getConfig = (0, import_chunk_WWAWV7DQ.__esm)({
11079
11851
  "../internals/src/engine-commands/getConfig.ts"() {
11080
11852
  "use strict";
11081
11853
  init_Either();
11082
- import_function3 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_LVFPGUOH.require_function)());
11854
+ import_function3 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_E3UZYEGF.require_function)());
11083
11855
  (0, import_chunk_6TE2RIPN.init_colors)();
11084
- (0, import_chunk_LVFPGUOH.init_dist)();
11856
+ (0, import_chunk_E3UZYEGF.init_dist)();
11085
11857
  init_panic();
11086
11858
  init_schemaFileInput();
11087
11859
  init_wasm();
@@ -11092,7 +11864,7 @@ var init_getConfig = (0, import_chunk_WWAWV7DQ.__esm)({
11092
11864
  SCHEMA_VALIDATION_ERROR_CODE = "P1012";
11093
11865
  GetConfigError = class extends Error {
11094
11866
  constructor(params) {
11095
- const constructedErrorMessage = (0, import_chunk_LVFPGUOH.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
11867
+ const constructedErrorMessage = (0, import_chunk_E3UZYEGF.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
11096
11868
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
11097
11869
  return `${reason}
11098
11870
  ${errorCodeMessage}
@@ -11371,7 +12143,7 @@ var init_MigrateDiff = (0, import_chunk_WWAWV7DQ.__esm)({
11371
12143
  import_fs_jetpack = (0, import_chunk_WWAWV7DQ.__toESM)(require_main());
11372
12144
  (0, import_chunk_6TE2RIPN.init_colors)();
11373
12145
  init_getSchema();
11374
- (0, import_chunk_LJOMIPJW.init_Migrate)();
12146
+ (0, import_chunk_NCDRH4BH.init_Migrate)();
11375
12147
  (0, import_chunk_TKAGMA5K.init_captureStdout)();
11376
12148
  debug3 = (0, import_debug3.default)("prisma:migrate:diff");
11377
12149
  helpOptions = (0, import_internals.format)(
@@ -11549,7 +12321,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Flags")}
11549
12321
  url: `file:${d1Database}`
11550
12322
  };
11551
12323
  }
11552
- const migrate = new import_chunk_LJOMIPJW.Migrate();
12324
+ const migrate = new import_chunk_NCDRH4BH.Migrate();
11553
12325
  const captureStdout = new import_chunk_TKAGMA5K.CaptureStdout();
11554
12326
  const outputPath = args["--output"];
11555
12327
  const isOutputDefined = Boolean(outputPath);