@prisma/migrate 6.18.0-dev.12 → 6.18.0-dev.14
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.
- package/dist/bin.js +3 -3
- package/dist/{chunk-IVZSWYCG.js → chunk-H5CDIF7X.js} +31 -55
- package/dist/chunk-OP2BDF75.js +792 -0
- package/dist/commands/MigrateDiff.js +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/setupMSSQL.js +774 -778
- package/dist/utils/setupMongo.js +164 -692
- package/package.json +11 -11
- package/dist/chunk-Y5WDJ6P7.js +0 -263
package/dist/bin.js
CHANGED
|
@@ -28,7 +28,7 @@ var import_chunk_M22W35EN = require("./chunk-M22W35EN.js");
|
|
|
28
28
|
var import_chunk_VSNIZVYG = require("./chunk-VSNIZVYG.js");
|
|
29
29
|
var import_chunk_C3722PDA = require("./chunk-C3722PDA.js");
|
|
30
30
|
var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
|
|
31
|
-
var
|
|
31
|
+
var import_chunk_H5CDIF7X = require("./chunk-H5CDIF7X.js");
|
|
32
32
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
33
33
|
var import_chunk_5ETYUPYJ = require("./chunk-5ETYUPYJ.js");
|
|
34
34
|
var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
|
|
@@ -72,7 +72,7 @@ var import_config = require("@prisma/config");
|
|
|
72
72
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
73
73
|
var import_engines_version = require("@prisma/engines-version");
|
|
74
74
|
var import_internals = require("@prisma/internals");
|
|
75
|
-
var version = "6.18.0-dev.
|
|
75
|
+
var version = "6.18.0-dev.14";
|
|
76
76
|
process.on("uncaughtException", (e) => {
|
|
77
77
|
console.log(e);
|
|
78
78
|
});
|
|
@@ -99,7 +99,7 @@ async function main() {
|
|
|
99
99
|
resolve: import_chunk_VDFDEQDX.MigrateResolve.new(),
|
|
100
100
|
reset: import_chunk_5ETYUPYJ.MigrateReset.new(),
|
|
101
101
|
deploy: import_chunk_M22W35EN.MigrateDeploy.new(),
|
|
102
|
-
diff:
|
|
102
|
+
diff: import_chunk_H5CDIF7X.MigrateDiff.new()
|
|
103
103
|
}),
|
|
104
104
|
db: import_chunk_EJG7GKM7.DbCommand.new({
|
|
105
105
|
execute: import_chunk_MCGCRK5I.DbExecute.new(),
|
|
@@ -26,11 +26,11 @@ 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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_H5CDIF7X_exports = {};
|
|
30
|
+
__export(chunk_H5CDIF7X_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_H5CDIF7X_exports);
|
|
34
34
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
35
35
|
var import_chunk_PSCP5S54 = require("./chunk-PSCP5S54.js");
|
|
36
36
|
var import_chunk_GGA2F64G = require("./chunk-GGA2F64G.js");
|
|
@@ -1117,7 +1117,7 @@ var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1117
1117
|
}
|
|
1118
1118
|
});
|
|
1119
1119
|
var require_path = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1120
|
-
"../../node_modules/.pnpm/minimatch@5.1.
|
|
1120
|
+
"../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.js"(exports, module2) {
|
|
1121
1121
|
"use strict";
|
|
1122
1122
|
var isWindows = typeof process === "object" && process && process.platform === "win32";
|
|
1123
1123
|
module2.exports = isWindows ? { sep: "\\" } : { sep: "/" };
|
|
@@ -1329,7 +1329,7 @@ var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1329
1329
|
}
|
|
1330
1330
|
});
|
|
1331
1331
|
var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1332
|
-
"../../node_modules/.pnpm/minimatch@5.1.
|
|
1332
|
+
"../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
1333
1333
|
"use strict";
|
|
1334
1334
|
var minimatch = module2.exports = (p, pattern, options = {}) => {
|
|
1335
1335
|
assertValidPattern(pattern);
|
|
@@ -1416,9 +1416,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1416
1416
|
return list;
|
|
1417
1417
|
};
|
|
1418
1418
|
var globUnescape = (s) => s.replace(/\\(.)/g, "$1");
|
|
1419
|
-
var charUnescape = (s) => s.replace(/\\([^-\]])/g, "$1");
|
|
1420
1419
|
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1421
|
-
var braExpEscape = (s) => s.replace(/[[\]\\]/g, "\\$&");
|
|
1422
1420
|
var Minimatch = class {
|
|
1423
1421
|
constructor(pattern, options) {
|
|
1424
1422
|
assertValidPattern(pattern);
|
|
@@ -1471,7 +1469,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1471
1469
|
negate = !negate;
|
|
1472
1470
|
negateOffset++;
|
|
1473
1471
|
}
|
|
1474
|
-
if (negateOffset) this.pattern = pattern.
|
|
1472
|
+
if (negateOffset) this.pattern = pattern.substr(negateOffset);
|
|
1475
1473
|
this.negate = negate;
|
|
1476
1474
|
}
|
|
1477
1475
|
// set partial to true to test if, for example,
|
|
@@ -1557,7 +1555,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1557
1555
|
}
|
|
1558
1556
|
if (pattern === "") return "";
|
|
1559
1557
|
let re = "";
|
|
1560
|
-
let hasMagic =
|
|
1558
|
+
let hasMagic = !!options.nocase;
|
|
1561
1559
|
let escaping = false;
|
|
1562
1560
|
const patternListStack = [];
|
|
1563
1561
|
const negativeLists = [];
|
|
@@ -1568,10 +1566,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1568
1566
|
let cs;
|
|
1569
1567
|
let pl;
|
|
1570
1568
|
let sp;
|
|
1571
|
-
|
|
1572
|
-
let dotFileAllowed = options.dot || dotTravAllowed;
|
|
1573
|
-
const patternStart = () => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
1574
|
-
const subPatternStart = (p) => p.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
1569
|
+
const patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
1575
1570
|
const clearStateChar = () => {
|
|
1576
1571
|
if (stateChar) {
|
|
1577
1572
|
switch (stateChar) {
|
|
@@ -1610,10 +1605,6 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1610
1605
|
return false;
|
|
1611
1606
|
}
|
|
1612
1607
|
case "\\":
|
|
1613
|
-
if (inClass && pattern.charAt(i + 1) === "-") {
|
|
1614
|
-
re += c;
|
|
1615
|
-
continue;
|
|
1616
|
-
}
|
|
1617
1608
|
clearStateChar();
|
|
1618
1609
|
escaping = true;
|
|
1619
1610
|
continue;
|
|
@@ -1636,7 +1627,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1636
1627
|
stateChar = c;
|
|
1637
1628
|
if (options.noext) clearStateChar();
|
|
1638
1629
|
continue;
|
|
1639
|
-
case "(":
|
|
1630
|
+
case "(":
|
|
1640
1631
|
if (inClass) {
|
|
1641
1632
|
re += "(";
|
|
1642
1633
|
continue;
|
|
@@ -1645,54 +1636,39 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1645
1636
|
re += "\\(";
|
|
1646
1637
|
continue;
|
|
1647
1638
|
}
|
|
1648
|
-
|
|
1639
|
+
patternListStack.push({
|
|
1649
1640
|
type: stateChar,
|
|
1650
1641
|
start: i - 1,
|
|
1651
1642
|
reStart: re.length,
|
|
1652
1643
|
open: plTypes[stateChar].open,
|
|
1653
1644
|
close: plTypes[stateChar].close
|
|
1654
|
-
};
|
|
1655
|
-
|
|
1656
|
-
patternListStack.push(plEntry);
|
|
1657
|
-
re += plEntry.open;
|
|
1658
|
-
if (plEntry.start === 0 && plEntry.type !== "!") {
|
|
1659
|
-
dotTravAllowed = true;
|
|
1660
|
-
re += subPatternStart(pattern.slice(i + 1));
|
|
1661
|
-
}
|
|
1645
|
+
});
|
|
1646
|
+
re += stateChar === "!" ? "(?:(?!(?:" : "(?:";
|
|
1662
1647
|
this.debug("plType %j %j", stateChar, re);
|
|
1663
1648
|
stateChar = false;
|
|
1664
1649
|
continue;
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
const plEntry = patternListStack[patternListStack.length - 1];
|
|
1668
|
-
if (inClass || !plEntry) {
|
|
1650
|
+
case ")":
|
|
1651
|
+
if (inClass || !patternListStack.length) {
|
|
1669
1652
|
re += "\\)";
|
|
1670
1653
|
continue;
|
|
1671
1654
|
}
|
|
1672
|
-
patternListStack.pop();
|
|
1673
1655
|
clearStateChar();
|
|
1674
1656
|
hasMagic = true;
|
|
1675
|
-
pl =
|
|
1657
|
+
pl = patternListStack.pop();
|
|
1676
1658
|
re += pl.close;
|
|
1677
1659
|
if (pl.type === "!") {
|
|
1678
|
-
negativeLists.push(
|
|
1660
|
+
negativeLists.push(pl);
|
|
1679
1661
|
}
|
|
1662
|
+
pl.reEnd = re.length;
|
|
1680
1663
|
continue;
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
const plEntry = patternListStack[patternListStack.length - 1];
|
|
1684
|
-
if (inClass || !plEntry) {
|
|
1664
|
+
case "|":
|
|
1665
|
+
if (inClass || !patternListStack.length) {
|
|
1685
1666
|
re += "\\|";
|
|
1686
1667
|
continue;
|
|
1687
1668
|
}
|
|
1688
1669
|
clearStateChar();
|
|
1689
1670
|
re += "|";
|
|
1690
|
-
if (plEntry.start === 0 && plEntry.type !== "!") {
|
|
1691
|
-
dotTravAllowed = true;
|
|
1692
|
-
re += subPatternStart(pattern.slice(i + 1));
|
|
1693
|
-
}
|
|
1694
1671
|
continue;
|
|
1695
|
-
}
|
|
1696
1672
|
// these are mostly the same in regexp and glob
|
|
1697
1673
|
case "[":
|
|
1698
1674
|
clearStateChar();
|
|
@@ -1712,13 +1688,17 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1712
1688
|
}
|
|
1713
1689
|
cs = pattern.substring(classStart + 1, i);
|
|
1714
1690
|
try {
|
|
1715
|
-
RegExp("[" +
|
|
1716
|
-
re += c;
|
|
1691
|
+
RegExp("[" + cs + "]");
|
|
1717
1692
|
} catch (er) {
|
|
1718
|
-
|
|
1693
|
+
sp = this.parse(cs, SUBPARSE);
|
|
1694
|
+
re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
|
|
1695
|
+
hasMagic = hasMagic || sp[1];
|
|
1696
|
+
inClass = false;
|
|
1697
|
+
continue;
|
|
1719
1698
|
}
|
|
1720
1699
|
hasMagic = true;
|
|
1721
1700
|
inClass = false;
|
|
1701
|
+
re += c;
|
|
1722
1702
|
continue;
|
|
1723
1703
|
default:
|
|
1724
1704
|
clearStateChar();
|
|
@@ -1730,9 +1710,9 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1730
1710
|
}
|
|
1731
1711
|
}
|
|
1732
1712
|
if (inClass) {
|
|
1733
|
-
cs = pattern.
|
|
1713
|
+
cs = pattern.substr(classStart + 1);
|
|
1734
1714
|
sp = this.parse(cs, SUBPARSE);
|
|
1735
|
-
re = re.
|
|
1715
|
+
re = re.substr(0, reClassStart) + "\\[" + sp[0];
|
|
1736
1716
|
hasMagic = hasMagic || sp[1];
|
|
1737
1717
|
}
|
|
1738
1718
|
for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
|
|
@@ -1761,28 +1741,24 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1761
1741
|
const nlFirst = re.slice(nl.reStart, nl.reEnd - 8);
|
|
1762
1742
|
let nlAfter = re.slice(nl.reEnd);
|
|
1763
1743
|
const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter;
|
|
1764
|
-
const
|
|
1765
|
-
const openParensBefore = nlBefore.split("(").length - closeParensBefore;
|
|
1744
|
+
const openParensBefore = nlBefore.split("(").length - 1;
|
|
1766
1745
|
let cleanAfter = nlAfter;
|
|
1767
1746
|
for (let i = 0; i < openParensBefore; i++) {
|
|
1768
1747
|
cleanAfter = cleanAfter.replace(/\)[+*?]?/, "");
|
|
1769
1748
|
}
|
|
1770
1749
|
nlAfter = cleanAfter;
|
|
1771
|
-
const dollar = nlAfter === "" && isSub !== SUBPARSE ? "
|
|
1750
|
+
const dollar = nlAfter === "" && isSub !== SUBPARSE ? "$" : "";
|
|
1772
1751
|
re = nlBefore + nlFirst + nlAfter + dollar + nlLast;
|
|
1773
1752
|
}
|
|
1774
1753
|
if (re !== "" && hasMagic) {
|
|
1775
1754
|
re = "(?=.)" + re;
|
|
1776
1755
|
}
|
|
1777
1756
|
if (addPatternStart) {
|
|
1778
|
-
re = patternStart
|
|
1757
|
+
re = patternStart + re;
|
|
1779
1758
|
}
|
|
1780
1759
|
if (isSub === SUBPARSE) {
|
|
1781
1760
|
return [re, hasMagic];
|
|
1782
1761
|
}
|
|
1783
|
-
if (options.nocase && !hasMagic) {
|
|
1784
|
-
hasMagic = pattern.toUpperCase() !== pattern.toLowerCase();
|
|
1785
|
-
}
|
|
1786
1762
|
if (!hasMagic) {
|
|
1787
1763
|
return globUnescape(pattern);
|
|
1788
1764
|
}
|