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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/dist/Migrate.js +4 -4
  2. package/dist/SchemaEngine.js +4 -4
  3. package/dist/bin.js +39 -40
  4. package/dist/{chunk-EXUBPCXZ.js → chunk-3H4RLVCQ.js} +12 -12
  5. package/dist/{chunk-ZLGLVUFD.js → chunk-E2XKFV2C.js} +8 -8
  6. package/dist/{chunk-XVL5RF2T.js → chunk-GUBDW6S7.js} +11 -11
  7. package/dist/{chunk-BAVMZZAR.js → chunk-HODZFC64.js} +7 -7
  8. package/dist/{chunk-BAFPAACN.js → chunk-ILJRJJ3S.js} +4 -4
  9. package/dist/{chunk-LLGEQ76N.js → chunk-ILQWQHQO.js} +11 -11
  10. package/dist/{chunk-E3KHFUFQ.js → chunk-J77IRNPE.js} +9 -124
  11. package/dist/{chunk-76XWADEV.js → chunk-KEPR65SW.js} +6 -6
  12. package/dist/{chunk-NIFQA5SB.js → chunk-LAHPBQAT.js} +61 -143
  13. package/dist/{chunk-MWEO3VUS.js → chunk-LJOMIPJW.js} +7 -7
  14. package/dist/{chunk-GJN3CSXW.js → chunk-NKL64AIB.js} +6 -6
  15. package/dist/{chunk-VWV2NY26.js → chunk-NKQGJ3AE.js} +7 -3
  16. package/dist/{chunk-XLLUFIQK.js → chunk-PCJYN6LT.js} +6 -5
  17. package/dist/{chunk-SV5GANSI.js → chunk-PFEH6ILG.js} +6 -6
  18. package/dist/{chunk-ZBOJAYON.js → chunk-PNBMPQYH.js} +6 -6
  19. package/dist/{chunk-W3ROQKBN.js → chunk-V7DE6JTG.js} +4 -4
  20. package/dist/{chunk-WD642UYX.js → chunk-WDEGF6OA.js} +62 -144
  21. package/dist/{chunk-UJWMQPUH.js → chunk-X6GGREJW.js} +6 -6
  22. package/dist/{chunk-WIZM7TFT.js → chunk-YKUZUAXA.js} +443 -55
  23. package/dist/{chunk-YOW3VBYS.js → chunk-Z4OLB2H4.js} +6 -6
  24. package/dist/commands/DbExecute.js +5 -5
  25. package/dist/commands/DbPull.js +6 -6
  26. package/dist/commands/DbPush.js +5 -5
  27. package/dist/commands/DbSeed.js +4 -5
  28. package/dist/commands/MigrateDeploy.js +5 -5
  29. package/dist/commands/MigrateDev.js +6 -7
  30. package/dist/commands/MigrateDiff.js +6 -7
  31. package/dist/commands/MigrateReset.js +6 -7
  32. package/dist/commands/MigrateResolve.js +5 -5
  33. package/dist/commands/MigrateStatus.js +5 -5
  34. package/dist/index.js +45 -46
  35. package/dist/internals/src/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
  36. package/dist/{multipart-parser-KKECAI5D.js → multipart-parser-73VM3J4A.js} +10 -7
  37. package/dist/{multipart-parser-47FFAP42-P3F6TPHJ.js → multipart-parser-ITART6UP-FFJAMHWE.js} +25 -22
  38. package/dist/utils/getDatabaseVersionSafe.js +4 -4
  39. package/dist/utils/introspectSql.js +3 -3
  40. package/dist/utils/removeSchemaFiles.js +3 -3
  41. package/dist/utils/saveSchemaFiles.js +3 -3
  42. package/dist/utils/seed.js +6 -7
  43. package/dist/utils/setupMSSQL.js +62 -59
  44. package/dist/utils/setupMongo.js +5 -4
  45. package/dist/utils/setupMysql.js +45 -0
  46. package/package.json +9 -10
  47. package/dist/chunk-EFPE3Q7J.js +0 -424
  48. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +0 -9
