@prisma/migrate 5.19.0-dev.12 → 5.19.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/Migrate.js +5 -5
- package/dist/SchemaEngine.js +5 -5
- package/dist/bin.js +34 -34
- package/dist/{chunk-IGYA7SGE.js → chunk-4OQCFE3G.js} +6 -6
- package/dist/{chunk-S2DYQPQT.js → chunk-7STK4OF3.js} +6 -6
- package/dist/{chunk-KC7KYZZ4.js → chunk-B4CC5OFU.js} +6 -6
- package/dist/{chunk-XCQB6AYY.js → chunk-DRR7ERIJ.js} +6 -6
- package/dist/{chunk-JUKG43I7.js → chunk-E3KHFUFQ.js} +9 -8
- package/dist/{chunk-6QNBIHMB.js → chunk-E6G3WPWL.js} +6 -6
- package/dist/{chunk-VPEPOY6G.js → chunk-I7ABLDKM.js} +7 -7
- package/dist/{chunk-DJCAJLRG.js → chunk-K5V4Z7K7.js} +6 -6
- package/dist/{chunk-EWZ5RMB7.js → chunk-KODAP3NW.js} +7 -7
- package/dist/{chunk-F5AJKOC2.js → chunk-LVFPGUOH.js} +28 -28
- package/dist/{chunk-NLC6XPP4.js → chunk-MKYJ2GXL.js} +34 -28
- package/dist/{chunk-QMILRHC3.js → chunk-MRIGZ6M4.js} +6 -6
- package/dist/{chunk-JM6GEINV.js → chunk-MWD4ITZX.js} +6 -6
- package/dist/{chunk-TMBBHERN.js → chunk-O234LSYW.js} +9 -9
- package/dist/{chunk-HEFUSYB6.js → chunk-OC5KTRBP.js} +33 -27
- package/dist/{chunk-ODPKPRK7.js → chunk-VWV2NY26.js} +12 -12
- package/dist/commands/DbExecute.js +6 -6
- package/dist/commands/DbPull.js +5 -5
- package/dist/commands/DbPush.js +6 -6
- package/dist/commands/MigrateDeploy.js +6 -6
- package/dist/commands/MigrateDev.js +6 -6
- package/dist/commands/MigrateDiff.js +7 -7
- package/dist/commands/MigrateReset.js +6 -6
- package/dist/commands/MigrateResolve.js +6 -6
- package/dist/commands/MigrateStatus.js +6 -6
- package/dist/index.js +38 -38
- package/dist/utils/getDatabaseVersionSafe.js +5 -5
- package/dist/utils/setupMSSQL.js +103 -85
- package/dist/utils/setupMongo.js +3 -3
- package/dist/views/handleViewsIO.js +3 -3
- package/package.json +7 -7
|
@@ -26,8 +26,8 @@ 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_LVFPGUOH_exports = {};
|
|
30
|
+
__export(chunk_LVFPGUOH_exports, {
|
|
31
31
|
$: () => $,
|
|
32
32
|
N: () => N,
|
|
33
33
|
handleViewsIO: () => handleViewsIO,
|
|
@@ -35,12 +35,12 @@ __export(chunk_F5AJKOC2_exports, {
|
|
|
35
35
|
init_handleViewsIO: () => init_handleViewsIO,
|
|
36
36
|
require_function: () => require_function
|
|
37
37
|
});
|
|
38
|
-
module.exports = __toCommonJS(
|
|
38
|
+
module.exports = __toCommonJS(chunk_LVFPGUOH_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"));
|
|
42
42
|
var require_function = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
43
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
43
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/function.js"(exports) {
|
|
44
44
|
"use strict";
|
|
45
45
|
var __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {
|
|
46
46
|
if (pack || arguments.length === 2) for (var i2 = 0, l2 = from.length, ar; i2 < l2; i2++) {
|
|
@@ -327,7 +327,7 @@ var require_function = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
var require_internal = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
330
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
330
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/internal.js"(exports) {
|
|
331
331
|
"use strict";
|
|
332
332
|
var __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {
|
|
333
333
|
if (pack || arguments.length === 2) for (var i2 = 0, l2 = from.length, ar; i2 < l2; i2++) {
|
|
@@ -466,7 +466,7 @@ var require_internal = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
466
466
|
}
|
|
467
467
|
});
|
|
468
468
|
var require_Apply = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
469
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
469
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Apply.js"(exports) {
|
|
470
470
|
"use strict";
|
|
471
471
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
472
472
|
if (k22 === void 0) k22 = k2;
|
|
@@ -708,7 +708,7 @@ var require_Apply = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
708
708
|
}
|
|
709
709
|
});
|
|
710
710
|
var require_Functor = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
711
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
711
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Functor.js"(exports) {
|
|
712
712
|
"use strict";
|
|
713
713
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
714
714
|
exports.map = map;
|
|
@@ -781,7 +781,7 @@ var require_Functor = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
781
781
|
}
|
|
782
782
|
});
|
|
783
783
|
var require_Applicative = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
784
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
784
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Applicative.js"(exports) {
|
|
785
785
|
"use strict";
|
|
786
786
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
787
787
|
exports.getApplicativeMonoid = getApplicativeMonoid;
|
|
@@ -814,7 +814,7 @@ var require_Applicative = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
814
814
|
}
|
|
815
815
|
});
|
|
816
816
|
var require_Chain = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
817
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
817
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Chain.js"(exports) {
|
|
818
818
|
"use strict";
|
|
819
819
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
820
820
|
exports.chainFirst = chainFirst;
|
|
@@ -852,7 +852,7 @@ var require_Chain = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
852
852
|
}
|
|
853
853
|
});
|
|
854
854
|
var require_ChainRec = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
855
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
855
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/ChainRec.js"(exports) {
|
|
856
856
|
"use strict";
|
|
857
857
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
858
858
|
exports.tailRec = void 0;
|
|
@@ -867,7 +867,7 @@ var require_ChainRec = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
867
867
|
}
|
|
868
868
|
});
|
|
869
869
|
var require_FromEither = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
870
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
870
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/FromEither.js"(exports) {
|
|
871
871
|
"use strict";
|
|
872
872
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
873
873
|
if (k22 === void 0) k22 = k2;
|
|
@@ -983,7 +983,7 @@ var require_FromEither = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
983
983
|
}
|
|
984
984
|
});
|
|
985
985
|
var require_Separated = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
986
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
986
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Separated.js"(exports) {
|
|
987
987
|
"use strict";
|
|
988
988
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
989
989
|
exports.right = exports.left = exports.flap = exports.Functor = exports.Bifunctor = exports.URI = exports.bimap = exports.mapLeft = exports.map = exports.separated = void 0;
|
|
@@ -1042,7 +1042,7 @@ var require_Separated = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1042
1042
|
}
|
|
1043
1043
|
});
|
|
1044
1044
|
var require_Witherable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1045
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
1045
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Witherable.js"(exports) {
|
|
1046
1046
|
"use strict";
|
|
1047
1047
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
1048
1048
|
if (k22 === void 0) k22 = k2;
|
|
@@ -1109,7 +1109,7 @@ var require_Witherable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1109
1109
|
}
|
|
1110
1110
|
});
|
|
1111
1111
|
var require_Either = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1112
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
1112
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Either.js"(exports) {
|
|
1113
1113
|
"use strict";
|
|
1114
1114
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
1115
1115
|
if (k22 === void 0) k22 = k2;
|
|
@@ -1717,7 +1717,7 @@ var require_Either = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1717
1717
|
}
|
|
1718
1718
|
});
|
|
1719
1719
|
var require_FromIO = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1720
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
1720
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/FromIO.js"(exports) {
|
|
1721
1721
|
"use strict";
|
|
1722
1722
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1723
1723
|
exports.fromIOK = fromIOK;
|
|
@@ -1756,7 +1756,7 @@ var require_FromIO = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1756
1756
|
}
|
|
1757
1757
|
});
|
|
1758
1758
|
var require_Task = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1759
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
1759
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Task.js"(exports) {
|
|
1760
1760
|
"use strict";
|
|
1761
1761
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
1762
1762
|
if (k22 === void 0) k22 = k2;
|
|
@@ -2051,7 +2051,7 @@ var require_Task = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2051
2051
|
}
|
|
2052
2052
|
});
|
|
2053
2053
|
var require_Predicate = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2054
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
2054
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Predicate.js"(exports) {
|
|
2055
2055
|
"use strict";
|
|
2056
2056
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2057
2057
|
exports.and = exports.or = exports.not = exports.Contravariant = exports.getMonoidAll = exports.getSemigroupAll = exports.getMonoidAny = exports.getSemigroupAny = exports.URI = exports.contramap = void 0;
|
|
@@ -2125,7 +2125,7 @@ var require_Predicate = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2125
2125
|
}
|
|
2126
2126
|
});
|
|
2127
2127
|
var require_Magma = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2128
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
2128
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Magma.js"(exports) {
|
|
2129
2129
|
"use strict";
|
|
2130
2130
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2131
2131
|
exports.concatAll = exports.endo = exports.filterSecond = exports.filterFirst = exports.reverse = void 0;
|
|
@@ -2180,7 +2180,7 @@ var require_Magma = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2180
2180
|
}
|
|
2181
2181
|
});
|
|
2182
2182
|
var require_Eq = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2183
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
2183
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Eq.js"(exports) {
|
|
2184
2184
|
"use strict";
|
|
2185
2185
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2186
2186
|
exports.eqDate = exports.eqNumber = exports.eqString = exports.eqBoolean = exports.eq = exports.strictEqual = exports.getStructEq = exports.getTupleEq = exports.Contravariant = exports.getMonoid = exports.getSemigroup = exports.eqStrict = exports.URI = exports.contramap = exports.tuple = exports.struct = exports.fromEquals = void 0;
|
|
@@ -2274,7 +2274,7 @@ var require_Eq = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2274
2274
|
}
|
|
2275
2275
|
});
|
|
2276
2276
|
var require_Ord = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2277
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
2277
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Ord.js"(exports) {
|
|
2278
2278
|
"use strict";
|
|
2279
2279
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2280
2280
|
exports.ordDate = exports.ordNumber = exports.ordString = exports.ordBoolean = exports.ord = exports.getDualOrd = exports.getTupleOrd = exports.between = exports.clamp = exports.max = exports.min = exports.geq = exports.leq = exports.gt = exports.lt = exports.equals = exports.trivial = exports.Contravariant = exports.getMonoid = exports.getSemigroup = exports.URI = exports.contramap = exports.reverse = exports.tuple = exports.fromCompare = exports.equalsDefault = void 0;
|
|
@@ -2444,7 +2444,7 @@ var require_Ord = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2444
2444
|
}
|
|
2445
2445
|
});
|
|
2446
2446
|
var require_Semigroup = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2447
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
2447
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Semigroup.js"(exports) {
|
|
2448
2448
|
"use strict";
|
|
2449
2449
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
2450
2450
|
if (k22 === void 0) k22 = k2;
|
|
@@ -2602,7 +2602,7 @@ var require_Semigroup = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2602
2602
|
}
|
|
2603
2603
|
});
|
|
2604
2604
|
var require_Zero = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2605
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
2605
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Zero.js"(exports) {
|
|
2606
2606
|
"use strict";
|
|
2607
2607
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2608
2608
|
exports.guard = guard;
|
|
@@ -2614,7 +2614,7 @@ var require_Zero = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2614
2614
|
}
|
|
2615
2615
|
});
|
|
2616
2616
|
var require_Option = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2617
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
2617
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Option.js"(exports) {
|
|
2618
2618
|
"use strict";
|
|
2619
2619
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
2620
2620
|
if (k22 === void 0) k22 = k2;
|
|
@@ -3156,7 +3156,7 @@ var require_Option = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3156
3156
|
}
|
|
3157
3157
|
});
|
|
3158
3158
|
var require_Compactable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3159
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
3159
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Compactable.js"(exports) {
|
|
3160
3160
|
"use strict";
|
|
3161
3161
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
3162
3162
|
if (k22 === void 0) k22 = k2;
|
|
@@ -3216,7 +3216,7 @@ var require_Compactable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3216
3216
|
}
|
|
3217
3217
|
});
|
|
3218
3218
|
var require_EitherT = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3219
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
3219
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/EitherT.js"(exports) {
|
|
3220
3220
|
"use strict";
|
|
3221
3221
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
3222
3222
|
if (k22 === void 0) k22 = k2;
|
|
@@ -3501,7 +3501,7 @@ var require_EitherT = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3501
3501
|
}
|
|
3502
3502
|
});
|
|
3503
3503
|
var require_Filterable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3504
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
3504
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/Filterable.js"(exports) {
|
|
3505
3505
|
"use strict";
|
|
3506
3506
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3507
3507
|
exports.filter = filter;
|
|
@@ -3584,7 +3584,7 @@ var require_Filterable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3584
3584
|
}
|
|
3585
3585
|
});
|
|
3586
3586
|
var require_FromTask = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3587
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
3587
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/FromTask.js"(exports) {
|
|
3588
3588
|
"use strict";
|
|
3589
3589
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3590
3590
|
exports.fromTaskK = fromTaskK;
|
|
@@ -3623,7 +3623,7 @@ var require_FromTask = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3623
3623
|
}
|
|
3624
3624
|
});
|
|
3625
3625
|
var require_TaskEither = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3626
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
3626
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/lib/TaskEither.js"(exports) {
|
|
3627
3627
|
"use strict";
|
|
3628
3628
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
3629
3629
|
if (k22 === void 0) k22 = k2;
|
|
@@ -26,18 +26,18 @@ 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_MKYJ2GXL_exports = {};
|
|
30
|
+
__export(chunk_MKYJ2GXL_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff,
|
|
32
32
|
init_MigrateDiff: () => init_MigrateDiff
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_MKYJ2GXL_exports);
|
|
35
|
+
var import_chunk_VWV2NY26 = require("./chunk-VWV2NY26.js");
|
|
36
36
|
var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
|
|
37
37
|
var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
|
|
38
38
|
var import_chunk_WIZM7TFT = require("./chunk-WIZM7TFT.js");
|
|
39
|
-
var
|
|
40
|
-
var
|
|
39
|
+
var import_chunk_I7ABLDKM = require("./chunk-I7ABLDKM.js");
|
|
40
|
+
var import_chunk_LVFPGUOH = require("./chunk-LVFPGUOH.js");
|
|
41
41
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
42
42
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
43
43
|
var import_process = __toESM(require("process"));
|
|
@@ -7769,7 +7769,7 @@ ${codeFrame}
|
|
|
7769
7769
|
}
|
|
7770
7770
|
});
|
|
7771
7771
|
var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7772
|
-
"../../node_modules/.pnpm/spdx-license-ids@3.0.
|
|
7772
|
+
"../../node_modules/.pnpm/spdx-license-ids@3.0.20/node_modules/spdx-license-ids/index.json"(exports, module2) {
|
|
7773
7773
|
module2.exports = [
|
|
7774
7774
|
"0BSD",
|
|
7775
7775
|
"3D-Slicer-1.0",
|
|
@@ -7969,6 +7969,8 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
7969
7969
|
"DRL-1.0",
|
|
7970
7970
|
"DRL-1.1",
|
|
7971
7971
|
"DSDP",
|
|
7972
|
+
"DocBook-Schema",
|
|
7973
|
+
"DocBook-XML",
|
|
7972
7974
|
"Dotseqn",
|
|
7973
7975
|
"ECL-1.0",
|
|
7974
7976
|
"ECL-2.0",
|
|
@@ -8032,6 +8034,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8032
8034
|
"Glulxe",
|
|
8033
8035
|
"Graphics-Gems",
|
|
8034
8036
|
"Gutmann",
|
|
8037
|
+
"HIDAPI",
|
|
8035
8038
|
"HP-1986",
|
|
8036
8039
|
"HP-1989",
|
|
8037
8040
|
"HPND",
|
|
@@ -8042,6 +8045,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8042
8045
|
"HPND-Kevlin-Henney",
|
|
8043
8046
|
"HPND-MIT-disclaimer",
|
|
8044
8047
|
"HPND-Markus-Kuhn",
|
|
8048
|
+
"HPND-Netrek",
|
|
8045
8049
|
"HPND-Pbmplus",
|
|
8046
8050
|
"HPND-UC",
|
|
8047
8051
|
"HPND-UC-export-US",
|
|
@@ -8175,7 +8179,6 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8175
8179
|
"NTP",
|
|
8176
8180
|
"NTP-0",
|
|
8177
8181
|
"Naumen",
|
|
8178
|
-
"Net-SNMP",
|
|
8179
8182
|
"NetCDF",
|
|
8180
8183
|
"Newsletr",
|
|
8181
8184
|
"Nokia",
|
|
@@ -8257,6 +8260,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8257
8260
|
"RSCPL",
|
|
8258
8261
|
"Rdisc",
|
|
8259
8262
|
"Ruby",
|
|
8263
|
+
"Ruby-pty",
|
|
8260
8264
|
"SAX-PD",
|
|
8261
8265
|
"SAX-PD-2.0",
|
|
8262
8266
|
"SCEA",
|
|
@@ -8313,6 +8317,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8313
8317
|
"UMich-Merit",
|
|
8314
8318
|
"UPL-1.0",
|
|
8315
8319
|
"URT-RLE",
|
|
8320
|
+
"Ubuntu-font-1.0",
|
|
8316
8321
|
"Unicode-3.0",
|
|
8317
8322
|
"Unicode-DFS-2015",
|
|
8318
8323
|
"Unicode-DFS-2016",
|
|
@@ -8331,6 +8336,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8331
8336
|
"Wsuipa",
|
|
8332
8337
|
"X11",
|
|
8333
8338
|
"X11-distribute-modifications-variant",
|
|
8339
|
+
"X11-swapped",
|
|
8334
8340
|
"XFree86-1.1",
|
|
8335
8341
|
"XSkat",
|
|
8336
8342
|
"Xdebug-1.03",
|
|
@@ -9911,8 +9917,8 @@ var require_typos = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9911
9917
|
var require_fixer = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9912
9918
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/fixer.js"(exports, module2) {
|
|
9913
9919
|
"use strict";
|
|
9914
|
-
var isValidSemver = (0,
|
|
9915
|
-
var cleanSemver = (0,
|
|
9920
|
+
var isValidSemver = (0, import_chunk_VWV2NY26.require_valid)();
|
|
9921
|
+
var cleanSemver = (0, import_chunk_VWV2NY26.require_clean)();
|
|
9916
9922
|
var validateLicense = require_validate_npm_package_license();
|
|
9917
9923
|
var hostedGitInfo = require_lib5();
|
|
9918
9924
|
var isBuiltinModule = require_is_core_module();
|
|
@@ -10540,7 +10546,7 @@ function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
|
|
|
10540
10546
|
}
|
|
10541
10547
|
var __spreadArray, dual;
|
|
10542
10548
|
var init_function = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
10543
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
10549
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/es6/function.js"() {
|
|
10544
10550
|
"use strict";
|
|
10545
10551
|
__spreadArray = function(to, from, pack) {
|
|
10546
10552
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
@@ -10569,7 +10575,7 @@ var init_function = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
10569
10575
|
});
|
|
10570
10576
|
var isLeft, isRight, left, right;
|
|
10571
10577
|
var init_internal = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
10572
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
10578
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/es6/internal.js"() {
|
|
10573
10579
|
"use strict";
|
|
10574
10580
|
isLeft = function(ma) {
|
|
10575
10581
|
return ma._tag === "Left";
|
|
@@ -10599,7 +10605,7 @@ function asUnit(F) {
|
|
|
10599
10605
|
};
|
|
10600
10606
|
}
|
|
10601
10607
|
var init_Functor = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
10602
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
10608
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/es6/Functor.js"() {
|
|
10603
10609
|
"use strict";
|
|
10604
10610
|
}
|
|
10605
10611
|
});
|
|
@@ -10613,13 +10619,13 @@ function tap(M) {
|
|
|
10613
10619
|
};
|
|
10614
10620
|
}
|
|
10615
10621
|
var init_Chain = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
10616
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
10622
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/es6/Chain.js"() {
|
|
10617
10623
|
"use strict";
|
|
10618
10624
|
}
|
|
10619
10625
|
});
|
|
10620
10626
|
var left2, right2, flatMap, _map, _ap, URI, map, Functor, as2, asUnit2, apW, ap, Chain, FromEither, isLeft2, isRight2, getOrElseW, tap2, _FromEither, tryCatch, chainW;
|
|
10621
10627
|
var init_Either = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
10622
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
10628
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/es6/Either.js"() {
|
|
10623
10629
|
"use strict";
|
|
10624
10630
|
init_Chain();
|
|
10625
10631
|
init_function();
|
|
@@ -10748,7 +10754,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10748
10754
|
"../internals/package.json"(exports, module2) {
|
|
10749
10755
|
module2.exports = {
|
|
10750
10756
|
name: "@prisma/internals",
|
|
10751
|
-
version: "5.19.0-dev.
|
|
10757
|
+
version: "5.19.0-dev.14",
|
|
10752
10758
|
description: "This package is intended for Prisma's internal use",
|
|
10753
10759
|
main: "dist/index.js",
|
|
10754
10760
|
types: "dist/index.d.ts",
|
|
@@ -10791,7 +10797,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10791
10797
|
execa: "5.1.1",
|
|
10792
10798
|
"fast-glob": "3.3.2",
|
|
10793
10799
|
"find-up": "5.0.0",
|
|
10794
|
-
"fp-ts": "2.16.
|
|
10800
|
+
"fp-ts": "2.16.9",
|
|
10795
10801
|
"fs-extra": "11.1.1",
|
|
10796
10802
|
"fs-jetpack": "5.1.0",
|
|
10797
10803
|
"global-dirs": "4.0.0",
|
|
@@ -10829,7 +10835,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10829
10835
|
"@prisma/fetch-engine": "workspace:*",
|
|
10830
10836
|
"@prisma/generator-helper": "workspace:*",
|
|
10831
10837
|
"@prisma/get-platform": "workspace:*",
|
|
10832
|
-
"@prisma/prisma-schema-wasm": "5.19.0-
|
|
10838
|
+
"@prisma/prisma-schema-wasm": "5.19.0-26.8a3982b39f6dc8065ba99a0d212b3e18a5cd2d1d",
|
|
10833
10839
|
"@prisma/schema-files-loader": "workspace:*",
|
|
10834
10840
|
arg: "5.0.2",
|
|
10835
10841
|
prompts: "2.4.2"
|
|
@@ -10907,12 +10913,12 @@ function parseQueryEngineError({ errorOutput, reason }) {
|
|
|
10907
10913
|
),
|
|
10908
10914
|
map((errorOutputAsJSON) => {
|
|
10909
10915
|
const defaultMessage = (0, import_chunk_6TE2RIPN.red)((0, import_chunk_6TE2RIPN.bold)(relativizePathInPSLError(errorOutputAsJSON.message)));
|
|
10910
|
-
const getConfigErrorInit = (0,
|
|
10916
|
+
const getConfigErrorInit = (0, import_chunk_LVFPGUOH.$)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
|
|
10911
10917
|
return {
|
|
10912
10918
|
reason: createSchemaValidationError(reason),
|
|
10913
10919
|
errorCode: eJSON.error_code
|
|
10914
10920
|
};
|
|
10915
|
-
}).with({ error_code:
|
|
10921
|
+
}).with({ error_code: import_chunk_LVFPGUOH.N.string }, (eJSON) => {
|
|
10916
10922
|
return {
|
|
10917
10923
|
reason,
|
|
10918
10924
|
errorCode: eJSON.error_code
|
|
@@ -10933,9 +10939,9 @@ var init_queryEngineCommons = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
10933
10939
|
"../internals/src/engine-commands/queryEngineCommons.ts"() {
|
|
10934
10940
|
"use strict";
|
|
10935
10941
|
init_Either();
|
|
10936
|
-
import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
10942
|
+
import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_LVFPGUOH.require_function)());
|
|
10937
10943
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
10938
|
-
(0,
|
|
10944
|
+
(0, import_chunk_LVFPGUOH.init_dist)();
|
|
10939
10945
|
init_relativizePathInPSLError();
|
|
10940
10946
|
createDebugErrorType = (debug4, fnName) => ({ type, reason, error }) => {
|
|
10941
10947
|
debug4(`error of type "${type}" in ${fnName}:
|
|
@@ -11001,7 +11007,7 @@ async function getConfig(options) {
|
|
|
11001
11007
|
}
|
|
11002
11008
|
return Promise.resolve(data);
|
|
11003
11009
|
}
|
|
11004
|
-
const error = (0,
|
|
11010
|
+
const error = (0, import_chunk_LVFPGUOH.$)(configEither.left).with({ type: "wasm-error" }, (e) => {
|
|
11005
11011
|
debugErrorType(e);
|
|
11006
11012
|
if (isWasmPanic(e.error)) {
|
|
11007
11013
|
const { message, stack } = getWasmError(e.error);
|
|
@@ -11066,9 +11072,9 @@ var init_getConfig = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
11066
11072
|
"../internals/src/engine-commands/getConfig.ts"() {
|
|
11067
11073
|
"use strict";
|
|
11068
11074
|
init_Either();
|
|
11069
|
-
import_function3 = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
11075
|
+
import_function3 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_LVFPGUOH.require_function)());
|
|
11070
11076
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
11071
|
-
(0,
|
|
11077
|
+
(0, import_chunk_LVFPGUOH.init_dist)();
|
|
11072
11078
|
init_panic();
|
|
11073
11079
|
init_schemaFileInput();
|
|
11074
11080
|
init_wasm();
|
|
@@ -11079,7 +11085,7 @@ var init_getConfig = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
11079
11085
|
SCHEMA_VALIDATION_ERROR_CODE = "P1012";
|
|
11080
11086
|
GetConfigError = class extends Error {
|
|
11081
11087
|
constructor(params) {
|
|
11082
|
-
const constructedErrorMessage = (0,
|
|
11088
|
+
const constructedErrorMessage = (0, import_chunk_LVFPGUOH.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
|
11083
11089
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
|
11084
11090
|
return `${reason}
|
|
11085
11091
|
${errorCodeMessage}
|
|
@@ -11443,7 +11449,7 @@ var init_MigrateDiff = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
11443
11449
|
import_fs_jetpack = (0, import_chunk_WWAWV7DQ.__toESM)(require_main());
|
|
11444
11450
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
11445
11451
|
init_getSchema();
|
|
11446
|
-
(0,
|
|
11452
|
+
(0, import_chunk_I7ABLDKM.init_Migrate)();
|
|
11447
11453
|
(0, import_chunk_TKAGMA5K.init_captureStdout)();
|
|
11448
11454
|
debug3 = (0, import_debug3.default)("prisma:migrate:diff");
|
|
11449
11455
|
helpOptions = (0, import_internals.format)(
|
|
@@ -11621,7 +11627,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Flags")}
|
|
|
11621
11627
|
url: `file:${d1Database}`
|
|
11622
11628
|
};
|
|
11623
11629
|
}
|
|
11624
|
-
const migrate = new
|
|
11630
|
+
const migrate = new import_chunk_I7ABLDKM.Migrate();
|
|
11625
11631
|
const captureStdout = new import_chunk_TKAGMA5K.CaptureStdout();
|
|
11626
11632
|
const outputPath = args["--output"];
|
|
11627
11633
|
const isOutputDefined = Boolean(outputPath);
|
|
@@ -26,18 +26,18 @@ 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_MRIGZ6M4_exports = {};
|
|
30
|
+
__export(chunk_MRIGZ6M4_exports, {
|
|
31
31
|
MigrateDev: () => MigrateDev,
|
|
32
32
|
init_MigrateDev: () => init_MigrateDev
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_MRIGZ6M4_exports);
|
|
35
35
|
var import_chunk_IFCV5MY4 = require("./chunk-IFCV5MY4.js");
|
|
36
36
|
var import_chunk_SGCF5OHF = require("./chunk-SGCF5OHF.js");
|
|
37
37
|
var import_chunk_EFPE3Q7J = require("./chunk-EFPE3Q7J.js");
|
|
38
38
|
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
|
39
39
|
var import_chunk_6QFE3AWR = require("./chunk-6QFE3AWR.js");
|
|
40
|
-
var
|
|
40
|
+
var import_chunk_I7ABLDKM = require("./chunk-I7ABLDKM.js");
|
|
41
41
|
var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
|
|
42
42
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
|
43
43
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
@@ -51,7 +51,7 @@ var debug, _MigrateDev, MigrateDev;
|
|
|
51
51
|
var init_MigrateDev = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
52
52
|
"src/commands/MigrateDev.ts"() {
|
|
53
53
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
54
|
-
(0,
|
|
54
|
+
(0, import_chunk_I7ABLDKM.init_Migrate)();
|
|
55
55
|
(0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
|
|
56
56
|
(0, import_chunk_U374EXYQ.init_errors)();
|
|
57
57
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
@@ -103,7 +103,7 @@ var init_MigrateDev = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
103
103
|
if (wasDbCreated) {
|
|
104
104
|
process.stdout.write(wasDbCreated + "\n\n");
|
|
105
105
|
}
|
|
106
|
-
const migrate = new
|
|
106
|
+
const migrate = new import_chunk_I7ABLDKM.Migrate(schemaPath);
|
|
107
107
|
let devDiagnostic;
|
|
108
108
|
try {
|
|
109
109
|
devDiagnostic = await migrate.devDiagnostic();
|
|
@@ -26,20 +26,20 @@ 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_MWD4ITZX_exports = {};
|
|
30
|
+
__export(chunk_MWD4ITZX_exports, {
|
|
31
31
|
getDatabaseVersionSafe: () => getDatabaseVersionSafe,
|
|
32
32
|
init_getDatabaseVersionSafe: () => init_getDatabaseVersionSafe
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_MWD4ITZX_exports);
|
|
35
|
+
var import_chunk_4OQCFE3G = require("./chunk-4OQCFE3G.js");
|
|
36
36
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
37
37
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
38
38
|
async function getDatabaseVersionSafe(args) {
|
|
39
39
|
let engine;
|
|
40
40
|
let dbVersion;
|
|
41
41
|
try {
|
|
42
|
-
engine = new
|
|
42
|
+
engine = new import_chunk_4OQCFE3G.SchemaEngine({});
|
|
43
43
|
dbVersion = await engine.getDatabaseVersion(args);
|
|
44
44
|
} catch (e) {
|
|
45
45
|
debug(e);
|
|
@@ -53,7 +53,7 @@ async function getDatabaseVersionSafe(args) {
|
|
|
53
53
|
var debug;
|
|
54
54
|
var init_getDatabaseVersionSafe = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
55
55
|
"src/utils/getDatabaseVersionSafe.ts"() {
|
|
56
|
-
(0,
|
|
56
|
+
(0, import_chunk_4OQCFE3G.init_SchemaEngine)();
|
|
57
57
|
debug = (0, import_debug.default)("prisma:cli");
|
|
58
58
|
}
|
|
59
59
|
});
|
|
@@ -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_O234LSYW_exports = {};
|
|
30
|
+
__export(chunk_O234LSYW_exports, {
|
|
31
31
|
DbPull: () => DbPull,
|
|
32
32
|
init_DbPull: () => init_DbPull
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_O234LSYW_exports);
|
|
35
35
|
var import_chunk_BAFPAACN = require("./chunk-BAFPAACN.js");
|
|
36
36
|
var import_chunk_GRGGAY6L = require("./chunk-GRGGAY6L.js");
|
|
37
37
|
var import_chunk_35LAJN5S = require("./chunk-35LAJN5S.js");
|
|
@@ -40,8 +40,8 @@ var import_chunk_W3ROQKBN = require("./chunk-W3ROQKBN.js");
|
|
|
40
40
|
var import_chunk_QBK5XTJE = require("./chunk-QBK5XTJE.js");
|
|
41
41
|
var import_chunk_INC2OACE = require("./chunk-INC2OACE.js");
|
|
42
42
|
var import_chunk_GN5BY5N2 = require("./chunk-GN5BY5N2.js");
|
|
43
|
-
var
|
|
44
|
-
var
|
|
43
|
+
var import_chunk_4OQCFE3G = require("./chunk-4OQCFE3G.js");
|
|
44
|
+
var import_chunk_LVFPGUOH = require("./chunk-LVFPGUOH.js");
|
|
45
45
|
var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
|
|
46
46
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
47
47
|
var import_chunk_KEBB7UIB = require("./chunk-KEBB7UIB.js");
|
|
@@ -54,8 +54,8 @@ var debug, _DbPull, DbPull;
|
|
|
54
54
|
var init_DbPull = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
55
55
|
"src/commands/DbPull.ts"() {
|
|
56
56
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
57
|
-
(0,
|
|
58
|
-
(0,
|
|
57
|
+
(0, import_chunk_LVFPGUOH.init_dist)();
|
|
58
|
+
(0, import_chunk_4OQCFE3G.init_SchemaEngine)();
|
|
59
59
|
(0, import_chunk_GN5BY5N2.init_countModelsAndTypes)();
|
|
60
60
|
(0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
|
|
61
61
|
(0, import_chunk_U374EXYQ.init_errors)();
|
|
@@ -121,7 +121,7 @@ var init_DbPull = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
121
121
|
if (!url && !schemaPath && !fromD1) {
|
|
122
122
|
throw new import_chunk_U374EXYQ.NoSchemaFoundError();
|
|
123
123
|
}
|
|
124
|
-
const { firstDatasource, schema, validationWarning } = await (0,
|
|
124
|
+
const { firstDatasource, schema, validationWarning } = await (0, import_chunk_LVFPGUOH.$)({ url, schemaPath, fromD1 }).when(
|
|
125
125
|
(input) => input.schemaPath !== null,
|
|
126
126
|
async (input) => {
|
|
127
127
|
const rawSchema = await (0, import_internals.getSchema)(input.schemaPath);
|
|
@@ -217,7 +217,7 @@ Some information will be lost (relations, comments, mapped fields, @ignore...),
|
|
|
217
217
|
)} for more info.`);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
const engine = new
|
|
220
|
+
const engine = new import_chunk_4OQCFE3G.SchemaEngine({
|
|
221
221
|
schemaPath: schemaPath ?? void 0
|
|
222
222
|
});
|
|
223
223
|
const basedOn = !args["--url"] && schemaPath ? ` based on datasource defined in ${(0, import_chunk_6TE2RIPN.underline)(import_path.default.relative(process.cwd(), schemaPath))}` : "";
|