@prisma/migrate 6.1.0-dev.16 → 6.1.0-dev.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) 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-PCJYN6LT.js → chunk-7MUF3HLX.js} +6 -6
  7. package/dist/{chunk-NKL64AIB.js → chunk-AOCCG7RR.js} +6 -6
  8. package/dist/{chunk-X6GGREJW.js → chunk-BQXAMKF7.js} +6 -6
  9. package/dist/{chunk-TI5ABDNG.js → chunk-CUVX2F3Z.js} +40 -40
  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-W732A6L3.js → chunk-KMWCE3CJ.js} +39 -39
  13. package/dist/{chunk-PFEH6ILG.js → chunk-KX5GI2BM.js} +6 -6
  14. package/dist/{chunk-3H4RLVCQ.js → chunk-MBLWML5Q.js} +9 -9
  15. package/dist/{chunk-LJOMIPJW.js → chunk-NCDRH4BH.js} +7 -7
  16. package/dist/{chunk-HODZFC64.js → chunk-RCPXHNHW.js} +7 -7
  17. package/dist/{chunk-PNBMPQYH.js → chunk-UI76O6B2.js} +6 -6
  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/utils/getDatabaseVersionSafe.js +5 -5
  30. package/dist/utils/introspectSql.js +4 -4
  31. package/dist/views/handleViewsIO.js +3 -3
  32. package/package.json +6 -6