@@ -16,16 +16,16 @@ 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_E3KHFUFQ_exports = {};
20
- __export(chunk_E3KHFUFQ_exports, {
21
- require_ms: () => require_ms2,
19
+ var chunk_J77IRNPE_exports = {};
20
+ __export(chunk_J77IRNPE_exports, {
21
+ require_ms: () => require_ms,
22
22
  require_src: () => require_src
23
23
  });
24
- module.exports = __toCommonJS(chunk_E3KHFUFQ_exports);
24
+ module.exports = __toCommonJS(chunk_J77IRNPE_exports);
25
25
  var import_chunk_RM5LJIEV = require("./chunk-RM5LJIEV.js");
26
26
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
27
27
  var require_ms = (0, import_chunk_WWAWV7DQ.__commonJS)({
28
- "../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports, module2) {
28
+ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
29
29
  "use strict";
30
30
  var s = 1e3;
31
31
  var m = s * 60;
@@ -140,7 +140,7 @@ var require_ms = (0, import_chunk_WWAWV7DQ.__commonJS)({
140
140
  }
141
141
  });
142
142
  var require_common = (0, import_chunk_WWAWV7DQ.__commonJS)({
143
- "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/common.js"(exports, module2) {
143
+ "../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js"(exports, module2) {
144
144
  "use strict";
145
145
  function setup(env) {
146
146
  createDebug.debug = createDebug;
@@ -302,7 +302,7 @@ var require_common = (0, import_chunk_WWAWV7DQ.__commonJS)({
302
302
  }
303
303
  });
304
304
  var require_browser = (0, import_chunk_WWAWV7DQ.__commonJS)({
305
- "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/browser.js"(exports, module2) {
305
+ "../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js"(exports, module2) {
306
306
  "use strict";
307
307
  exports.formatArgs = formatArgs;
308
308
  exports.save = save;
@@ -583,7 +583,7 @@ var require_supports_color = (0, import_chunk_WWAWV7DQ.__commonJS)({
583
583
  }
584
584
  });
585
585
  var require_node = (0, import_chunk_WWAWV7DQ.__commonJS)({
586
- "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/node.js"(exports, module2) {
586
+ "../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js"(exports, module2) {
587
587
  "use strict";
588
588
  var tty = (0, import_chunk_WWAWV7DQ.__require)("tty");
589
589
  var util = (0, import_chunk_WWAWV7DQ.__require)("util");
@@ -756,7 +756,7 @@ var require_node = (0, import_chunk_WWAWV7DQ.__commonJS)({
756
756
  }
757
757
  });
758
758
  var require_src = (0, import_chunk_WWAWV7DQ.__commonJS)({
759
- "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/index.js"(exports, module2) {
759
+ "../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js"(exports, module2) {
760
760
  "use strict";
761
761
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
762
762
  module2.exports = require_browser();
@@ -765,118 +765,3 @@ var require_src = (0, import_chunk_WWAWV7DQ.__commonJS)({
765
765
  }
766
766
  }
767
767
  });
768
- var require_ms2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
769
- "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
770
- "use strict";
771
- var s = 1e3;
772
- var m = s * 60;
773
- var h = m * 60;
774
- var d = h * 24;
775
- var w = d * 7;
776
- var y = d * 365.25;
777
- module2.exports = function(val, options) {
778
- options = options || {};
779
- var type = typeof val;
780
- if (type === "string" && val.length > 0) {
781
- return parse(val);
782
- } else if (type === "number" && isFinite(val)) {
783
- return options.long ? fmtLong(val) : fmtShort(val);
784
- }
785
- throw new Error(
786
- "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
787
- );
788
- };
789
- function parse(str) {
790
- str = String(str);
791
- if (str.length > 100) {
792
- return;
793
- }
794
- var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
795
- str
796
- );
797
- if (!match) {
798
- return;
799
- }
800
- var n = parseFloat(match[1]);
801
- var type = (match[2] || "ms").toLowerCase();
802
- switch (type) {
803
- case "years":
804
- case "year":
805
- case "yrs":
806
- case "yr":
807
- case "y":
808
- return n * y;
809
- case "weeks":
810
- case "week":
811
- case "w":
812
- return n * w;
813
- case "days":
814
- case "day":
815
- case "d":
816
- return n * d;
817
- case "hours":
818
- case "hour":
819
- case "hrs":
820
- case "hr":
821
- case "h":
822
- return n * h;
823
- case "minutes":
824
- case "minute":
825
- case "mins":
826
- case "min":
827
- case "m":
828
- return n * m;
829
- case "seconds":
830
- case "second":
831
- case "secs":
832
- case "sec":
833
- case "s":
834
- return n * s;
835
- case "milliseconds":
836
- case "millisecond":
837
- case "msecs":
838
- case "msec":
839
- case "ms":
840
- return n;
841
- default:
842
- return void 0;
843
- }
844
- }
845
- function fmtShort(ms) {
846
- var msAbs = Math.abs(ms);
847
- if (msAbs >= d) {
848
- return Math.round(ms / d) + "d";
849
- }
850
- if (msAbs >= h) {
851
- return Math.round(ms / h) + "h";
852
- }
853
- if (msAbs >= m) {
854
- return Math.round(ms / m) + "m";
855
- }
856
- if (msAbs >= s) {
857
- return Math.round(ms / s) + "s";
858
- }
859
- return ms + "ms";
860
- }
861
- function fmtLong(ms) {
862
- var msAbs = Math.abs(ms);
863
- if (msAbs >= d) {
864
- return plural(ms, msAbs, d, "day");
865
- }
866
- if (msAbs >= h) {
867
- return plural(ms, msAbs, h, "hour");
868
- }
869
- if (msAbs >= m) {
870
- return plural(ms, msAbs, m, "minute");
871
- }
872
- if (msAbs >= s) {
873
- return plural(ms, msAbs, s, "second");
874
- }
875
- return ms + " ms";
876
- }
877
- function plural(ms, msAbs, n, name) {
878
- var isPlural = msAbs >= n * 1.5;
879
- return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
880
- }
881
- }
882
- });
@@ -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_76XWADEV_exports = {};
30
- __export(chunk_76XWADEV_exports, {
29
+ var chunk_KEPR65SW_exports = {};
30
+ __export(chunk_KEPR65SW_exports, {
31
31
  DbPush: () => DbPush,
32
32
  init_DbPush: () => init_DbPush
33
33
  });
34
- module.exports = __toCommonJS(chunk_76XWADEV_exports);
35
- var import_chunk_MWEO3VUS = require("./chunk-MWEO3VUS.js");
34
+ module.exports = __toCommonJS(chunk_KEPR65SW_exports);
35
+ var import_chunk_LJOMIPJW = require("./chunk-LJOMIPJW.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_MWEO3VUS.init_Migrate)();
48
+ (0, import_chunk_LJOMIPJW.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_MWEO3VUS.Migrate(schemaPath);
82
+ const migrate = new import_chunk_LJOMIPJW.Migrate(schemaPath);
83
83
  try {
84
84
  const wasDbCreated = await (0, import_chunk_KEBB7UIB.ensureDatabaseExists)("push", schemaPath);
85
85
  if (wasDbCreated) {