@prisma/migrate 5.19.0-integration-feat-typed-sql.8 → 5.19.0-integration-feat-typed-sql.9
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-RCUWKAMA.js → chunk-76XWADEV.js} +6 -6
- package/dist/{chunk-NYO4BFPM.js → chunk-BAVMZZAR.js} +7 -7
- package/dist/{chunk-JUKG43I7.js → chunk-E3KHFUFQ.js} +9 -8
- package/dist/{chunk-3XC3TSNW.js → chunk-EXUBPCXZ.js} +9 -9
- package/dist/{chunk-57P3I6VD.js → chunk-GJN3CSXW.js} +6 -6
- package/dist/{chunk-43FZ66H4.js → chunk-LLGEQ76N.js} +6 -6
- package/dist/{chunk-F5AJKOC2.js → chunk-LVFPGUOH.js} +28 -28
- package/dist/{chunk-HRWTXP3A.js → chunk-MWEO3VUS.js} +7 -7
- package/dist/{chunk-EJHQGKBZ.js → chunk-NOGVKXTH.js} +6 -6
- package/dist/{chunk-66H5YYCH.js → chunk-SIK6E5ZN.js} +33 -27
- package/dist/{chunk-MCZHSRZA.js → chunk-SV5GANSI.js} +6 -6
- package/dist/{chunk-CP7NCIWV.js → chunk-UJWMQPUH.js} +6 -6
- package/dist/{chunk-ODPKPRK7.js → chunk-VWV2NY26.js} +12 -12
- package/dist/{chunk-DHVDM7FB.js → chunk-WWKW4KTC.js} +34 -28
- package/dist/{chunk-FR7QCS5T.js → chunk-XLLUFIQK.js} +6 -6
- package/dist/{chunk-GLGXA7RW.js → chunk-XVL5RF2T.js} +6 -6
- package/dist/{chunk-SXEOBCZD.js → chunk-ZBOJAYON.js} +6 -6
- 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 +40 -40
- package/dist/utils/getDatabaseVersionSafe.js +5 -5
- package/dist/utils/introspectSql.js +4 -4
- 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,14 +26,14 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_MWEO3VUS_exports = {};
|
|
30
|
+
__export(chunk_MWEO3VUS_exports, {
|
|
31
31
|
Migrate: () => Migrate,
|
|
32
32
|
init_Migrate: () => init_Migrate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_MWEO3VUS_exports);
|
|
35
35
|
var import_chunk_6C7ESGWY = require("./chunk-6C7ESGWY.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_XLLUFIQK = require("./chunk-XLLUFIQK.js");
|
|
37
37
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
38
38
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
39
39
|
var import_engines_version = require("@prisma/engines-version");
|
|
@@ -543,19 +543,19 @@ var init_Migrate = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
543
543
|
"src/Migrate.ts"() {
|
|
544
544
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
545
545
|
import_log_update = (0, import_chunk_WWAWV7DQ.__toESM)(require_log_update());
|
|
546
|
-
(0,
|
|
546
|
+
(0, import_chunk_XLLUFIQK.init_SchemaEngine)();
|
|
547
547
|
packageJson = eval(`require('../package.json')`);
|
|
548
548
|
Migrate = class {
|
|
549
549
|
constructor(schemaPath, enabledPreviewFeatures) {
|
|
550
550
|
if (schemaPath) {
|
|
551
551
|
this.schemaPath = import_path.default.resolve(process.cwd(), schemaPath);
|
|
552
552
|
this.migrationsDirectoryPath = import_path.default.join(import_path.default.dirname(this.schemaPath), "migrations");
|
|
553
|
-
this.engine = new
|
|
553
|
+
this.engine = new import_chunk_XLLUFIQK.SchemaEngine({
|
|
554
554
|
schemaPath: this.schemaPath,
|
|
555
555
|
enabledPreviewFeatures
|
|
556
556
|
});
|
|
557
557
|
} else {
|
|
558
|
-
this.engine = new
|
|
558
|
+
this.engine = new import_chunk_XLLUFIQK.SchemaEngine({
|
|
559
559
|
enabledPreviewFeatures
|
|
560
560
|
});
|
|
561
561
|
}
|
|
@@ -16,14 +16,14 @@ 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
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_NOGVKXTH_exports = {};
|
|
20
|
+
__export(chunk_NOGVKXTH_exports, {
|
|
21
21
|
introspectSql: () => introspectSql
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_NOGVKXTH_exports);
|
|
24
|
+
var import_chunk_XLLUFIQK = require("./chunk-XLLUFIQK.js");
|
|
25
25
|
var import_internals = require("@prisma/internals");
|
|
26
|
-
(0,
|
|
26
|
+
(0, import_chunk_XLLUFIQK.init_SchemaEngine)();
|
|
27
27
|
async function introspectSql(schemaPath, queries) {
|
|
28
28
|
const schema = await (0, import_internals.getSchemaWithPath)(schemaPath);
|
|
29
29
|
const config = await (0, import_internals.getConfig)({ datamodel: schema.schemas });
|
|
@@ -38,7 +38,7 @@ async function introspectSql(schemaPath, queries) {
|
|
|
38
38
|
if (!url) {
|
|
39
39
|
throw new Error(`Could not get url from datasource ${firstDatasource.name} in ${schema.schemaPath}`);
|
|
40
40
|
}
|
|
41
|
-
const schemaEngine = new
|
|
41
|
+
const schemaEngine = new import_chunk_XLLUFIQK.SchemaEngine({ schemaPath: schema.schemaPath });
|
|
42
42
|
try {
|
|
43
43
|
const result = await schemaEngine.introspectSql({
|
|
44
44
|
url,
|
|
@@ -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_SIK6E5ZN_exports = {};
|
|
30
|
+
__export(chunk_SIK6E5ZN_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff,
|
|
32
32
|
init_MigrateDiff: () => init_MigrateDiff
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_SIK6E5ZN_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_MWEO3VUS = require("./chunk-MWEO3VUS.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"));
|
|
@@ -8541,7 +8541,7 @@ ${codeFrame}
|
|
|
8541
8541
|
}
|
|
8542
8542
|
});
|
|
8543
8543
|
var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8544
|
-
"../../node_modules/.pnpm/spdx-license-ids@3.0.
|
|
8544
|
+
"../../node_modules/.pnpm/spdx-license-ids@3.0.20/node_modules/spdx-license-ids/index.json"(exports, module2) {
|
|
8545
8545
|
module2.exports = [
|
|
8546
8546
|
"0BSD",
|
|
8547
8547
|
"3D-Slicer-1.0",
|
|
@@ -8741,6 +8741,8 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8741
8741
|
"DRL-1.0",
|
|
8742
8742
|
"DRL-1.1",
|
|
8743
8743
|
"DSDP",
|
|
8744
|
+
"DocBook-Schema",
|
|
8745
|
+
"DocBook-XML",
|
|
8744
8746
|
"Dotseqn",
|
|
8745
8747
|
"ECL-1.0",
|
|
8746
8748
|
"ECL-2.0",
|
|
@@ -8804,6 +8806,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8804
8806
|
"Glulxe",
|
|
8805
8807
|
"Graphics-Gems",
|
|
8806
8808
|
"Gutmann",
|
|
8809
|
+
"HIDAPI",
|
|
8807
8810
|
"HP-1986",
|
|
8808
8811
|
"HP-1989",
|
|
8809
8812
|
"HPND",
|
|
@@ -8814,6 +8817,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8814
8817
|
"HPND-Kevlin-Henney",
|
|
8815
8818
|
"HPND-MIT-disclaimer",
|
|
8816
8819
|
"HPND-Markus-Kuhn",
|
|
8820
|
+
"HPND-Netrek",
|
|
8817
8821
|
"HPND-Pbmplus",
|
|
8818
8822
|
"HPND-UC",
|
|
8819
8823
|
"HPND-UC-export-US",
|
|
@@ -8947,7 +8951,6 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8947
8951
|
"NTP",
|
|
8948
8952
|
"NTP-0",
|
|
8949
8953
|
"Naumen",
|
|
8950
|
-
"Net-SNMP",
|
|
8951
8954
|
"NetCDF",
|
|
8952
8955
|
"Newsletr",
|
|
8953
8956
|
"Nokia",
|
|
@@ -9029,6 +9032,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9029
9032
|
"RSCPL",
|
|
9030
9033
|
"Rdisc",
|
|
9031
9034
|
"Ruby",
|
|
9035
|
+
"Ruby-pty",
|
|
9032
9036
|
"SAX-PD",
|
|
9033
9037
|
"SAX-PD-2.0",
|
|
9034
9038
|
"SCEA",
|
|
@@ -9085,6 +9089,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9085
9089
|
"UMich-Merit",
|
|
9086
9090
|
"UPL-1.0",
|
|
9087
9091
|
"URT-RLE",
|
|
9092
|
+
"Ubuntu-font-1.0",
|
|
9088
9093
|
"Unicode-3.0",
|
|
9089
9094
|
"Unicode-DFS-2015",
|
|
9090
9095
|
"Unicode-DFS-2016",
|
|
@@ -9103,6 +9108,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9103
9108
|
"Wsuipa",
|
|
9104
9109
|
"X11",
|
|
9105
9110
|
"X11-distribute-modifications-variant",
|
|
9111
|
+
"X11-swapped",
|
|
9106
9112
|
"XFree86-1.1",
|
|
9107
9113
|
"XSkat",
|
|
9108
9114
|
"Xdebug-1.03",
|
|
@@ -10683,8 +10689,8 @@ var require_typos = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10683
10689
|
var require_fixer = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
10684
10690
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/fixer.js"(exports, module2) {
|
|
10685
10691
|
"use strict";
|
|
10686
|
-
var isValidSemver = (0,
|
|
10687
|
-
var cleanSemver = (0,
|
|
10692
|
+
var isValidSemver = (0, import_chunk_VWV2NY26.require_valid)();
|
|
10693
|
+
var cleanSemver = (0, import_chunk_VWV2NY26.require_clean)();
|
|
10688
10694
|
var validateLicense = require_validate_npm_package_license();
|
|
10689
10695
|
var hostedGitInfo = require_lib5();
|
|
10690
10696
|
var isBuiltinModule = require_is_core_module();
|
|
@@ -11312,7 +11318,7 @@ function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
|
|
|
11312
11318
|
}
|
|
11313
11319
|
var __spreadArray, dual;
|
|
11314
11320
|
var init_function = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
11315
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
11321
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/es6/function.js"() {
|
|
11316
11322
|
"use strict";
|
|
11317
11323
|
__spreadArray = function(to, from, pack) {
|
|
11318
11324
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
@@ -11341,7 +11347,7 @@ var init_function = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
11341
11347
|
});
|
|
11342
11348
|
var isLeft, isRight, left, right;
|
|
11343
11349
|
var init_internal = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
11344
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
11350
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/es6/internal.js"() {
|
|
11345
11351
|
"use strict";
|
|
11346
11352
|
isLeft = function(ma) {
|
|
11347
11353
|
return ma._tag === "Left";
|
|
@@ -11371,7 +11377,7 @@ function asUnit(F) {
|
|
|
11371
11377
|
};
|
|
11372
11378
|
}
|
|
11373
11379
|
var init_Functor = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
11374
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
11380
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/es6/Functor.js"() {
|
|
11375
11381
|
"use strict";
|
|
11376
11382
|
}
|
|
11377
11383
|
});
|
|
@@ -11385,13 +11391,13 @@ function tap(M) {
|
|
|
11385
11391
|
};
|
|
11386
11392
|
}
|
|
11387
11393
|
var init_Chain = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
11388
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
11394
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/es6/Chain.js"() {
|
|
11389
11395
|
"use strict";
|
|
11390
11396
|
}
|
|
11391
11397
|
});
|
|
11392
11398
|
var left2, right2, flatMap, _map, _ap, URI, map, Functor, as2, asUnit2, apW, ap, Chain, FromEither, isLeft2, isRight2, getOrElseW, tap2, _FromEither, tryCatch, chainW;
|
|
11393
11399
|
var init_Either = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
11394
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
11400
|
+
"../../node_modules/.pnpm/fp-ts@2.16.9/node_modules/fp-ts/es6/Either.js"() {
|
|
11395
11401
|
"use strict";
|
|
11396
11402
|
init_Chain();
|
|
11397
11403
|
init_function();
|
|
@@ -11565,7 +11571,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
11565
11571
|
execa: "5.1.1",
|
|
11566
11572
|
"fast-glob": "3.3.2",
|
|
11567
11573
|
"find-up": "5.0.0",
|
|
11568
|
-
"fp-ts": "2.16.
|
|
11574
|
+
"fp-ts": "2.16.9",
|
|
11569
11575
|
"fs-extra": "11.1.1",
|
|
11570
11576
|
"fs-jetpack": "5.1.0",
|
|
11571
11577
|
"global-dirs": "4.0.0",
|
|
@@ -11604,7 +11610,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
11604
11610
|
"@prisma/fetch-engine": "workspace:*",
|
|
11605
11611
|
"@prisma/generator-helper": "workspace:*",
|
|
11606
11612
|
"@prisma/get-platform": "workspace:*",
|
|
11607
|
-
"@prisma/prisma-schema-wasm": "5.19.0-
|
|
11613
|
+
"@prisma/prisma-schema-wasm": "5.19.0-25.feat-typed-sql-nullability-860858bb818708261f36cd05bc915e603aae5004",
|
|
11608
11614
|
"@prisma/schema-files-loader": "workspace:*",
|
|
11609
11615
|
arg: "5.0.2",
|
|
11610
11616
|
prompts: "2.4.2"
|
|
@@ -11682,12 +11688,12 @@ function parseQueryEngineError({ errorOutput, reason }) {
|
|
|
11682
11688
|
),
|
|
11683
11689
|
map((errorOutputAsJSON) => {
|
|
11684
11690
|
const defaultMessage = (0, import_chunk_6TE2RIPN.red)((0, import_chunk_6TE2RIPN.bold)(relativizePathInPSLError(errorOutputAsJSON.message)));
|
|
11685
|
-
const getConfigErrorInit = (0,
|
|
11691
|
+
const getConfigErrorInit = (0, import_chunk_LVFPGUOH.$)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
|
|
11686
11692
|
return {
|
|
11687
11693
|
reason: createSchemaValidationError(reason),
|
|
11688
11694
|
errorCode: eJSON.error_code
|
|
11689
11695
|
};
|
|
11690
|
-
}).with({ error_code:
|
|
11696
|
+
}).with({ error_code: import_chunk_LVFPGUOH.N.string }, (eJSON) => {
|
|
11691
11697
|
return {
|
|
11692
11698
|
reason,
|
|
11693
11699
|
errorCode: eJSON.error_code
|
|
@@ -11708,9 +11714,9 @@ var init_queryEngineCommons = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
11708
11714
|
"../internals/src/engine-commands/queryEngineCommons.ts"() {
|
|
11709
11715
|
"use strict";
|
|
11710
11716
|
init_Either();
|
|
11711
|
-
import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
11717
|
+
import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_LVFPGUOH.require_function)());
|
|
11712
11718
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
11713
|
-
(0,
|
|
11719
|
+
(0, import_chunk_LVFPGUOH.init_dist)();
|
|
11714
11720
|
init_relativizePathInPSLError();
|
|
11715
11721
|
createDebugErrorType = (debug4, fnName) => ({ type, reason, error }) => {
|
|
11716
11722
|
debug4(`error of type "${type}" in ${fnName}:
|
|
@@ -11776,7 +11782,7 @@ async function getConfig(options) {
|
|
|
11776
11782
|
}
|
|
11777
11783
|
return Promise.resolve(data);
|
|
11778
11784
|
}
|
|
11779
|
-
const error = (0,
|
|
11785
|
+
const error = (0, import_chunk_LVFPGUOH.$)(configEither.left).with({ type: "wasm-error" }, (e) => {
|
|
11780
11786
|
debugErrorType(e);
|
|
11781
11787
|
if (isWasmPanic(e.error)) {
|
|
11782
11788
|
const { message, stack } = getWasmError(e.error);
|
|
@@ -11841,9 +11847,9 @@ var init_getConfig = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
11841
11847
|
"../internals/src/engine-commands/getConfig.ts"() {
|
|
11842
11848
|
"use strict";
|
|
11843
11849
|
init_Either();
|
|
11844
|
-
import_function3 = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
11850
|
+
import_function3 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_LVFPGUOH.require_function)());
|
|
11845
11851
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
11846
|
-
(0,
|
|
11852
|
+
(0, import_chunk_LVFPGUOH.init_dist)();
|
|
11847
11853
|
init_panic();
|
|
11848
11854
|
init_schemaFileInput();
|
|
11849
11855
|
init_wasm();
|
|
@@ -11854,7 +11860,7 @@ var init_getConfig = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
11854
11860
|
SCHEMA_VALIDATION_ERROR_CODE = "P1012";
|
|
11855
11861
|
GetConfigError = class extends Error {
|
|
11856
11862
|
constructor(params) {
|
|
11857
|
-
const constructedErrorMessage = (0,
|
|
11863
|
+
const constructedErrorMessage = (0, import_chunk_LVFPGUOH.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
|
11858
11864
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
|
11859
11865
|
return `${reason}
|
|
11860
11866
|
${errorCodeMessage}
|
|
@@ -12218,7 +12224,7 @@ var init_MigrateDiff = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
12218
12224
|
import_fs_jetpack = (0, import_chunk_WWAWV7DQ.__toESM)(require_main());
|
|
12219
12225
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
12220
12226
|
init_getSchema();
|
|
12221
|
-
(0,
|
|
12227
|
+
(0, import_chunk_MWEO3VUS.init_Migrate)();
|
|
12222
12228
|
(0, import_chunk_TKAGMA5K.init_captureStdout)();
|
|
12223
12229
|
debug3 = (0, import_debug3.default)("prisma:migrate:diff");
|
|
12224
12230
|
helpOptions = (0, import_internals.format)(
|
|
@@ -12396,7 +12402,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Flags")}
|
|
|
12396
12402
|
url: `file:${d1Database}`
|
|
12397
12403
|
};
|
|
12398
12404
|
}
|
|
12399
|
-
const migrate = new
|
|
12405
|
+
const migrate = new import_chunk_MWEO3VUS.Migrate();
|
|
12400
12406
|
const captureStdout = new import_chunk_TKAGMA5K.CaptureStdout();
|
|
12401
12407
|
const outputPath = args["--output"];
|
|
12402
12408
|
const isOutputDefined = Boolean(outputPath);
|
|
@@ -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_SV5GANSI_exports = {};
|
|
30
|
+
__export(chunk_SV5GANSI_exports, {
|
|
31
31
|
MigrateStatus: () => MigrateStatus,
|
|
32
32
|
init_MigrateStatus: () => init_MigrateStatus
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_SV5GANSI_exports);
|
|
35
|
+
var import_chunk_MWEO3VUS = require("./chunk-MWEO3VUS.js");
|
|
36
36
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
|
37
37
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
38
38
|
var import_chunk_KEBB7UIB = require("./chunk-KEBB7UIB.js");
|
|
@@ -44,7 +44,7 @@ var debug, _MigrateStatus, MigrateStatus;
|
|
|
44
44
|
var init_MigrateStatus = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
45
45
|
"src/commands/MigrateStatus.ts"() {
|
|
46
46
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
47
|
-
(0,
|
|
47
|
+
(0, import_chunk_MWEO3VUS.init_Migrate)();
|
|
48
48
|
(0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
|
|
49
49
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
50
50
|
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
|
@@ -74,7 +74,7 @@ var init_MigrateStatus = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
74
74
|
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
|
|
75
75
|
const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
|
|
76
76
|
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_KEBB7UIB.getDatasourceInfo)({ schemaPath }) });
|
|
77
|
-
const migrate = new
|
|
77
|
+
const migrate = new import_chunk_MWEO3VUS.Migrate(schemaPath);
|
|
78
78
|
await (0, import_chunk_KEBB7UIB.ensureCanConnectToDatabase)(schemaPath);
|
|
79
79
|
let diagnoseResult;
|
|
80
80
|
let listMigrationDirectoriesResult;
|
|
@@ -26,14 +26,14 @@ 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_UJWMQPUH_exports = {};
|
|
30
|
+
__export(chunk_UJWMQPUH_exports, {
|
|
31
31
|
MigrateDeploy: () => MigrateDeploy,
|
|
32
32
|
init_MigrateDeploy: () => init_MigrateDeploy
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_UJWMQPUH_exports);
|
|
35
35
|
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_MWEO3VUS = require("./chunk-MWEO3VUS.js");
|
|
37
37
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
|
38
38
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
39
39
|
var import_chunk_KEBB7UIB = require("./chunk-KEBB7UIB.js");
|
|
@@ -45,7 +45,7 @@ var debug, _MigrateDeploy, MigrateDeploy;
|
|
|
45
45
|
var init_MigrateDeploy = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
46
46
|
"src/commands/MigrateDeploy.ts"() {
|
|
47
47
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
48
|
-
(0,
|
|
48
|
+
(0, import_chunk_MWEO3VUS.init_Migrate)();
|
|
49
49
|
(0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
|
|
50
50
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
51
51
|
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
|
@@ -76,7 +76,7 @@ var init_MigrateDeploy = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
76
76
|
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
|
|
77
77
|
const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
|
|
78
78
|
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_KEBB7UIB.getDatasourceInfo)({ schemaPath }) });
|
|
79
|
-
const migrate = new
|
|
79
|
+
const migrate = new import_chunk_MWEO3VUS.Migrate(schemaPath);
|
|
80
80
|
try {
|
|
81
81
|
const wasDbCreated = await (0, import_chunk_KEBB7UIB.ensureDatabaseExists)("apply", schemaPath);
|
|
82
82
|
if (wasDbCreated) {
|