@@ -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_LVFPGUOH_exports = {};
30
- __export(chunk_LVFPGUOH_exports, {
31
- $: () => $,
29
+ var chunk_E3UZYEGF_exports = {};
30
+ __export(chunk_E3UZYEGF_exports, {
32
31
  N: () => N,
33
32
  handleViewsIO: () => handleViewsIO,
34
33
  init_dist: () => init_dist,
35
34
  init_handleViewsIO: () => init_handleViewsIO,
36
- require_function: () => require_function
35
+ require_function: () => require_function,
36
+ z: () => z
37
37
  });
38
- module.exports = __toCommonJS(chunk_LVFPGUOH_exports);
38
+ module.exports = __toCommonJS(chunk_E3UZYEGF_exports);
39
39
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
40
40
  var import_internals = require("@prisma/internals");
41
41
  var import_path = __toESM(require("path"));
@@ -4256,20 +4256,20 @@ var require_TaskEither = (0, import_chunk_WWAWV7DQ.__commonJS)({
4256
4256
  function a(...t2) {
4257
4257
  if (1 === t2.length) {
4258
4258
  const [e2] = t2;
4259
- return (t3) => o(e2, t3, () => {
4259
+ return (t3) => s(e2, t3, () => {
4260
4260
  });
4261
4261
  }
4262
4262
  if (2 === t2.length) {
4263
4263
  const [e2, n2] = t2;
4264
- return o(e2, n2, () => {
4264
+ return s(e2, n2, () => {
4265
4265
  });
4266
4266
  }
4267
4267
  throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t2.length}.`);
4268
4268
  }
4269
4269
  function u(t2) {
4270
- return Object.assign(t2, { optional: () => l(t2), and: (e2) => m(t2, e2), or: (e2) => d(t2, e2), select: (e2) => void 0 === e2 ? p(t2) : p(e2, t2) });
4270
+ return Object.assign(t2, { optional: () => h(t2), and: (e2) => m(t2, e2), or: (e2) => d(t2, e2), select: (e2) => void 0 === e2 ? y(t2) : y(e2, t2) });
4271
4271
  }
4272
- function h(t2) {
4272
+ function l(t2) {
4273
4273
  return Object.assign(((t3) => Object.assign(t3, { [Symbol.iterator]() {
4274
4274
  let n2 = 0;
4275
4275
  const r2 = [{ value: Object.assign(t3, { [e]: true }), done: false }, { done: true, value: void 0 }];
@@ -4277,16 +4277,16 @@ function h(t2) {
4277
4277
  var t4;
4278
4278
  return null != (t4 = r2[n2++]) ? t4 : r2.at(-1);
4279
4279
  } };
4280
- } }))(t2), { optional: () => h(l(t2)), select: (e2) => h(void 0 === e2 ? p(t2) : p(e2, t2)) });
4280
+ } }))(t2), { optional: () => l(h(t2)), select: (e2) => l(void 0 === e2 ? y(t2) : y(e2, t2)) });
4281
4281
  }
4282
- function l(e2) {
4282
+ function h(e2) {
4283
4283
  return u({ [t]: () => ({ match: (t2) => {
4284
4284
  let n2 = {};
4285
4285
  const r2 = (t3, e3) => {
4286
4286
  n2[t3] = e3;
4287
4287
  };
4288
- return void 0 === t2 ? (s(e2).forEach((t3) => r2(t3, void 0)), { matched: true, selections: n2 }) : { matched: o(e2, t2, r2), selections: n2 };
4289
- }, getSelectionKeys: () => s(e2), matcherType: "optional" }) });
4288
+ return void 0 === t2 ? (o(e2).forEach((t3) => r2(t3, void 0)), { matched: true, selections: n2 }) : { matched: s(e2, t2, r2), selections: n2 };
4289
+ }, getSelectionKeys: () => o(e2), matcherType: "optional" }) });
4290
4290
  }
4291
4291
  function m(...e2) {
4292
4292
  return u({ [t]: () => ({ match: (t2) => {
@@ -4294,8 +4294,8 @@ function m(...e2) {
4294
4294
  const r2 = (t3, e3) => {
4295
4295
  n2[t3] = e3;
4296
4296
  };
4297
- return { matched: e2.every((e3) => o(e3, t2, r2)), selections: n2 };
4298
- }, getSelectionKeys: () => c(e2, s), matcherType: "and" }) });
4297
+ return { matched: e2.every((e3) => s(e3, t2, r2)), selections: n2 };
4298
+ }, getSelectionKeys: () => c(e2, o), matcherType: "and" }) });
4299
4299
  }
4300
4300
  function d(...e2) {
4301
4301
  return u({ [t]: () => ({ match: (t2) => {
@@ -4303,20 +4303,20 @@ function d(...e2) {
4303
4303
  const r2 = (t3, e3) => {
4304
4304
  n2[t3] = e3;
4305
4305
  };
4306
- return c(e2, s).forEach((t3) => r2(t3, void 0)), { matched: e2.some((e3) => o(e3, t2, r2)), selections: n2 };
4307
- }, getSelectionKeys: () => c(e2, s), matcherType: "or" }) });
4306
+ return c(e2, o).forEach((t3) => r2(t3, void 0)), { matched: e2.some((e3) => s(e3, t2, r2)), selections: n2 };
4307
+ }, getSelectionKeys: () => c(e2, o), matcherType: "or" }) });
4308
4308
  }
4309
- function y(e2) {
4309
+ function p(e2) {
4310
4310
  return { [t]: () => ({ match: (t2) => ({ matched: Boolean(e2(t2)) }) }) };
4311
4311
  }
4312
- function p(...e2) {
4312
+ function y(...e2) {
4313
4313
  const r2 = "string" == typeof e2[0] ? e2[0] : void 0, i2 = 2 === e2.length ? e2[1] : "string" == typeof e2[0] ? void 0 : e2[0];
4314
4314
  return u({ [t]: () => ({ match: (t2) => {
4315
4315
  let e3 = { [null != r2 ? r2 : n]: t2 };
4316
- return { matched: void 0 === i2 || o(i2, t2, (t3, n2) => {
4316
+ return { matched: void 0 === i2 || s(i2, t2, (t3, n2) => {
4317
4317
  e3[t3] = n2;
4318
4318
  }), selections: e3 };
4319
- }, getSelectionKeys: () => [null != r2 ? r2 : n].concat(void 0 === i2 ? [] : s(i2)) }) });
4319
+ }, getSelectionKeys: () => [null != r2 ? r2 : n].concat(void 0 === i2 ? [] : o(i2)) }) });
4320
4320
  }
4321
4321
  function v(t2) {
4322
4322
  return "number" == typeof t2;
@@ -4327,51 +4327,51 @@ function b(t2) {
4327
4327
  function w(t2) {
4328
4328
  return "bigint" == typeof t2;
4329
4329
  }
4330
- function $(t2) {
4331
- return new z(t2, W);
4330
+ function z(t2) {
4331
+ return new I(t2, $);
4332
4332
  }
4333
- var t, e, n, r, i, o, s, c, f, g, S, O, j, E, K, x, A, P, T, k, B, _, N, W, z;
4333
+ var t, e, n, r, i, s, o, c, f, g, S, O, j, K, x, E, A, P, T, B, _, k, N, W, $, I;
4334
4334
  var init_dist = (0, import_chunk_WWAWV7DQ.__esm)({
4335
- "../../node_modules/.pnpm/ts-pattern@5.2.0/node_modules/ts-pattern/dist/index.js"() {
4335
+ "../../node_modules/.pnpm/ts-pattern@5.6.0/node_modules/ts-pattern/dist/index.js"() {
4336
4336
  "use strict";
4337
4337
  t = Symbol.for("@ts-pattern/matcher");
4338
4338
  e = Symbol.for("@ts-pattern/isVariadic");
4339
4339
  n = "@ts-pattern/anonymous-select-key";
4340
4340
  r = (t2) => Boolean(t2 && "object" == typeof t2);
4341
4341
  i = (e2) => e2 && !!e2[t];
4342
- o = (n2, s2, c2) => {
4342
+ s = (n2, o2, c2) => {
4343
4343
  if (i(n2)) {
4344
- const e2 = n2[t](), { matched: r2, selections: i2 } = e2.match(s2);
4344
+ const e2 = n2[t](), { matched: r2, selections: i2 } = e2.match(o2);
4345
4345
  return r2 && i2 && Object.keys(i2).forEach((t2) => c2(t2, i2[t2])), r2;
4346
4346
  }
4347
4347
  if (r(n2)) {
4348
- if (!r(s2)) return false;
4348
+ if (!r(o2)) return false;
4349
4349
  if (Array.isArray(n2)) {
4350
- if (!Array.isArray(s2)) return false;
4350
+ if (!Array.isArray(o2)) return false;
4351
4351
  let t2 = [], r2 = [], a2 = [];
4352
- for (const o2 of n2.keys()) {
4353
- const s3 = n2[o2];
4354
- i(s3) && s3[e] ? a2.push(s3) : a2.length ? r2.push(s3) : t2.push(s3);
4352
+ for (const s2 of n2.keys()) {
4353
+ const o3 = n2[s2];
4354
+ i(o3) && o3[e] ? a2.push(o3) : a2.length ? r2.push(o3) : t2.push(o3);
4355
4355
  }
4356
4356
  if (a2.length) {
4357
4357
  if (a2.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
4358
- if (s2.length < t2.length + r2.length) return false;
4359
- const e2 = s2.slice(0, t2.length), n3 = 0 === r2.length ? [] : s2.slice(-r2.length), i2 = s2.slice(t2.length, 0 === r2.length ? Infinity : -r2.length);
4360
- return t2.every((t3, n4) => o(t3, e2[n4], c2)) && r2.every((t3, e3) => o(t3, n3[e3], c2)) && (0 === a2.length || o(a2[0], i2, c2));
4358
+ if (o2.length < t2.length + r2.length) return false;
4359
+ const e2 = o2.slice(0, t2.length), n3 = 0 === r2.length ? [] : o2.slice(-r2.length), i2 = o2.slice(t2.length, 0 === r2.length ? Infinity : -r2.length);
4360
+ return t2.every((t3, n4) => s(t3, e2[n4], c2)) && r2.every((t3, e3) => s(t3, n3[e3], c2)) && (0 === a2.length || s(a2[0], i2, c2));
4361
4361
  }
4362
- return n2.length === s2.length && n2.every((t3, e2) => o(t3, s2[e2], c2));
4362
+ return n2.length === o2.length && n2.every((t3, e2) => s(t3, o2[e2], c2));
4363
4363
  }
4364
- return Object.keys(n2).every((e2) => {
4364
+ return Reflect.ownKeys(n2).every((e2) => {
4365
4365
  const r2 = n2[e2];
4366
- return (e2 in s2 || i(a2 = r2) && "optional" === a2[t]().matcherType) && o(r2, s2[e2], c2);
4366
+ return (e2 in o2 || i(a2 = r2) && "optional" === a2[t]().matcherType) && s(r2, o2[e2], c2);
4367
4367
  var a2;
4368
4368
  });
4369
4369
  }
4370
- return Object.is(s2, n2);
4370
+ return Object.is(o2, n2);
4371
4371
  };
4372
- s = (e2) => {
4373
- var n2, o2, a2;
4374
- return r(e2) ? i(e2) ? null != (n2 = null == (o2 = (a2 = e2[t]()).getSelectionKeys) ? void 0 : o2.call(a2)) ? n2 : [] : Array.isArray(e2) ? c(e2, s) : c(Object.values(e2), s) : [];
4372
+ o = (e2) => {
4373
+ var n2, s2, a2;
4374
+ return r(e2) ? i(e2) ? null != (n2 = null == (s2 = (a2 = e2[t]()).getSelectionKeys) ? void 0 : s2.call(a2)) ? n2 : [] : Array.isArray(e2) ? c(e2, o) : c(Object.values(e2), o) : [];
4375
4375
  };
4376
4376
  c = (t2, e2) => t2.reduce((t3, n2) => t3.concat(e2(n2)), []);
4377
4377
  f = (t2, e2) => {
@@ -4382,54 +4382,54 @@ var init_dist = (0, import_chunk_WWAWV7DQ.__esm)({
4382
4382
  for (const [n2, r2] of t2.entries()) if (!e2(r2, n2)) return false;
4383
4383
  return true;
4384
4384
  };
4385
- S = u(y(function(t2) {
4385
+ S = u(p(function(t2) {
4386
4386
  return true;
4387
4387
  }));
4388
4388
  O = S;
4389
4389
  j = (t2) => Object.assign(u(t2), { startsWith: (e2) => {
4390
- return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.startsWith(n2)))));
4390
+ return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.startsWith(n2)))));
4391
4391
  var n2;
4392
4392
  }, endsWith: (e2) => {
4393
- return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.endsWith(n2)))));
4393
+ return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.endsWith(n2)))));
4394
4394
  var n2;
4395
- }, minLength: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length >= t3))(e2))), length: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length === t3))(e2))), maxLength: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length <= t3))(e2))), includes: (e2) => {
4396
- return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.includes(n2)))));
4395
+ }, minLength: (e2) => j(m(t2, ((t3) => p((e3) => b(e3) && e3.length >= t3))(e2))), length: (e2) => j(m(t2, ((t3) => p((e3) => b(e3) && e3.length === t3))(e2))), maxLength: (e2) => j(m(t2, ((t3) => p((e3) => b(e3) && e3.length <= t3))(e2))), includes: (e2) => {
4396
+ return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.includes(n2)))));
4397
4397
  var n2;
4398
4398
  }, regex: (e2) => {
4399
- return j(m(t2, (n2 = e2, y((t3) => b(t3) && Boolean(t3.match(n2))))));
4399
+ return j(m(t2, (n2 = e2, p((t3) => b(t3) && Boolean(t3.match(n2))))));
4400
4400
  var n2;
4401
4401
  } });
4402
- E = j(y(b));
4403
- K = (t2) => Object.assign(u(t2), { between: (e2, n2) => K(m(t2, ((t3, e3) => y((n3) => v(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 < t3))(e2))), gt: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 > t3))(e2))), lte: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 <= t3))(e2))), gte: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 >= t3))(e2))), int: () => K(m(t2, y((t3) => v(t3) && Number.isInteger(t3)))), finite: () => K(m(t2, y((t3) => v(t3) && Number.isFinite(t3)))), positive: () => K(m(t2, y((t3) => v(t3) && t3 > 0))), negative: () => K(m(t2, y((t3) => v(t3) && t3 < 0))) });
4404
- x = K(y(v));
4405
- A = (t2) => Object.assign(u(t2), { between: (e2, n2) => A(m(t2, ((t3, e3) => y((n3) => w(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 < t3))(e2))), gt: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 > t3))(e2))), lte: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 <= t3))(e2))), gte: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 >= t3))(e2))), positive: () => A(m(t2, y((t3) => w(t3) && t3 > 0))), negative: () => A(m(t2, y((t3) => w(t3) && t3 < 0))) });
4406
- P = A(y(w));
4407
- T = u(y(function(t2) {
4402
+ K = j(p(b));
4403
+ x = (t2) => Object.assign(u(t2), { between: (e2, n2) => x(m(t2, ((t3, e3) => p((n3) => v(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 < t3))(e2))), gt: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 > t3))(e2))), lte: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 <= t3))(e2))), gte: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 >= t3))(e2))), int: () => x(m(t2, p((t3) => v(t3) && Number.isInteger(t3)))), finite: () => x(m(t2, p((t3) => v(t3) && Number.isFinite(t3)))), positive: () => x(m(t2, p((t3) => v(t3) && t3 > 0))), negative: () => x(m(t2, p((t3) => v(t3) && t3 < 0))) });
4404
+ E = x(p(v));
4405
+ A = (t2) => Object.assign(u(t2), { between: (e2, n2) => A(m(t2, ((t3, e3) => p((n3) => w(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 < t3))(e2))), gt: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 > t3))(e2))), lte: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 <= t3))(e2))), gte: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 >= t3))(e2))), positive: () => A(m(t2, p((t3) => w(t3) && t3 > 0))), negative: () => A(m(t2, p((t3) => w(t3) && t3 < 0))) });
4406
+ P = A(p(w));
4407
+ T = u(p(function(t2) {
4408
4408
  return "boolean" == typeof t2;
4409
4409
  }));
4410
- k = u(y(function(t2) {
4410
+ B = u(p(function(t2) {
4411
4411
  return "symbol" == typeof t2;
4412
4412
  }));
4413
- B = u(y(function(t2) {
4413
+ _ = u(p(function(t2) {
4414
4414
  return null == t2;
4415
4415
  }));
4416
- _ = u(y(function(t2) {
4416
+ k = u(p(function(t2) {
4417
4417
  return null != t2;
4418
4418
  }));
4419
- N = { __proto__: null, matcher: t, optional: l, array: function(...e2) {
4420
- return h({ [t]: () => ({ match: (t2) => {
4419
+ N = { __proto__: null, matcher: t, optional: h, array: function(...e2) {
4420
+ return l({ [t]: () => ({ match: (t2) => {
4421
4421
  if (!Array.isArray(t2)) return { matched: false };
4422
4422
  if (0 === e2.length) return { matched: true };
4423
4423
  const n2 = e2[0];
4424
4424
  let r2 = {};
4425
- if (0 === t2.length) return s(n2).forEach((t3) => {
4425
+ if (0 === t2.length) return o(n2).forEach((t3) => {
4426
4426
  r2[t3] = [];
4427
4427
  }), { matched: true, selections: r2 };
4428
4428
  const i2 = (t3, e3) => {
4429
4429
  r2[t3] = (r2[t3] || []).concat([e3]);
4430
4430
  };
4431
- return { matched: t2.every((t3) => o(n2, t3, i2)), selections: r2 };
4432
- }, getSelectionKeys: () => 0 === e2.length ? [] : s(e2[0]) }) });
4431
+ return { matched: t2.every((t3) => s(n2, t3, i2)), selections: r2 };
4432
+ }, getSelectionKeys: () => 0 === e2.length ? [] : o(e2[0]) }) });
4433
4433
  }, set: function(...e2) {
4434
4434
  return u({ [t]: () => ({ match: (t2) => {
4435
4435
  if (!(t2 instanceof Set)) return { matched: false };
@@ -4439,8 +4439,8 @@ var init_dist = (0, import_chunk_WWAWV7DQ.__esm)({
4439
4439
  const r2 = (t3, e3) => {
4440
4440
  n2[t3] = (n2[t3] || []).concat([e3]);
4441
4441
  }, i2 = e2[0];
4442
- return { matched: f(t2, (t3) => o(i2, t3, r2)), selections: n2 };
4443
- }, getSelectionKeys: () => 0 === e2.length ? [] : s(e2[0]) }) });
4442
+ return { matched: f(t2, (t3) => s(i2, t3, r2)), selections: n2 };
4443
+ }, getSelectionKeys: () => 0 === e2.length ? [] : o(e2[0]) }) });
4444
4444
  }, map: function(...e2) {
4445
4445
  return u({ [t]: () => ({ match: (t2) => {
4446
4446
  if (!(t2 instanceof Map)) return { matched: false };
@@ -4452,24 +4452,35 @@ var init_dist = (0, import_chunk_WWAWV7DQ.__esm)({
4452
4452
  if (0 === e2.length) return { matched: true };
4453
4453
  var i2;
4454
4454
  if (1 === e2.length) throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${null == (i2 = e2[0]) ? void 0 : i2.toString()}`);
4455
- const [s2, c2] = e2;
4455
+ const [o2, c2] = e2;
4456
4456
  return { matched: g(t2, (t3, e3) => {
4457
- const n3 = o(s2, e3, r2), i3 = o(c2, t3, r2);
4457
+ const n3 = s(o2, e3, r2), i3 = s(c2, t3, r2);
4458
4458
  return n3 && i3;
4459
4459
  }), selections: n2 };
4460
- }, getSelectionKeys: () => 0 === e2.length ? [] : [...s(e2[0]), ...s(e2[1])] }) });
4460
+ }, getSelectionKeys: () => 0 === e2.length ? [] : [...o(e2[0]), ...o(e2[1])] }) });
4461
4461
  }, intersection: m, union: d, not: function(e2) {
4462
- return u({ [t]: () => ({ match: (t2) => ({ matched: !o(e2, t2, () => {
4462
+ return u({ [t]: () => ({ match: (t2) => ({ matched: !s(e2, t2, () => {
4463
4463
  }) }), getSelectionKeys: () => [], matcherType: "not" }) });
4464
- }, when: y, select: p, any: S, _: O, string: E, number: x, bigint: P, boolean: T, symbol: k, nullish: B, nonNullable: _, instanceOf: function(t2) {
4465
- return u(y(/* @__PURE__ */ function(t3) {
4464
+ }, when: p, select: y, any: S, _: O, string: K, number: E, bigint: P, boolean: T, symbol: B, nullish: _, nonNullable: k, instanceOf: function(t2) {
4465
+ return u(p(/* @__PURE__ */ function(t3) {
4466
4466
  return (e2) => e2 instanceof t3;
4467
4467
  }(t2)));
4468
4468
  }, shape: function(t2) {
4469
- return u(y(a(t2)));
4469
+ return u(p(a(t2)));
4470
4470
  } };
4471
- W = { matched: false, value: void 0 };
4472
- z = class _z {
4471
+ W = class extends Error {
4472
+ constructor(t2) {
4473
+ let e2;
4474
+ try {
4475
+ e2 = JSON.stringify(t2);
4476
+ } catch (n2) {
4477
+ e2 = t2;
4478
+ }
4479
+ super(`Pattern matching error: no pattern matches value ${e2}`), this.input = void 0, this.input = t2;
4480
+ }
4481
+ };
4482
+ $ = { matched: false, value: void 0 };
4483
+ I = class _I {
4473
4484
  constructor(t2, e2) {
4474
4485
  this.input = void 0, this.state = void 0, this.input = t2, this.state = e2;
4475
4486
  }
@@ -4478,29 +4489,23 @@ var init_dist = (0, import_chunk_WWAWV7DQ.__esm)({
4478
4489
  const e2 = t2[t2.length - 1], r2 = [t2[0]];
4479
4490
  let i2;
4480
4491
  3 === t2.length && "function" == typeof t2[1] ? i2 = t2[1] : t2.length > 2 && r2.push(...t2.slice(1, t2.length - 1));
4481
- let s2 = false, c2 = {};
4492
+ let o2 = false, c2 = {};
4482
4493
  const a2 = (t3, e3) => {
4483
- s2 = true, c2[t3] = e3;
4484
- }, u2 = !r2.some((t3) => o(t3, this.input, a2)) || i2 && !Boolean(i2(this.input)) ? W : { matched: true, value: e2(s2 ? n in c2 ? c2[n] : c2 : this.input, this.input) };
4485
- return new _z(this.input, u2);
4494
+ o2 = true, c2[t3] = e3;
4495
+ }, u2 = !r2.some((t3) => s(t3, this.input, a2)) || i2 && !Boolean(i2(this.input)) ? $ : { matched: true, value: e2(o2 ? n in c2 ? c2[n] : c2 : this.input, this.input) };
4496
+ return new _I(this.input, u2);
4486
4497
  }
4487
4498
  when(t2, e2) {
4488
4499
  if (this.state.matched) return this;
4489
4500
  const n2 = Boolean(t2(this.input));
4490
- return new _z(this.input, n2 ? { matched: true, value: e2(this.input, this.input) } : W);
4501
+ return new _I(this.input, n2 ? { matched: true, value: e2(this.input, this.input) } : $);
4491
4502
  }
4492
4503
  otherwise(t2) {
4493
4504
  return this.state.matched ? this.state.value : t2(this.input);
4494
4505
  }
4495
4506
  exhaustive() {
4496
4507
  if (this.state.matched) return this.state.value;
4497
- let t2;
4498
- try {
4499
- t2 = JSON.stringify(this.input);
4500
- } catch (e2) {
4501
- t2 = this.input;
4502
- }
4503
- throw new Error(`Pattern matching error: no pattern matches value ${t2}`);
4508
+ throw new W(this.input);
4504
4509
  }
4505
4510
  run() {
4506
4511
  return this.exhaustive();
@@ -4544,7 +4549,7 @@ async function createViewsIO(viewsDir, views) {
4544
4549
  if (E2.isRight(either)) {
4545
4550
  return { viewFilesToKeep };
4546
4551
  }
4547
- const error = $(either.left).with({ type: "fs-create-dir" }, (e2) => {
4552
+ const error = z(either.left).with({ type: "fs-create-dir" }, (e2) => {
4548
4553
  throw new Error(`Error creating the directory: ${e2.meta.dir}.
4549
4554
  ${e2.error}.`);
4550
4555
  }).with({ type: "fs-write-file" }, (e2) => {
@@ -4570,7 +4575,7 @@ async function cleanLeftoversIO(viewsDir, viewFilesToKeep = []) {
4570
4575
  if (E2.isRight(either)) {
4571
4576
  return;
4572
4577
  }
4573
- const error = $(either.left).with({ type: "fs-remove-empty-dirs" }, (e2) => {
4578
+ const error = z(either.left).with({ type: "fs-remove-empty-dirs" }, (e2) => {
4574
4579
  throw new Error(`Error removing empty directories in: ${e2.meta.dir}.
4575
4580
  ${e2.error}.`);
4576
4581
  }).with({ type: "fs-remove-file" }, (e2) => {
@@ -26,13 +26,13 @@ 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_KEPR65SW_exports = {};
30
- __export(chunk_KEPR65SW_exports, {
29
+ var chunk_ET2H4E2O_exports = {};
30
+ __export(chunk_ET2H4E2O_exports, {
31
31
  DbPush: () => DbPush,
32
32
  init_DbPush: () => init_DbPush
33
33
  });
34
- module.exports = __toCommonJS(chunk_KEPR65SW_exports);
35
- var import_chunk_LJOMIPJW = require("./chunk-LJOMIPJW.js");
34
+ module.exports = __toCommonJS(chunk_ET2H4E2O_exports);
35
+ var import_chunk_NCDRH4BH = require("./chunk-NCDRH4BH.js");
36
36
  var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
37
37
  var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
38
38
  var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
@@ -45,7 +45,7 @@ var _DbPush, DbPush;
45
45
  var init_DbPush = (0, import_chunk_WWAWV7DQ.__esm)({
46
46
  "src/commands/DbPush.ts"() {
47
47
  (0, import_chunk_6TE2RIPN.init_colors)();
48
- (0, import_chunk_LJOMIPJW.init_Migrate)();
48
+ (0, import_chunk_NCDRH4BH.init_Migrate)();
49
49
  (0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
50
50
  (0, import_chunk_U374EXYQ.init_errors)();
51
51
  (0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
@@ -79,7 +79,7 @@ var init_DbPush = (0, import_chunk_WWAWV7DQ.__esm)({
79
79
  const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
80
80
  const datasourceInfo = await (0, import_chunk_KEBB7UIB.getDatasourceInfo)({ schemaPath });
81
81
  (0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
82
- const migrate = new import_chunk_LJOMIPJW.Migrate(schemaPath);
82
+ const migrate = new import_chunk_NCDRH4BH.Migrate(schemaPath);
83
83
  try {
84
84
  const wasDbCreated = await (0, import_chunk_KEBB7UIB.ensureDatabaseExists)("push", schemaPath);
85
85
  if (wasDbCreated) {
@@ -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_W732A6L3_exports = {};
30
- __export(chunk_W732A6L3_exports, {
29
+ var chunk_KMWCE3CJ_exports = {};
30
+ __export(chunk_KMWCE3CJ_exports, {
31
31
  MigrateDiff: () => MigrateDiff,
32
32
  init_MigrateDiff: () => init_MigrateDiff
33
33
  });
34
- module.exports = __toCommonJS(chunk_W732A6L3_exports);
34
+ module.exports = __toCommonJS(chunk_KMWCE3CJ_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
  }
@@ -6956,26 +6956,26 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
6956
6956
  b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;
6957
6957
  var x = r * 0.4124 + g * 0.3576 + b * 0.1805;
6958
6958
  var y = r * 0.2126 + g * 0.7152 + b * 0.0722;
6959
- var z = r * 0.0193 + g * 0.1192 + b * 0.9505;
6960
- 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];
6961
6961
  };
6962
6962
  convert.rgb.lab = function(rgb) {
6963
6963
  var xyz = convert.rgb.xyz(rgb);
6964
6964
  var x = xyz[0];
6965
6965
  var y = xyz[1];
6966
- var z = xyz[2];
6966
+ var z2 = xyz[2];
6967
6967
  var l;
6968
6968
  var a;
6969
6969
  var b;
6970
6970
  x /= 95.047;
6971
6971
  y /= 100;
6972
- z /= 108.883;
6972
+ z2 /= 108.883;
6973
6973
  x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
6974
6974
  y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;
6975
- 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;
6976
6976
  l = 116 * y - 16;
6977
6977
  a = 500 * (x - y);
6978
- b = 200 * (y - z);
6978
+ b = 200 * (y - z2);
6979
6979
  return [l, a, b];
6980
6980
  };
6981
6981
  convert.hsl.rgb = function(hsl) {
@@ -7150,13 +7150,13 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
7150
7150
  convert.xyz.rgb = function(xyz) {
7151
7151
  var x = xyz[0] / 100;
7152
7152
  var y = xyz[1] / 100;
7153
- var z = xyz[2] / 100;
7153
+ var z2 = xyz[2] / 100;
7154
7154
  var r;
7155
7155
  var g;
7156
7156
  var b;
7157
- r = x * 3.2406 + y * -1.5372 + z * -0.4986;
7158
- g = x * -0.9689 + y * 1.8758 + z * 0.0415;
7159
- 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;
7160
7160
  r = r > 31308e-7 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : r * 12.92;
7161
7161
  g = g > 31308e-7 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : g * 12.92;
7162
7162
  b = b > 31308e-7 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : b * 12.92;
@@ -7168,19 +7168,19 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
7168
7168
  convert.xyz.lab = function(xyz) {
7169
7169
  var x = xyz[0];
7170
7170
  var y = xyz[1];
7171
- var z = xyz[2];
7171
+ var z2 = xyz[2];
7172
7172
  var l;
7173
7173
  var a;
7174
7174
  var b;
7175
7175
  x /= 95.047;
7176
7176
  y /= 100;
7177
- z /= 108.883;
7177
+ z2 /= 108.883;
7178
7178
  x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
7179
7179
  y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;
7180
- 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;
7181
7181
  l = 116 * y - 16;
7182
7182
  a = 500 * (x - y);
7183
- b = 200 * (y - z);
7183
+ b = 200 * (y - z2);
7184
7184
  return [l, a, b];
7185
7185
  };
7186
7186
  convert.lab.xyz = function(lab) {
@@ -7189,20 +7189,20 @@ var require_conversions = (0, import_chunk_WWAWV7DQ.__commonJS)({
7189
7189
  var b = lab[2];
7190
7190
  var x;
7191
7191
  var y;
7192
- var z;
7192
+ var z2;
7193
7193
  y = (l + 16) / 116;
7194
7194
  x = a / 500 + y;
7195
- z = y - b / 200;
7195
+ z2 = y - b / 200;
7196
7196
  var y2 = Math.pow(y, 3);
7197
7197
  var x2 = Math.pow(x, 3);
7198
- var z2 = Math.pow(z, 3);
7198
+ var z22 = Math.pow(z2, 3);
7199
7199
  y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
7200
7200
  x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
7201
- z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
7201
+ z2 = z22 > 8856e-6 ? z22 : (z2 - 16 / 116) / 7.787;
7202
7202
  x *= 95.047;
7203
7203
  y *= 100;
7204
- z *= 108.883;
7205
- return [x, y, z];
7204
+ z2 *= 108.883;
7205
+ return [x, y, z2];
7206
7206
  };
7207
7207
  convert.lab.lch = function(lab) {
7208
7208
  var l = lab[0];
@@ -11603,7 +11603,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
11603
11603
  "terminal-link": "2.1.1",
11604
11604
  tmp: "0.2.3",
11605
11605
  "ts-node": "10.9.2",
11606
- "ts-pattern": "5.2.0",
11606
+ "ts-pattern": "5.6.0",
11607
11607
  "ts-toolbelt": "9.6.0",
11608
11608
  typescript: "5.4.5",
11609
11609
  yarn: "1.22.22"
@@ -11692,12 +11692,12 @@ function parseQueryEngineError({ errorOutput, reason }) {
11692
11692
  ),
11693
11693
  map((errorOutputAsJSON) => {
11694
11694
  const defaultMessage = (0, import_chunk_6TE2RIPN.red)((0, import_chunk_6TE2RIPN.bold)(relativizePathInPSLError(errorOutputAsJSON.message)));
11695
- 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) => {
11696
11696
  return {
11697
11697
  reason: createSchemaValidationError(reason),
11698
11698
  errorCode: eJSON.error_code
11699
11699
  };
11700
- }).with({ error_code: import_chunk_LVFPGUOH.N.string }, (eJSON) => {
11700
+ }).with({ error_code: import_chunk_E3UZYEGF.N.string }, (eJSON) => {
11701
11701
  return {
11702
11702
  reason,
11703
11703
  errorCode: eJSON.error_code
@@ -11718,9 +11718,9 @@ var init_queryEngineCommons = (0, import_chunk_WWAWV7DQ.__esm)({
11718
11718
  "../internals/src/engine-commands/queryEngineCommons.ts"() {
11719
11719
  "use strict";
11720
11720
  init_Either();
11721
- 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)());
11722
11722
  (0, import_chunk_6TE2RIPN.init_colors)();
11723
- (0, import_chunk_LVFPGUOH.init_dist)();
11723
+ (0, import_chunk_E3UZYEGF.init_dist)();
11724
11724
  init_relativizePathInPSLError();
11725
11725
  createDebugErrorType = (debug4, fnName) => ({ type, reason, error }) => {
11726
11726
  debug4(`error of type "${type}" in ${fnName}:
@@ -11786,7 +11786,7 @@ async function getConfig(options) {
11786
11786
  }
11787
11787
  return Promise.resolve(data);
11788
11788
  }
11789
- 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) => {
11790
11790
  debugErrorType(e);
11791
11791
  if (isWasmPanic(e.error)) {
11792
11792
  const { message, stack } = getWasmError(e.error);
@@ -11851,9 +11851,9 @@ var init_getConfig = (0, import_chunk_WWAWV7DQ.__esm)({
11851
11851
  "../internals/src/engine-commands/getConfig.ts"() {
11852
11852
  "use strict";
11853
11853
  init_Either();
11854
- 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)());
11855
11855
  (0, import_chunk_6TE2RIPN.init_colors)();
11856
- (0, import_chunk_LVFPGUOH.init_dist)();
11856
+ (0, import_chunk_E3UZYEGF.init_dist)();
11857
11857
  init_panic();
11858
11858
  init_schemaFileInput();
11859
11859
  init_wasm();
@@ -11864,7 +11864,7 @@ var init_getConfig = (0, import_chunk_WWAWV7DQ.__esm)({
11864
11864
  SCHEMA_VALIDATION_ERROR_CODE = "P1012";
11865
11865
  GetConfigError = class extends Error {
11866
11866
  constructor(params) {
11867
- 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 }) => {
11868
11868
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
11869
11869
  return `${reason}
11870
11870
  ${errorCodeMessage}
@@ -12143,7 +12143,7 @@ var init_MigrateDiff = (0, import_chunk_WWAWV7DQ.__esm)({
12143
12143
  import_fs_jetpack = (0, import_chunk_WWAWV7DQ.__toESM)(require_main());
12144
12144
  (0, import_chunk_6TE2RIPN.init_colors)();
12145
12145
  init_getSchema();
12146
- (0, import_chunk_LJOMIPJW.init_Migrate)();
12146
+ (0, import_chunk_NCDRH4BH.init_Migrate)();
12147
12147
  (0, import_chunk_TKAGMA5K.init_captureStdout)();
12148
12148
  debug3 = (0, import_debug3.default)("prisma:migrate:diff");
12149
12149
  helpOptions = (0, import_internals.format)(
@@ -12321,7 +12321,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Flags")}
12321
12321
  url: `file:${d1Database}`
12322
12322
  };
12323
12323
  }
12324
- const migrate = new import_chunk_LJOMIPJW.Migrate();
12324
+ const migrate = new import_chunk_NCDRH4BH.Migrate();
12325
12325
  const captureStdout = new import_chunk_TKAGMA5K.CaptureStdout();
12326
12326
  const outputPath = args["--output"];
12327
12327
  const isOutputDefined = Boolean(outputPath);