@prisma/migrate 6.19.0-integration-next.13 → 6.19.0-integration-feat-remove-library-engine.1
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/Migrate.js +3 -3
- package/dist/bin.js +24 -24
- package/dist/{chunk-UJA5DXI3.js → chunk-2Z63R7HP.js} +5 -5
- package/dist/{chunk-4LNQFWQD.js → chunk-3VYHMV3C.js} +5 -5
- package/dist/{chunk-NG4757TP.js → chunk-45NSU26W.js} +6 -6
- package/dist/{chunk-OP2BDF75.js → chunk-FRY7T46S.js} +10 -11
- package/dist/{chunk-XAPRGBTZ.js → chunk-JVGKTJYZ.js} +5 -5
- package/dist/{chunk-VV4M6AN7.js → chunk-JX2HIV7V.js} +10 -10
- package/dist/{chunk-Q66L2LFA.js → chunk-L7EZXEMS.js} +5 -5
- package/dist/{chunk-SIUB4YHK.js → chunk-LNQIFWXN.js} +5 -5
- package/dist/{chunk-HDTRNRXE.js → chunk-O57XJHDD.js} +62 -39
- package/dist/{chunk-ANMWKEMD.js → chunk-PJYHZKCF.js} +5 -5
- package/dist/{chunk-OPD3GTJ2.js → chunk-QZUMMKCI.js} +7 -7
- package/dist/{chunk-VU5BLQUI.js → chunk-T2ACIU5M.js} +14 -8
- package/dist/{chunk-AP47ZTTC.js → chunk-TCBZUTEL.js} +5 -5
- package/dist/{chunk-CQLPPAWH.js → chunk-URVKYSZJ.js} +5 -5
- package/dist/{chunk-MOFG2YPJ.js → chunk-V5D5NSLS.js} +32 -22
- package/dist/{chunk-QVMYNWAN.js → chunk-XA2JOJS2.js} +157 -70
- package/dist/commands/DbExecute.js +4 -4
- package/dist/commands/DbPull.js +5 -5
- package/dist/commands/DbPush.js +4 -4
- package/dist/commands/MigrateDeploy.js +4 -4
- package/dist/commands/MigrateDev.js +4 -4
- package/dist/commands/MigrateDiff.js +4 -4
- package/dist/commands/MigrateReset.js +4 -4
- package/dist/commands/MigrateResolve.js +4 -4
- package/dist/commands/MigrateStatus.js +4 -4
- package/dist/index.js +26 -26
- package/dist/open-GFNXULGD.js +593 -0
- package/dist/utils/getDatabaseVersionSafe.js +4 -4
- package/dist/utils/introspectSql.js +4 -4
- package/dist/utils/setupCockroach.js +2 -2
- package/dist/utils/setupMSSQL.js +30734 -30124
- package/dist/utils/setupMongo.js +2048 -768
- package/dist/utils/setupPostgres.js +2 -2
- package/dist/utils/spinner.js +3 -3
- package/package.json +11 -11
|
@@ -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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_O57XJHDD_exports = {};
|
|
30
|
+
__export(chunk_O57XJHDD_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_O57XJHDD_exports);
|
|
34
34
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
35
|
-
var
|
|
35
|
+
var import_chunk_V5D5NSLS = require("./chunk-V5D5NSLS.js");
|
|
36
36
|
var import_chunk_GGA2F64G = require("./chunk-GGA2F64G.js");
|
|
37
37
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
38
38
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
@@ -1116,7 +1116,7 @@ var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1116
1116
|
}
|
|
1117
1117
|
});
|
|
1118
1118
|
var require_path = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1119
|
-
"../../node_modules/.pnpm/minimatch@5.1.
|
|
1119
|
+
"../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/lib/path.js"(exports, module2) {
|
|
1120
1120
|
"use strict";
|
|
1121
1121
|
var isWindows = typeof process === "object" && process && process.platform === "win32";
|
|
1122
1122
|
module2.exports = isWindows ? { sep: "\\" } : { sep: "/" };
|
|
@@ -1179,7 +1179,7 @@ var require_balanced_match = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1179
1179
|
}
|
|
1180
1180
|
});
|
|
1181
1181
|
var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1182
|
-
"../../node_modules/.pnpm/brace-expansion@2.0.
|
|
1182
|
+
"../../node_modules/.pnpm/brace-expansion@2.0.2/node_modules/brace-expansion/index.js"(exports, module2) {
|
|
1183
1183
|
"use strict";
|
|
1184
1184
|
var balanced = require_balanced_match();
|
|
1185
1185
|
module2.exports = expandTop;
|
|
@@ -1254,7 +1254,7 @@ var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1254
1254
|
var isSequence = isNumericSequence || isAlphaSequence;
|
|
1255
1255
|
var isOptions = m.body.indexOf(",") >= 0;
|
|
1256
1256
|
if (!isSequence && !isOptions) {
|
|
1257
|
-
if (m.post.match(
|
|
1257
|
+
if (m.post.match(/,(?!,).*\}/)) {
|
|
1258
1258
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
1259
1259
|
return expand(str);
|
|
1260
1260
|
}
|
|
@@ -1328,7 +1328,7 @@ var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1328
1328
|
}
|
|
1329
1329
|
});
|
|
1330
1330
|
var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1331
|
-
"../../node_modules/.pnpm/minimatch@5.1.
|
|
1331
|
+
"../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
1332
1332
|
"use strict";
|
|
1333
1333
|
var minimatch = module2.exports = (p, pattern, options = {}) => {
|
|
1334
1334
|
assertValidPattern(pattern);
|
|
@@ -1415,7 +1415,9 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1415
1415
|
return list;
|
|
1416
1416
|
};
|
|
1417
1417
|
var globUnescape = (s) => s.replace(/\\(.)/g, "$1");
|
|
1418
|
+
var charUnescape = (s) => s.replace(/\\([^-\]])/g, "$1");
|
|
1418
1419
|
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1420
|
+
var braExpEscape = (s) => s.replace(/[[\]\\]/g, "\\$&");
|
|
1419
1421
|
var Minimatch = class {
|
|
1420
1422
|
constructor(pattern, options) {
|
|
1421
1423
|
assertValidPattern(pattern);
|
|
@@ -1468,7 +1470,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1468
1470
|
negate = !negate;
|
|
1469
1471
|
negateOffset++;
|
|
1470
1472
|
}
|
|
1471
|
-
if (negateOffset) this.pattern = pattern.
|
|
1473
|
+
if (negateOffset) this.pattern = pattern.slice(negateOffset);
|
|
1472
1474
|
this.negate = negate;
|
|
1473
1475
|
}
|
|
1474
1476
|
// set partial to true to test if, for example,
|
|
@@ -1554,7 +1556,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1554
1556
|
}
|
|
1555
1557
|
if (pattern === "") return "";
|
|
1556
1558
|
let re = "";
|
|
1557
|
-
let hasMagic =
|
|
1559
|
+
let hasMagic = false;
|
|
1558
1560
|
let escaping = false;
|
|
1559
1561
|
const patternListStack = [];
|
|
1560
1562
|
const negativeLists = [];
|
|
@@ -1565,7 +1567,10 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1565
1567
|
let cs;
|
|
1566
1568
|
let pl;
|
|
1567
1569
|
let sp;
|
|
1568
|
-
|
|
1570
|
+
let dotTravAllowed = pattern.charAt(0) === ".";
|
|
1571
|
+
let dotFileAllowed = options.dot || dotTravAllowed;
|
|
1572
|
+
const patternStart = () => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
1573
|
+
const subPatternStart = (p) => p.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
1569
1574
|
const clearStateChar = () => {
|
|
1570
1575
|
if (stateChar) {
|
|
1571
1576
|
switch (stateChar) {
|
|
@@ -1604,6 +1609,10 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1604
1609
|
return false;
|
|
1605
1610
|
}
|
|
1606
1611
|
case "\\":
|
|
1612
|
+
if (inClass && pattern.charAt(i + 1) === "-") {
|
|
1613
|
+
re += c;
|
|
1614
|
+
continue;
|
|
1615
|
+
}
|
|
1607
1616
|
clearStateChar();
|
|
1608
1617
|
escaping = true;
|
|
1609
1618
|
continue;
|
|
@@ -1626,7 +1635,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1626
1635
|
stateChar = c;
|
|
1627
1636
|
if (options.noext) clearStateChar();
|
|
1628
1637
|
continue;
|
|
1629
|
-
case "(":
|
|
1638
|
+
case "(": {
|
|
1630
1639
|
if (inClass) {
|
|
1631
1640
|
re += "(";
|
|
1632
1641
|
continue;
|
|
@@ -1635,39 +1644,54 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1635
1644
|
re += "\\(";
|
|
1636
1645
|
continue;
|
|
1637
1646
|
}
|
|
1638
|
-
|
|
1647
|
+
const plEntry = {
|
|
1639
1648
|
type: stateChar,
|
|
1640
1649
|
start: i - 1,
|
|
1641
1650
|
reStart: re.length,
|
|
1642
1651
|
open: plTypes[stateChar].open,
|
|
1643
1652
|
close: plTypes[stateChar].close
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1653
|
+
};
|
|
1654
|
+
this.debug(this.pattern, " ", plEntry);
|
|
1655
|
+
patternListStack.push(plEntry);
|
|
1656
|
+
re += plEntry.open;
|
|
1657
|
+
if (plEntry.start === 0 && plEntry.type !== "!") {
|
|
1658
|
+
dotTravAllowed = true;
|
|
1659
|
+
re += subPatternStart(pattern.slice(i + 1));
|
|
1660
|
+
}
|
|
1646
1661
|
this.debug("plType %j %j", stateChar, re);
|
|
1647
1662
|
stateChar = false;
|
|
1648
1663
|
continue;
|
|
1649
|
-
|
|
1650
|
-
|
|
1664
|
+
}
|
|
1665
|
+
case ")": {
|
|
1666
|
+
const plEntry = patternListStack[patternListStack.length - 1];
|
|
1667
|
+
if (inClass || !plEntry) {
|
|
1651
1668
|
re += "\\)";
|
|
1652
1669
|
continue;
|
|
1653
1670
|
}
|
|
1671
|
+
patternListStack.pop();
|
|
1654
1672
|
clearStateChar();
|
|
1655
1673
|
hasMagic = true;
|
|
1656
|
-
pl =
|
|
1674
|
+
pl = plEntry;
|
|
1657
1675
|
re += pl.close;
|
|
1658
1676
|
if (pl.type === "!") {
|
|
1659
|
-
negativeLists.push(pl);
|
|
1677
|
+
negativeLists.push(Object.assign(pl, { reEnd: re.length }));
|
|
1660
1678
|
}
|
|
1661
|
-
pl.reEnd = re.length;
|
|
1662
1679
|
continue;
|
|
1663
|
-
|
|
1664
|
-
|
|
1680
|
+
}
|
|
1681
|
+
case "|": {
|
|
1682
|
+
const plEntry = patternListStack[patternListStack.length - 1];
|
|
1683
|
+
if (inClass || !plEntry) {
|
|
1665
1684
|
re += "\\|";
|
|
1666
1685
|
continue;
|
|
1667
1686
|
}
|
|
1668
1687
|
clearStateChar();
|
|
1669
1688
|
re += "|";
|
|
1689
|
+
if (plEntry.start === 0 && plEntry.type !== "!") {
|
|
1690
|
+
dotTravAllowed = true;
|
|
1691
|
+
re += subPatternStart(pattern.slice(i + 1));
|
|
1692
|
+
}
|
|
1670
1693
|
continue;
|
|
1694
|
+
}
|
|
1671
1695
|
// these are mostly the same in regexp and glob
|
|
1672
1696
|
case "[":
|
|
1673
1697
|
clearStateChar();
|
|
@@ -1687,17 +1711,13 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1687
1711
|
}
|
|
1688
1712
|
cs = pattern.substring(classStart + 1, i);
|
|
1689
1713
|
try {
|
|
1690
|
-
RegExp("[" + cs + "]");
|
|
1714
|
+
RegExp("[" + braExpEscape(charUnescape(cs)) + "]");
|
|
1715
|
+
re += c;
|
|
1691
1716
|
} catch (er) {
|
|
1692
|
-
|
|
1693
|
-
re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
|
|
1694
|
-
hasMagic = hasMagic || sp[1];
|
|
1695
|
-
inClass = false;
|
|
1696
|
-
continue;
|
|
1717
|
+
re = re.substring(0, reClassStart) + "(?:$.)";
|
|
1697
1718
|
}
|
|
1698
1719
|
hasMagic = true;
|
|
1699
1720
|
inClass = false;
|
|
1700
|
-
re += c;
|
|
1701
1721
|
continue;
|
|
1702
1722
|
default:
|
|
1703
1723
|
clearStateChar();
|
|
@@ -1709,9 +1729,9 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1709
1729
|
}
|
|
1710
1730
|
}
|
|
1711
1731
|
if (inClass) {
|
|
1712
|
-
cs = pattern.
|
|
1732
|
+
cs = pattern.slice(classStart + 1);
|
|
1713
1733
|
sp = this.parse(cs, SUBPARSE);
|
|
1714
|
-
re = re.
|
|
1734
|
+
re = re.substring(0, reClassStart) + "\\[" + sp[0];
|
|
1715
1735
|
hasMagic = hasMagic || sp[1];
|
|
1716
1736
|
}
|
|
1717
1737
|
for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
|
|
@@ -1740,24 +1760,28 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1740
1760
|
const nlFirst = re.slice(nl.reStart, nl.reEnd - 8);
|
|
1741
1761
|
let nlAfter = re.slice(nl.reEnd);
|
|
1742
1762
|
const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter;
|
|
1743
|
-
const
|
|
1763
|
+
const closeParensBefore = nlBefore.split(")").length;
|
|
1764
|
+
const openParensBefore = nlBefore.split("(").length - closeParensBefore;
|
|
1744
1765
|
let cleanAfter = nlAfter;
|
|
1745
1766
|
for (let i = 0; i < openParensBefore; i++) {
|
|
1746
1767
|
cleanAfter = cleanAfter.replace(/\)[+*?]?/, "");
|
|
1747
1768
|
}
|
|
1748
1769
|
nlAfter = cleanAfter;
|
|
1749
|
-
const dollar = nlAfter === "" && isSub !== SUBPARSE ? "
|
|
1770
|
+
const dollar = nlAfter === "" && isSub !== SUBPARSE ? "(?:$|\\/)" : "";
|
|
1750
1771
|
re = nlBefore + nlFirst + nlAfter + dollar + nlLast;
|
|
1751
1772
|
}
|
|
1752
1773
|
if (re !== "" && hasMagic) {
|
|
1753
1774
|
re = "(?=.)" + re;
|
|
1754
1775
|
}
|
|
1755
1776
|
if (addPatternStart) {
|
|
1756
|
-
re = patternStart + re;
|
|
1777
|
+
re = patternStart() + re;
|
|
1757
1778
|
}
|
|
1758
1779
|
if (isSub === SUBPARSE) {
|
|
1759
1780
|
return [re, hasMagic];
|
|
1760
1781
|
}
|
|
1782
|
+
if (options.nocase && !hasMagic) {
|
|
1783
|
+
hasMagic = pattern.toUpperCase() !== pattern.toLowerCase();
|
|
1784
|
+
}
|
|
1761
1785
|
if (!hasMagic) {
|
|
1762
1786
|
return globUnescape(pattern);
|
|
1763
1787
|
}
|
|
@@ -4938,7 +4962,7 @@ var require_ensure = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
4938
4962
|
}
|
|
4939
4963
|
});
|
|
4940
4964
|
var require_utils2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4941
|
-
"../../node_modules/.pnpm/jsonfile@6.
|
|
4965
|
+
"../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
|
4942
4966
|
"use strict";
|
|
4943
4967
|
function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
|
|
4944
4968
|
const EOF = finalEOL ? EOL : "";
|
|
@@ -4953,7 +4977,7 @@ var require_utils2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
4953
4977
|
}
|
|
4954
4978
|
});
|
|
4955
4979
|
var require_jsonfile = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4956
|
-
"../../node_modules/.pnpm/jsonfile@6.
|
|
4980
|
+
"../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js"(exports, module2) {
|
|
4957
4981
|
"use strict";
|
|
4958
4982
|
var _fs;
|
|
4959
4983
|
try {
|
|
@@ -5015,13 +5039,12 @@ var require_jsonfile = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
5015
5039
|
const str = stringify(obj, options);
|
|
5016
5040
|
return fs3.writeFileSync(file, str, options);
|
|
5017
5041
|
}
|
|
5018
|
-
|
|
5042
|
+
module2.exports = {
|
|
5019
5043
|
readFile: readFile2,
|
|
5020
5044
|
readFileSync,
|
|
5021
5045
|
writeFile,
|
|
5022
5046
|
writeFileSync
|
|
5023
5047
|
};
|
|
5024
|
-
module2.exports = jsonfile;
|
|
5025
5048
|
}
|
|
5026
5049
|
});
|
|
5027
5050
|
var require_jsonfile2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
@@ -5921,7 +5944,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
5921
5944
|
externalTables: config.tables?.external ?? [],
|
|
5922
5945
|
externalEnums: config.enums?.external ?? []
|
|
5923
5946
|
};
|
|
5924
|
-
const migrate = await
|
|
5947
|
+
const migrate = await import_chunk_V5D5NSLS.Migrate.setup({
|
|
5925
5948
|
schemaEngineConfig: config,
|
|
5926
5949
|
schemaFilter,
|
|
5927
5950
|
extensions: config["extensions"]
|
|
@@ -26,15 +26,15 @@ 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_PJYHZKCF_exports = {};
|
|
30
|
+
__export(chunk_PJYHZKCF_exports, {
|
|
31
31
|
MigrateDeploy: () => MigrateDeploy
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_PJYHZKCF_exports);
|
|
34
34
|
var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
|
|
35
35
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
36
36
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_V5D5NSLS = require("./chunk-V5D5NSLS.js");
|
|
38
38
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
39
39
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
40
40
|
var import_internals = require("@prisma/internals");
|
|
@@ -97,7 +97,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
97
97
|
externalTables: config.tables?.external ?? [],
|
|
98
98
|
externalEnums: config.enums?.external ?? []
|
|
99
99
|
};
|
|
100
|
-
const migrate = await
|
|
100
|
+
const migrate = await import_chunk_V5D5NSLS.Migrate.setup({
|
|
101
101
|
schemaEngineConfig: config,
|
|
102
102
|
migrationsDirPath,
|
|
103
103
|
schemaContext,
|
|
@@ -26,12 +26,12 @@ 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_QZUMMKCI_exports = {};
|
|
30
|
+
__export(chunk_QZUMMKCI_exports, {
|
|
31
31
|
DbPull: () => DbPull
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_QZUMMKCI_exports);
|
|
34
|
+
var import_chunk_T2ACIU5M = require("./chunk-T2ACIU5M.js");
|
|
35
35
|
var import_chunk_AHJ2N6BJ = require("./chunk-AHJ2N6BJ.js");
|
|
36
36
|
var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
|
|
37
37
|
var import_chunk_RTGQXNX6 = require("./chunk-RTGQXNX6.js");
|
|
@@ -41,7 +41,7 @@ var import_chunk_LGYRZ6CV = require("./chunk-LGYRZ6CV.js");
|
|
|
41
41
|
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
42
42
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
43
43
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
44
|
-
var
|
|
44
|
+
var import_chunk_V5D5NSLS = require("./chunk-V5D5NSLS.js");
|
|
45
45
|
var import_chunk_AXR7LS2N = require("./chunk-AXR7LS2N.js");
|
|
46
46
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
47
47
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -116,7 +116,7 @@ Set composite types introspection depth to 2 levels
|
|
|
116
116
|
"--local-d1": Boolean
|
|
117
117
|
// optional, only on cloudflare D1
|
|
118
118
|
});
|
|
119
|
-
const spinnerFactory = (0,
|
|
119
|
+
const spinnerFactory = (0, import_chunk_T2ACIU5M.createSpinner)(!args["--print"]);
|
|
120
120
|
if (args instanceof Error) {
|
|
121
121
|
return this.help(args.message);
|
|
122
122
|
}
|
|
@@ -204,7 +204,7 @@ Some information will be lost (relations, comments, mapped fields, @ignore...),
|
|
|
204
204
|
)} for more info.`);
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
const migrate = await
|
|
207
|
+
const migrate = await import_chunk_V5D5NSLS.Migrate.setup({
|
|
208
208
|
schemaEngineConfig: config,
|
|
209
209
|
schemaContext: schemaContext ?? void 0,
|
|
210
210
|
extensions: config["extensions"]
|
|
@@ -26,12 +26,12 @@ 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_T2ACIU5M_exports = {};
|
|
30
|
+
__export(chunk_T2ACIU5M_exports, {
|
|
31
31
|
createSpinner: () => createSpinner
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_T2ACIU5M_exports);
|
|
34
|
+
var import_chunk_JX2HIV7V = require("./chunk-JX2HIV7V.js");
|
|
35
35
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
36
36
|
var import_node_process = __toESM(require("node:process"));
|
|
37
37
|
var import_node_process2 = __toESM(require("node:process"));
|
|
@@ -1952,6 +1952,12 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
1952
1952
|
if (env.TERM === "xterm-kitty") {
|
|
1953
1953
|
return 3;
|
|
1954
1954
|
}
|
|
1955
|
+
if (env.TERM === "xterm-ghostty") {
|
|
1956
|
+
return 3;
|
|
1957
|
+
}
|
|
1958
|
+
if (env.TERM === "wezterm") {
|
|
1959
|
+
return 3;
|
|
1960
|
+
}
|
|
1955
1961
|
if ("TERM_PROGRAM" in env) {
|
|
1956
1962
|
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
1957
1963
|
switch (env.TERM_PROGRAM) {
|
|
@@ -2382,8 +2388,8 @@ var Ora = class {
|
|
|
2382
2388
|
const fullSuffixText = this.#getFullSuffixText(this.#suffixText, "-");
|
|
2383
2389
|
const fullText = " ".repeat(this.#indent) + fullPrefixText + "--" + this.#text + "--" + fullSuffixText;
|
|
2384
2390
|
this.#lineCount = 0;
|
|
2385
|
-
for (const line of (0,
|
|
2386
|
-
this.#lineCount += Math.max(1, Math.ceil((0,
|
|
2391
|
+
for (const line of (0, import_chunk_JX2HIV7V.stripAnsi)(fullText).split("\n")) {
|
|
2392
|
+
this.#lineCount += Math.max(1, Math.ceil((0, import_chunk_JX2HIV7V.stringWidth)(line, { countAnsiEscapeCodes: true }) / columns));
|
|
2387
2393
|
}
|
|
2388
2394
|
}
|
|
2389
2395
|
get isEnabled() {
|
|
@@ -2465,7 +2471,7 @@ var Ora = class {
|
|
|
2465
2471
|
return this;
|
|
2466
2472
|
}
|
|
2467
2473
|
if (this.#options.hideCursor) {
|
|
2468
|
-
|
|
2474
|
+
import_chunk_JX2HIV7V.cli_cursor_default.hide(this.#stream);
|
|
2469
2475
|
}
|
|
2470
2476
|
if (this.#options.discardStdin && import_node_process.default.stdin.isTTY) {
|
|
2471
2477
|
this.#isDiscardingStdin = true;
|
|
@@ -2484,7 +2490,7 @@ var Ora = class {
|
|
|
2484
2490
|
this.#frameIndex = 0;
|
|
2485
2491
|
this.clear();
|
|
2486
2492
|
if (this.#options.hideCursor) {
|
|
2487
|
-
|
|
2493
|
+
import_chunk_JX2HIV7V.cli_cursor_default.show(this.#stream);
|
|
2488
2494
|
}
|
|
2489
2495
|
if (this.#options.discardStdin && import_node_process.default.stdin.isTTY && this.#isDiscardingStdin) {
|
|
2490
2496
|
stdin_discarder_default.stop();
|
|
@@ -26,12 +26,12 @@ 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_TCBZUTEL_exports = {};
|
|
30
|
+
__export(chunk_TCBZUTEL_exports, {
|
|
31
31
|
DbExecute: () => DbExecute
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_TCBZUTEL_exports);
|
|
34
|
+
var import_chunk_V5D5NSLS = require("./chunk-V5D5NSLS.js");
|
|
35
35
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
36
36
|
var import_consumers = __toESM(require("node:stream/consumers"));
|
|
37
37
|
var import_internals = require("@prisma/internals");
|
|
@@ -150,7 +150,7 @@ See \`${(0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExec
|
|
|
150
150
|
tag: "url",
|
|
151
151
|
url: config.datasource.url
|
|
152
152
|
};
|
|
153
|
-
const migrate = await
|
|
153
|
+
const migrate = await import_chunk_V5D5NSLS.Migrate.setup({ schemaEngineConfig: config, extensions: config["extensions"] });
|
|
154
154
|
try {
|
|
155
155
|
await migrate.engine.dbExecute({
|
|
156
156
|
script,
|
|
@@ -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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_URVKYSZJ_exports = {};
|
|
30
|
+
__export(chunk_URVKYSZJ_exports, {
|
|
31
31
|
DbPush: () => DbPush
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_URVKYSZJ_exports);
|
|
34
34
|
var import_chunk_FBDQVK4W = require("./chunk-FBDQVK4W.js");
|
|
35
35
|
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
36
36
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
37
37
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_V5D5NSLS = require("./chunk-V5D5NSLS.js");
|
|
39
39
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
40
40
|
var import_internals = require("@prisma/internals");
|
|
41
41
|
var import_prompts = __toESM(require("prompts"));
|
|
@@ -106,7 +106,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
106
106
|
externalTables: config.tables?.external ?? [],
|
|
107
107
|
externalEnums: config.enums?.external ?? []
|
|
108
108
|
};
|
|
109
|
-
const migrate = await
|
|
109
|
+
const migrate = await import_chunk_V5D5NSLS.Migrate.setup({
|
|
110
110
|
schemaEngineConfig: config,
|
|
111
111
|
migrationsDirPath,
|
|
112
112
|
schemaContext,
|
|
@@ -26,12 +26,12 @@ 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_V5D5NSLS_exports = {};
|
|
30
|
+
__export(chunk_V5D5NSLS_exports, {
|
|
31
31
|
Migrate: () => Migrate
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_V5D5NSLS_exports);
|
|
34
|
+
var import_chunk_JX2HIV7V = require("./chunk-JX2HIV7V.js");
|
|
35
35
|
var import_chunk_T64SUJ5L = require("./chunk-T64SUJ5L.js");
|
|
36
36
|
var import_chunk_GGA2F64G = require("./chunk-GGA2F64G.js");
|
|
37
37
|
var import_chunk_23DZXSTI = require("./chunk-23DZXSTI.js");
|
|
@@ -46,9 +46,11 @@ var import_node_process = __toESM(require("node:process"));
|
|
|
46
46
|
var import_node_process2 = __toESM(require("node:process"));
|
|
47
47
|
var base_exports = {};
|
|
48
48
|
(0, import_chunk_2ESYSVXG.__export)(base_exports, {
|
|
49
|
+
ConEmu: () => ConEmu,
|
|
49
50
|
beep: () => beep,
|
|
50
51
|
clearScreen: () => clearScreen,
|
|
51
52
|
clearTerminal: () => clearTerminal,
|
|
53
|
+
clearViewport: () => clearViewport,
|
|
52
54
|
cursorBackward: () => cursorBackward,
|
|
53
55
|
cursorDown: () => cursorDown,
|
|
54
56
|
cursorForward: () => cursorForward,
|
|
@@ -76,7 +78,8 @@ var base_exports = {};
|
|
|
76
78
|
image: () => image,
|
|
77
79
|
link: () => link,
|
|
78
80
|
scrollDown: () => scrollDown,
|
|
79
|
-
scrollUp: () => scrollUp
|
|
81
|
+
scrollUp: () => scrollUp,
|
|
82
|
+
setCwd: () => setCwd
|
|
80
83
|
});
|
|
81
84
|
var isBrowser = globalThis.window?.document !== void 0;
|
|
82
85
|
var isNode = globalThis.process?.versions?.node !== void 0;
|
|
@@ -160,6 +163,7 @@ var eraseScreen = ESC + "2J";
|
|
|
160
163
|
var scrollUp = ESC + "S";
|
|
161
164
|
var scrollDown = ESC + "T";
|
|
162
165
|
var clearScreen = "\x1Bc";
|
|
166
|
+
var clearViewport = `${eraseScreen}${ESC}H`;
|
|
163
167
|
var clearTerminal = isWindows2 ? `${eraseScreen}${ESC}0f` : `${eraseScreen}${ESC}3J${ESC}H`;
|
|
164
168
|
var enterAlternativeScreen = ESC + "?1049h";
|
|
165
169
|
var exitAlternativeScreen = ESC + "?1049l";
|
|
@@ -189,7 +193,8 @@ var image = (data, options = {}) => {
|
|
|
189
193
|
if (options.preserveAspectRatio === false) {
|
|
190
194
|
returnValue += ";preserveAspectRatio=0";
|
|
191
195
|
}
|
|
192
|
-
|
|
196
|
+
const imageBuffer = Buffer.from(data);
|
|
197
|
+
return returnValue + `;size=${imageBuffer.byteLength}:` + imageBuffer.toString("base64") + BEL;
|
|
193
198
|
};
|
|
194
199
|
var iTerm = {
|
|
195
200
|
setCwd: (cwd = cwdFunction()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
|
@@ -210,6 +215,10 @@ var iTerm = {
|
|
|
210
215
|
return returnValue + BEL;
|
|
211
216
|
}
|
|
212
217
|
};
|
|
218
|
+
var ConEmu = {
|
|
219
|
+
setCwd: (cwd = cwdFunction()) => `${OSC}9;9;${cwd}${BEL}`
|
|
220
|
+
};
|
|
221
|
+
var setCwd = (cwd = cwdFunction()) => iTerm.setCwd(cwd) + ConEmu.setCwd(cwd);
|
|
213
222
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
214
223
|
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
215
224
|
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
@@ -308,7 +317,7 @@ function assembleStyles() {
|
|
|
308
317
|
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
309
318
|
Object.defineProperties(styles, {
|
|
310
319
|
rgbToAnsi256: {
|
|
311
|
-
value
|
|
320
|
+
value(red, green, blue) {
|
|
312
321
|
if (red === green && green === blue) {
|
|
313
322
|
if (red < 8) {
|
|
314
323
|
return 16;
|
|
@@ -323,7 +332,7 @@ function assembleStyles() {
|
|
|
323
332
|
enumerable: false
|
|
324
333
|
},
|
|
325
334
|
hexToRgb: {
|
|
326
|
-
value
|
|
335
|
+
value(hex) {
|
|
327
336
|
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
328
337
|
if (!matches) {
|
|
329
338
|
return [0, 0, 0];
|
|
@@ -348,7 +357,7 @@ function assembleStyles() {
|
|
|
348
357
|
enumerable: false
|
|
349
358
|
},
|
|
350
359
|
ansi256ToAnsi: {
|
|
351
|
-
value
|
|
360
|
+
value(code) {
|
|
352
361
|
if (code < 8) {
|
|
353
362
|
return 30 + code;
|
|
354
363
|
}
|
|
@@ -406,14 +415,14 @@ var ANSI_SGR_TERMINATOR = "m";
|
|
|
406
415
|
var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
|
|
407
416
|
var wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
|
|
408
417
|
var wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
|
|
409
|
-
var wordLengths = (string) => string.split(" ").map((character) => (0,
|
|
418
|
+
var wordLengths = (string) => string.split(" ").map((character) => (0, import_chunk_JX2HIV7V.stringWidth)(character));
|
|
410
419
|
var wrapWord = (rows, word, columns) => {
|
|
411
420
|
const characters = [...word];
|
|
412
421
|
let isInsideEscape = false;
|
|
413
422
|
let isInsideLinkEscape = false;
|
|
414
|
-
let visible = (0,
|
|
423
|
+
let visible = (0, import_chunk_JX2HIV7V.stringWidth)((0, import_chunk_JX2HIV7V.stripAnsi)(rows.at(-1)));
|
|
415
424
|
for (const [index, character] of characters.entries()) {
|
|
416
|
-
const characterLength = (0,
|
|
425
|
+
const characterLength = (0, import_chunk_JX2HIV7V.stringWidth)(character);
|
|
417
426
|
if (visible + characterLength <= columns) {
|
|
418
427
|
rows[rows.length - 1] += character;
|
|
419
428
|
} else {
|
|
@@ -450,7 +459,7 @@ var stringVisibleTrimSpacesRight = (string) => {
|
|
|
450
459
|
const words = string.split(" ");
|
|
451
460
|
let last = words.length;
|
|
452
461
|
while (last > 0) {
|
|
453
|
-
if ((0,
|
|
462
|
+
if ((0, import_chunk_JX2HIV7V.stringWidth)(words[last - 1]) > 0) {
|
|
454
463
|
break;
|
|
455
464
|
}
|
|
456
465
|
last--;
|
|
@@ -473,7 +482,7 @@ var exec = (string, columns, options = {}) => {
|
|
|
473
482
|
if (options.trim !== false) {
|
|
474
483
|
rows[rows.length - 1] = rows.at(-1).trimStart();
|
|
475
484
|
}
|
|
476
|
-
let rowLength = (0,
|
|
485
|
+
let rowLength = (0, import_chunk_JX2HIV7V.stringWidth)(rows.at(-1));
|
|
477
486
|
if (index !== 0) {
|
|
478
487
|
if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
|
|
479
488
|
rows.push("");
|
|
@@ -551,11 +560,12 @@ function isFullwidthCodePoint(codePoint) {
|
|
|
551
560
|
if (!Number.isInteger(codePoint)) {
|
|
552
561
|
return false;
|
|
553
562
|
}
|
|
554
|
-
return (0,
|
|
563
|
+
return (0, import_chunk_JX2HIV7V.isFullWidth)(codePoint) || (0, import_chunk_JX2HIV7V.isWide)(codePoint);
|
|
555
564
|
}
|
|
556
565
|
var ESCAPES2 = /* @__PURE__ */ new Set([27, 155]);
|
|
557
566
|
var CODE_POINT_0 = "0".codePointAt(0);
|
|
558
567
|
var CODE_POINT_9 = "9".codePointAt(0);
|
|
568
|
+
var MAX_ANSI_SEQUENCE_LENGTH = 19;
|
|
559
569
|
var endCodesSet = /* @__PURE__ */ new Set();
|
|
560
570
|
var endCodesMap = /* @__PURE__ */ new Map();
|
|
561
571
|
for (const [start, end] of ansi_styles_default.codes) {
|
|
@@ -589,7 +599,7 @@ function findNumberIndex(string) {
|
|
|
589
599
|
return -1;
|
|
590
600
|
}
|
|
591
601
|
function parseAnsiCode(string, offset) {
|
|
592
|
-
string = string.slice(offset, offset +
|
|
602
|
+
string = string.slice(offset, offset + MAX_ANSI_SEQUENCE_LENGTH);
|
|
593
603
|
const startIndex = findNumberIndex(string);
|
|
594
604
|
if (startIndex !== -1) {
|
|
595
605
|
let endIndex = string.indexOf("m", startIndex);
|
|
@@ -617,15 +627,15 @@ function tokenize(string, endCharacter = Number.POSITIVE_INFINITY) {
|
|
|
617
627
|
continue;
|
|
618
628
|
}
|
|
619
629
|
}
|
|
620
|
-
const
|
|
630
|
+
const isFullWidth2 = isFullwidthCodePoint(codePoint);
|
|
621
631
|
const character = String.fromCodePoint(codePoint);
|
|
622
632
|
returnValue.push({
|
|
623
633
|
type: "character",
|
|
624
634
|
value: character,
|
|
625
|
-
isFullWidth
|
|
635
|
+
isFullWidth: isFullWidth2
|
|
626
636
|
});
|
|
627
637
|
index += character.length;
|
|
628
|
-
visibleCount +=
|
|
638
|
+
visibleCount += isFullWidth2 ? 2 : character.length;
|
|
629
639
|
if (visibleCount >= endCharacter) {
|
|
630
640
|
break;
|
|
631
641
|
}
|
|
@@ -687,7 +697,7 @@ var fitToTerminalHeight = (stream, text) => {
|
|
|
687
697
|
const terminalHeight = stream.rows ?? defaultTerminalHeight;
|
|
688
698
|
const lines = text.split("\n");
|
|
689
699
|
const toRemove = Math.max(0, lines.length - terminalHeight);
|
|
690
|
-
return toRemove ? sliceAnsi(text, (0,
|
|
700
|
+
return toRemove ? sliceAnsi(text, (0, import_chunk_JX2HIV7V.stripAnsi)(lines.slice(0, toRemove).join("\n")).length + 1) : text;
|
|
691
701
|
};
|
|
692
702
|
function createLogUpdate(stream, { showCursor = false } = {}) {
|
|
693
703
|
let previousLineCount = 0;
|
|
@@ -700,7 +710,7 @@ function createLogUpdate(stream, { showCursor = false } = {}) {
|
|
|
700
710
|
};
|
|
701
711
|
const render = (...arguments_) => {
|
|
702
712
|
if (!showCursor) {
|
|
703
|
-
|
|
713
|
+
import_chunk_JX2HIV7V.cli_cursor_default.hide();
|
|
704
714
|
}
|
|
705
715
|
let output = fitToTerminalHeight(stream, arguments_.join(" ") + "\n");
|
|
706
716
|
const width = getWidth(stream);
|
|
@@ -720,7 +730,7 @@ function createLogUpdate(stream, { showCursor = false } = {}) {
|
|
|
720
730
|
render.done = () => {
|
|
721
731
|
reset();
|
|
722
732
|
if (!showCursor) {
|
|
723
|
-
|
|
733
|
+
import_chunk_JX2HIV7V.cli_cursor_default.show();
|
|
724
734
|
}
|
|
725
735
|
};
|
|
726
736
|
return render;
|