@prisma/migrate 6.3.0-integration-simpler-typeinfo-query.1 → 6.3.0-integration-fix-subcommands-esm-projects.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 +5 -5
- package/dist/SchemaEngine.js +5 -5
- package/dist/bin.js +41 -42
- package/dist/{chunk-BAVMZZAR.js → chunk-4RGXNW3L.js} +12 -12
- package/dist/{chunk-XLLUFIQK.js → chunk-7MUF3HLX.js} +9 -8
- package/dist/{chunk-GJN3CSXW.js → chunk-AOCCG7RR.js} +6 -6
- package/dist/{chunk-ZBOJAYON.js → chunk-BMHH2WUY.js} +6 -6
- package/dist/{chunk-55NRLWME.js → chunk-CGIS3FNO.js} +1029 -339
- package/dist/{chunk-ZLGLVUFD.js → chunk-E2XKFV2C.js} +8 -8
- package/dist/{chunk-LVFPGUOH.js → chunk-E3UZYEGF.js} +92 -87
- package/dist/{chunk-MWEO3VUS.js → chunk-H3UYLUNG.js} +11 -9
- package/dist/{chunk-BAFPAACN.js → chunk-ILJRJJ3S.js} +4 -4
- package/dist/{chunk-E3KHFUFQ.js → chunk-J77IRNPE.js} +9 -124
- package/dist/{chunk-EXUBPCXZ.js → chunk-MOTXHF3A.js} +18 -18
- package/dist/{chunk-VWV2NY26.js → chunk-NKQGJ3AE.js} +7 -3
- package/dist/{chunk-XVL5RF2T.js → chunk-Q5KENGJU.js} +17 -16
- package/dist/{chunk-UJWMQPUH.js → chunk-Q7P4QXBI.js} +10 -10
- package/dist/{chunk-LLGEQ76N.js → chunk-SR3XX66X.js} +16 -16
- package/dist/{chunk-W3ROQKBN.js → chunk-V7DE6JTG.js} +4 -4
- package/dist/{chunk-SV5GANSI.js → chunk-VYDT2HGZ.js} +10 -10
- package/dist/{chunk-76XWADEV.js → chunk-VZBP3FDY.js} +11 -11
- package/dist/{chunk-5VYRCIVT.js → chunk-WEF5VDTU.js} +100 -182
- package/dist/{chunk-RYWEOVLN.js → chunk-WJT3IOMB.js} +6 -6
- package/dist/{chunk-KEBB7UIB.js → chunk-XJQP3B4W.js} +5 -3
- package/dist/{chunk-YOW3VBYS.js → chunk-XQJTDY7A.js} +6 -6
- package/dist/{chunk-WIZM7TFT.js → chunk-YKUZUAXA.js} +443 -55
- package/dist/commands/DbDrop.js +3 -3
- package/dist/commands/DbExecute.js +6 -6
- package/dist/commands/DbPull.js +8 -8
- package/dist/commands/DbPush.js +7 -7
- package/dist/commands/DbSeed.js +4 -5
- package/dist/commands/MigrateDeploy.js +7 -7
- package/dist/commands/MigrateDev.js +8 -9
- package/dist/commands/MigrateDiff.js +7 -8
- package/dist/commands/MigrateReset.js +8 -9
- package/dist/commands/MigrateResolve.js +7 -7
- package/dist/commands/MigrateStatus.js +7 -7
- package/dist/index.js +52 -53
- package/dist/internals/src/cli/getTypescriptVersion.d.ts +1 -0
- package/dist/internals/src/client/getClientEngineType.d.ts +2 -1
- package/dist/internals/src/index.d.ts +2 -0
- package/dist/internals/src/tracing/types.d.ts +26 -16
- package/dist/internals/src/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
- package/dist/internals/src/utils/prismaPostgres.d.ts +3 -0
- package/dist/migrate/src/Migrate.d.ts +2 -1
- package/dist/migrate/src/utils/ensureDatabaseExists.d.ts +1 -1
- package/dist/migrate/src/utils/printDatasources.d.ts +2 -1
- package/dist/{multipart-parser-KKECAI5D.js → multipart-parser-73VM3J4A.js} +10 -7
- package/dist/{multipart-parser-47FFAP42-P3F6TPHJ.js → multipart-parser-ITART6UP-FFJAMHWE.js} +25 -22
- package/dist/typescript-AILDXN3I.js +205230 -0
- package/dist/typescript-WN4QH2CP.js +205192 -0
- package/dist/utils/ensureDatabaseExists.js +7 -7
- package/dist/utils/getDatabaseVersionSafe.js +5 -5
- package/dist/utils/introspectSql.js +4 -4
- package/dist/utils/removeSchemaFiles.js +3 -3
- package/dist/utils/saveSchemaFiles.js +3 -3
- package/dist/utils/seed.js +6 -7
- package/dist/utils/setupMSSQL.js +62 -59
- package/dist/utils/setupMongo.js +17608 -14119
- package/dist/utils/setupMysql.js +45 -0
- package/dist/views/handleViewsIO.js +3 -3
- package/package.json +14 -15
- package/dist/chunk-EFPE3Q7J.js +0 -424
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +0 -9
|
@@ -16,16 +16,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
require_ms: () =>
|
|
19
|
+
var chunk_J77IRNPE_exports = {};
|
|
20
|
+
__export(chunk_J77IRNPE_exports, {
|
|
21
|
+
require_ms: () => require_ms,
|
|
22
22
|
require_src: () => require_src
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(chunk_J77IRNPE_exports);
|
|
25
25
|
var import_chunk_RM5LJIEV = require("./chunk-RM5LJIEV.js");
|
|
26
26
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
27
27
|
var require_ms = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
28
|
-
"../../node_modules/.pnpm/ms@2.1.
|
|
28
|
+
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
|
|
29
29
|
"use strict";
|
|
30
30
|
var s = 1e3;
|
|
31
31
|
var m = s * 60;
|
|
@@ -140,7 +140,7 @@ var require_ms = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
142
|
var require_common = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
143
|
-
"../../node_modules/.pnpm/debug@4.3.
|
|
143
|
+
"../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js"(exports, module2) {
|
|
144
144
|
"use strict";
|
|
145
145
|
function setup(env) {
|
|
146
146
|
createDebug.debug = createDebug;
|
|
@@ -302,7 +302,7 @@ var require_common = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
304
|
var require_browser = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
305
|
-
"../../node_modules/.pnpm/debug@4.3.
|
|
305
|
+
"../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js"(exports, module2) {
|
|
306
306
|
"use strict";
|
|
307
307
|
exports.formatArgs = formatArgs;
|
|
308
308
|
exports.save = save;
|
|
@@ -583,7 +583,7 @@ var require_supports_color = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
583
583
|
}
|
|
584
584
|
});
|
|
585
585
|
var require_node = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
586
|
-
"../../node_modules/.pnpm/debug@4.3.
|
|
586
|
+
"../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js"(exports, module2) {
|
|
587
587
|
"use strict";
|
|
588
588
|
var tty = (0, import_chunk_WWAWV7DQ.__require)("tty");
|
|
589
589
|
var util = (0, import_chunk_WWAWV7DQ.__require)("util");
|
|
@@ -756,7 +756,7 @@ var require_node = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
756
756
|
}
|
|
757
757
|
});
|
|
758
758
|
var require_src = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
759
|
-
"../../node_modules/.pnpm/debug@4.3.
|
|
759
|
+
"../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js"(exports, module2) {
|
|
760
760
|
"use strict";
|
|
761
761
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
762
762
|
module2.exports = require_browser();
|
|
@@ -765,118 +765,3 @@ var require_src = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
});
|
|
768
|
-
var require_ms2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
769
|
-
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
|
|
770
|
-
"use strict";
|
|
771
|
-
var s = 1e3;
|
|
772
|
-
var m = s * 60;
|
|
773
|
-
var h = m * 60;
|
|
774
|
-
var d = h * 24;
|
|
775
|
-
var w = d * 7;
|
|
776
|
-
var y = d * 365.25;
|
|
777
|
-
module2.exports = function(val, options) {
|
|
778
|
-
options = options || {};
|
|
779
|
-
var type = typeof val;
|
|
780
|
-
if (type === "string" && val.length > 0) {
|
|
781
|
-
return parse(val);
|
|
782
|
-
} else if (type === "number" && isFinite(val)) {
|
|
783
|
-
return options.long ? fmtLong(val) : fmtShort(val);
|
|
784
|
-
}
|
|
785
|
-
throw new Error(
|
|
786
|
-
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
787
|
-
);
|
|
788
|
-
};
|
|
789
|
-
function parse(str) {
|
|
790
|
-
str = String(str);
|
|
791
|
-
if (str.length > 100) {
|
|
792
|
-
return;
|
|
793
|
-
}
|
|
794
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
795
|
-
str
|
|
796
|
-
);
|
|
797
|
-
if (!match) {
|
|
798
|
-
return;
|
|
799
|
-
}
|
|
800
|
-
var n = parseFloat(match[1]);
|
|
801
|
-
var type = (match[2] || "ms").toLowerCase();
|
|
802
|
-
switch (type) {
|
|
803
|
-
case "years":
|
|
804
|
-
case "year":
|
|
805
|
-
case "yrs":
|
|
806
|
-
case "yr":
|
|
807
|
-
case "y":
|
|
808
|
-
return n * y;
|
|
809
|
-
case "weeks":
|
|
810
|
-
case "week":
|
|
811
|
-
case "w":
|
|
812
|
-
return n * w;
|
|
813
|
-
case "days":
|
|
814
|
-
case "day":
|
|
815
|
-
case "d":
|
|
816
|
-
return n * d;
|
|
817
|
-
case "hours":
|
|
818
|
-
case "hour":
|
|
819
|
-
case "hrs":
|
|
820
|
-
case "hr":
|
|
821
|
-
case "h":
|
|
822
|
-
return n * h;
|
|
823
|
-
case "minutes":
|
|
824
|
-
case "minute":
|
|
825
|
-
case "mins":
|
|
826
|
-
case "min":
|
|
827
|
-
case "m":
|
|
828
|
-
return n * m;
|
|
829
|
-
case "seconds":
|
|
830
|
-
case "second":
|
|
831
|
-
case "secs":
|
|
832
|
-
case "sec":
|
|
833
|
-
case "s":
|
|
834
|
-
return n * s;
|
|
835
|
-
case "milliseconds":
|
|
836
|
-
case "millisecond":
|
|
837
|
-
case "msecs":
|
|
838
|
-
case "msec":
|
|
839
|
-
case "ms":
|
|
840
|
-
return n;
|
|
841
|
-
default:
|
|
842
|
-
return void 0;
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
function fmtShort(ms) {
|
|
846
|
-
var msAbs = Math.abs(ms);
|
|
847
|
-
if (msAbs >= d) {
|
|
848
|
-
return Math.round(ms / d) + "d";
|
|
849
|
-
}
|
|
850
|
-
if (msAbs >= h) {
|
|
851
|
-
return Math.round(ms / h) + "h";
|
|
852
|
-
}
|
|
853
|
-
if (msAbs >= m) {
|
|
854
|
-
return Math.round(ms / m) + "m";
|
|
855
|
-
}
|
|
856
|
-
if (msAbs >= s) {
|
|
857
|
-
return Math.round(ms / s) + "s";
|
|
858
|
-
}
|
|
859
|
-
return ms + "ms";
|
|
860
|
-
}
|
|
861
|
-
function fmtLong(ms) {
|
|
862
|
-
var msAbs = Math.abs(ms);
|
|
863
|
-
if (msAbs >= d) {
|
|
864
|
-
return plural(ms, msAbs, d, "day");
|
|
865
|
-
}
|
|
866
|
-
if (msAbs >= h) {
|
|
867
|
-
return plural(ms, msAbs, h, "hour");
|
|
868
|
-
}
|
|
869
|
-
if (msAbs >= m) {
|
|
870
|
-
return plural(ms, msAbs, m, "minute");
|
|
871
|
-
}
|
|
872
|
-
if (msAbs >= s) {
|
|
873
|
-
return plural(ms, msAbs, s, "second");
|
|
874
|
-
}
|
|
875
|
-
return ms + " ms";
|
|
876
|
-
}
|
|
877
|
-
function plural(ms, msAbs, n, name) {
|
|
878
|
-
var isPlural = msAbs >= n * 1.5;
|
|
879
|
-
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
});
|
|
@@ -26,25 +26,25 @@ 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_MOTXHF3A_exports = {};
|
|
30
|
+
__export(chunk_MOTXHF3A_exports, {
|
|
31
31
|
DbPull: () => DbPull,
|
|
32
32
|
init_DbPull: () => init_DbPull
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_MOTXHF3A_exports);
|
|
35
35
|
var import_chunk_GRGGAY6L = require("./chunk-GRGGAY6L.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_ILJRJJ3S = require("./chunk-ILJRJJ3S.js");
|
|
37
37
|
var import_chunk_35LAJN5S = require("./chunk-35LAJN5S.js");
|
|
38
38
|
var import_chunk_7IT2ZO3D = require("./chunk-7IT2ZO3D.js");
|
|
39
|
-
var
|
|
39
|
+
var import_chunk_V7DE6JTG = require("./chunk-V7DE6JTG.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_7MUF3HLX = require("./chunk-7MUF3HLX.js");
|
|
44
|
+
var import_chunk_E3UZYEGF = require("./chunk-E3UZYEGF.js");
|
|
45
45
|
var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
|
|
46
46
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
47
|
-
var
|
|
47
|
+
var import_chunk_XJQP3B4W = require("./chunk-XJQP3B4W.js");
|
|
48
48
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
49
49
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
50
50
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -54,18 +54,18 @@ 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_E3UZYEGF.init_dist)();
|
|
58
|
+
(0, import_chunk_7MUF3HLX.init_SchemaEngine)();
|
|
59
59
|
(0, import_chunk_GN5BY5N2.init_countModelsAndTypes)();
|
|
60
|
-
(0,
|
|
60
|
+
(0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
|
|
61
61
|
(0, import_chunk_U374EXYQ.init_errors)();
|
|
62
62
|
(0, import_chunk_INC2OACE.init_isSchemaEmpty)();
|
|
63
63
|
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
|
64
64
|
(0, import_chunk_35LAJN5S.init_printDatasources)();
|
|
65
65
|
(0, import_chunk_7IT2ZO3D.init_printIntrospectedSchema)();
|
|
66
|
-
(0,
|
|
66
|
+
(0, import_chunk_V7DE6JTG.init_removeSchemaFiles)();
|
|
67
67
|
(0, import_chunk_QBK5XTJE.init_replaceOrAddDatasource)();
|
|
68
|
-
(0,
|
|
68
|
+
(0, import_chunk_ILJRJJ3S.init_saveSchemaFiles)();
|
|
69
69
|
(0, import_chunk_GRGGAY6L.init_spinner)();
|
|
70
70
|
debug = (0, import_debug.default)("prisma:db:pull");
|
|
71
71
|
_DbPull = class _DbPull2 {
|
|
@@ -113,7 +113,7 @@ var init_DbPull = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
113
113
|
if (schemaPath && !args["--print"]) {
|
|
114
114
|
process.stdout.write((0, import_chunk_6TE2RIPN.dim)(`Prisma schema loaded from ${import_path.default.relative(process.cwd(), schemaPath)}`) + "\n");
|
|
115
115
|
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
|
|
116
|
-
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0,
|
|
116
|
+
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath }) });
|
|
117
117
|
} else {
|
|
118
118
|
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: false });
|
|
119
119
|
}
|
|
@@ -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_E3UZYEGF.z)({ 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_7MUF3HLX.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))}` : "";
|
|
@@ -302,9 +302,9 @@ Or run this command with the ${(0, import_chunk_6TE2RIPN.green)(
|
|
|
302
302
|
} else {
|
|
303
303
|
schemaPath = schemaPath || "schema.prisma";
|
|
304
304
|
if (args["--force"]) {
|
|
305
|
-
await (0,
|
|
305
|
+
await (0, import_chunk_V7DE6JTG.removeSchemaFiles)(schema);
|
|
306
306
|
}
|
|
307
|
-
await (0,
|
|
307
|
+
await (0, import_chunk_ILJRJJ3S.saveSchemaFiles)(introspectionSchema);
|
|
308
308
|
const { modelsCount, typesCount } = (0, import_chunk_GN5BY5N2.countModelsAndTypes)(introspectionSchema);
|
|
309
309
|
const modelsCountMessage = `${modelsCount} ${modelsCount > 1 ? "models" : "model"}`;
|
|
310
310
|
const typesCountMessage = `${typesCount} ${typesCount > 1 ? "embedded documents" : "embedded document"}`;
|
|
@@ -16,8 +16,8 @@ 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_NKQGJ3AE_exports = {};
|
|
20
|
+
__export(chunk_NKQGJ3AE_exports, {
|
|
21
21
|
require_clean: () => require_clean,
|
|
22
22
|
require_constants: () => require_constants,
|
|
23
23
|
require_debug: () => require_debug,
|
|
@@ -28,7 +28,7 @@ __export(chunk_VWV2NY26_exports, {
|
|
|
28
28
|
require_semver: () => require_semver,
|
|
29
29
|
require_valid: () => require_valid
|
|
30
30
|
});
|
|
31
|
-
module.exports = __toCommonJS(
|
|
31
|
+
module.exports = __toCommonJS(chunk_NKQGJ3AE_exports);
|
|
32
32
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
33
33
|
var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
34
34
|
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js"(exports, module2) {
|
|
@@ -353,6 +353,8 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
353
353
|
this.inc("patch", identifier, identifierBase);
|
|
354
354
|
this.inc("pre", identifier, identifierBase);
|
|
355
355
|
break;
|
|
356
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
357
|
+
// prepatch.
|
|
356
358
|
case "prerelease":
|
|
357
359
|
if (this.prerelease.length === 0) {
|
|
358
360
|
this.inc("patch", identifier, identifierBase);
|
|
@@ -380,6 +382,8 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
380
382
|
}
|
|
381
383
|
this.prerelease = [];
|
|
382
384
|
break;
|
|
385
|
+
// This probably shouldn't be used publicly.
|
|
386
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
383
387
|
case "pre": {
|
|
384
388
|
const base = Number(identifierBase) ? 1 : 0;
|
|
385
389
|
if (!identifier && identifierBase === false) {
|
|
@@ -26,19 +26,19 @@ 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_Q5KENGJU_exports = {};
|
|
30
|
+
__export(chunk_Q5KENGJU_exports, {
|
|
31
31
|
MigrateReset: () => MigrateReset,
|
|
32
32
|
init_MigrateReset: () => init_MigrateReset
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_Q5KENGJU_exports);
|
|
35
|
+
var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
|
|
36
36
|
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_H3UYLUNG = require("./chunk-H3UYLUNG.js");
|
|
38
38
|
var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
|
|
39
39
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
|
40
40
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_XJQP3B4W = require("./chunk-XJQP3B4W.js");
|
|
42
42
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
43
43
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
44
44
|
var import_internals = require("@prisma/internals");
|
|
@@ -47,13 +47,13 @@ var _MigrateReset, MigrateReset;
|
|
|
47
47
|
var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
48
48
|
"src/commands/MigrateReset.ts"() {
|
|
49
49
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
50
|
-
(0,
|
|
51
|
-
(0,
|
|
50
|
+
(0, import_chunk_H3UYLUNG.init_Migrate)();
|
|
51
|
+
(0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
|
|
52
52
|
(0, import_chunk_U374EXYQ.init_errors)();
|
|
53
53
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
54
54
|
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
|
55
55
|
(0, import_chunk_WOOPRG54.init_printFiles)();
|
|
56
|
-
(0,
|
|
56
|
+
(0, import_chunk_YKUZUAXA.init_seed)();
|
|
57
57
|
_MigrateReset = class _MigrateReset2 {
|
|
58
58
|
static new() {
|
|
59
59
|
return new _MigrateReset2();
|
|
@@ -78,8 +78,9 @@ var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
78
78
|
}
|
|
79
79
|
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
|
|
80
80
|
const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
const datasourceInfo = await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath });
|
|
82
|
+
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
|
|
83
|
+
const wasDbCreated = await (0, import_chunk_XJQP3B4W.ensureDatabaseExists)("create", schemaPath);
|
|
83
84
|
if (wasDbCreated) {
|
|
84
85
|
process.stdout.write("\n" + wasDbCreated + "\n");
|
|
85
86
|
}
|
|
@@ -99,7 +100,7 @@ var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
99
100
|
process.exit(130);
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
|
-
const migrate = new
|
|
103
|
+
const migrate = new import_chunk_H3UYLUNG.Migrate(schemaPath);
|
|
103
104
|
let migrationIds;
|
|
104
105
|
try {
|
|
105
106
|
await migrate.reset();
|
|
@@ -125,13 +126,13 @@ ${(0, import_chunk_WOOPRG54.printFilesFromMigrationIds)("migrations", migrationI
|
|
|
125
126
|
);
|
|
126
127
|
}
|
|
127
128
|
if (!process.env.PRISMA_MIGRATE_SKIP_GENERATE && !args["--skip-generate"]) {
|
|
128
|
-
await migrate.tryToRunGenerate();
|
|
129
|
+
await migrate.tryToRunGenerate(datasourceInfo);
|
|
129
130
|
}
|
|
130
131
|
if (!process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
|
|
131
|
-
const seedCommandFromPkgJson = await (0,
|
|
132
|
+
const seedCommandFromPkgJson = await (0, import_chunk_YKUZUAXA.getSeedCommandFromPackageJson)(process.cwd());
|
|
132
133
|
if (seedCommandFromPkgJson) {
|
|
133
134
|
process.stdout.write("\n");
|
|
134
|
-
const successfulSeeding = await (0,
|
|
135
|
+
const successfulSeeding = await (0, import_chunk_YKUZUAXA.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
|
|
135
136
|
if (successfulSeeding) {
|
|
136
137
|
process.stdout.write(`
|
|
137
138
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
|
|
@@ -141,7 +142,7 @@ ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been ex
|
|
|
141
142
|
}
|
|
142
143
|
} else {
|
|
143
144
|
const { schemaPath: schemaPath2 } = await (0, import_internals.getSchemaWithPath)(args["--schema"]);
|
|
144
|
-
await (0,
|
|
145
|
+
await (0, import_chunk_YKUZUAXA.verifySeedConfigAndReturnMessage)(schemaPath2);
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
return ``;
|
|
@@ -26,17 +26,17 @@ 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_Q7P4QXBI_exports = {};
|
|
30
|
+
__export(chunk_Q7P4QXBI_exports, {
|
|
31
31
|
MigrateDeploy: () => MigrateDeploy,
|
|
32
32
|
init_MigrateDeploy: () => init_MigrateDeploy
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_Q7P4QXBI_exports);
|
|
35
35
|
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_H3UYLUNG = require("./chunk-H3UYLUNG.js");
|
|
37
37
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
|
38
38
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
39
|
-
var
|
|
39
|
+
var import_chunk_XJQP3B4W = require("./chunk-XJQP3B4W.js");
|
|
40
40
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
41
41
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
42
42
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -45,8 +45,8 @@ 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,
|
|
49
|
-
(0,
|
|
48
|
+
(0, import_chunk_H3UYLUNG.init_Migrate)();
|
|
49
|
+
(0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
|
|
50
50
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
51
51
|
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
|
52
52
|
(0, import_chunk_WOOPRG54.init_printFiles)();
|
|
@@ -75,10 +75,10 @@ var init_MigrateDeploy = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
75
75
|
}
|
|
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
|
-
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0,
|
|
79
|
-
const migrate = new
|
|
78
|
+
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath }) });
|
|
79
|
+
const migrate = new import_chunk_H3UYLUNG.Migrate(schemaPath);
|
|
80
80
|
try {
|
|
81
|
-
const wasDbCreated = await (0,
|
|
81
|
+
const wasDbCreated = await (0, import_chunk_XJQP3B4W.ensureDatabaseExists)("apply", schemaPath);
|
|
82
82
|
if (wasDbCreated) {
|
|
83
83
|
process.stdout.write("\n" + wasDbCreated + "\n");
|
|
84
84
|
}
|
|
@@ -26,22 +26,22 @@ 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_SR3XX66X_exports = {};
|
|
30
|
+
__export(chunk_SR3XX66X_exports, {
|
|
31
31
|
MigrateDev: () => MigrateDev,
|
|
32
32
|
init_MigrateDev: () => init_MigrateDev
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_SR3XX66X_exports);
|
|
35
35
|
var import_chunk_IFCV5MY4 = require("./chunk-IFCV5MY4.js");
|
|
36
36
|
var import_chunk_SGCF5OHF = require("./chunk-SGCF5OHF.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.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_H3UYLUNG = require("./chunk-H3UYLUNG.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");
|
|
44
|
-
var
|
|
44
|
+
var import_chunk_XJQP3B4W = require("./chunk-XJQP3B4W.js");
|
|
45
45
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
46
46
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
47
47
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -51,8 +51,8 @@ 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,
|
|
55
|
-
(0,
|
|
54
|
+
(0, import_chunk_H3UYLUNG.init_Migrate)();
|
|
55
|
+
(0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
|
|
56
56
|
(0, import_chunk_U374EXYQ.init_errors)();
|
|
57
57
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
58
58
|
(0, import_chunk_SGCF5OHF.init_handleEvaluateDataloss)();
|
|
@@ -60,7 +60,7 @@ var init_MigrateDev = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
60
60
|
(0, import_chunk_WOOPRG54.init_printFiles)();
|
|
61
61
|
(0, import_chunk_6QFE3AWR.init_printMigrationId)();
|
|
62
62
|
(0, import_chunk_IFCV5MY4.init_promptForMigrationName)();
|
|
63
|
-
(0,
|
|
63
|
+
(0, import_chunk_YKUZUAXA.init_seed)();
|
|
64
64
|
debug = (0, import_debug.default)("prisma:migrate:dev");
|
|
65
65
|
_MigrateDev = class _MigrateDev2 {
|
|
66
66
|
static new() {
|
|
@@ -89,7 +89,7 @@ var init_MigrateDev = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
89
89
|
}
|
|
90
90
|
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
|
|
91
91
|
const { schemaPath, schemas } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
|
|
92
|
-
const datasourceInfo = await (0,
|
|
92
|
+
const datasourceInfo = await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath });
|
|
93
93
|
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
|
|
94
94
|
process.stdout.write("\n");
|
|
95
95
|
(0, import_internals.validate)({
|
|
@@ -99,11 +99,11 @@ var init_MigrateDev = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
99
99
|
datamodel: schemas,
|
|
100
100
|
ignoreEnvVarErrors: false
|
|
101
101
|
});
|
|
102
|
-
const wasDbCreated = await (0,
|
|
102
|
+
const wasDbCreated = await (0, import_chunk_XJQP3B4W.ensureDatabaseExists)("create", schemaPath);
|
|
103
103
|
if (wasDbCreated) {
|
|
104
104
|
process.stdout.write(wasDbCreated + "\n\n");
|
|
105
105
|
}
|
|
106
|
-
const migrate = new
|
|
106
|
+
const migrate = new import_chunk_H3UYLUNG.Migrate(schemaPath);
|
|
107
107
|
let devDiagnostic;
|
|
108
108
|
try {
|
|
109
109
|
devDiagnostic = await migrate.devDiagnostic();
|
|
@@ -263,15 +263,15 @@ ${(0, import_chunk_6TE2RIPN.green)("Your database is now in sync with your schem
|
|
|
263
263
|
);
|
|
264
264
|
}
|
|
265
265
|
if (!process.env.PRISMA_MIGRATE_SKIP_GENERATE && !args["--skip-generate"]) {
|
|
266
|
-
await migrate.tryToRunGenerate();
|
|
266
|
+
await migrate.tryToRunGenerate(datasourceInfo);
|
|
267
267
|
process.stdout.write("\n");
|
|
268
268
|
}
|
|
269
269
|
if ((wasDbCreated || devDiagnostic.action.tag === "reset") && !process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
|
|
270
270
|
try {
|
|
271
|
-
const seedCommandFromPkgJson = await (0,
|
|
271
|
+
const seedCommandFromPkgJson = await (0, import_chunk_YKUZUAXA.getSeedCommandFromPackageJson)(process.cwd());
|
|
272
272
|
if (seedCommandFromPkgJson) {
|
|
273
273
|
process.stdout.write("\n");
|
|
274
|
-
const successfulSeeding = await (0,
|
|
274
|
+
const successfulSeeding = await (0, import_chunk_YKUZUAXA.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
|
|
275
275
|
if (successfulSeeding) {
|
|
276
276
|
process.stdout.write(`
|
|
277
277
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
|
|
@@ -281,7 +281,7 @@ ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been ex
|
|
|
281
281
|
}
|
|
282
282
|
} else {
|
|
283
283
|
const { schemaPath: schemaPath2 } = await (0, import_internals.getSchemaWithPath)(args["--schema"]);
|
|
284
|
-
await (0,
|
|
284
|
+
await (0, import_chunk_YKUZUAXA.verifySeedConfigAndReturnMessage)(schemaPath2);
|
|
285
285
|
}
|
|
286
286
|
} catch (e) {
|
|
287
287
|
console.error(e);
|
|
@@ -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_V7DE6JTG_exports = {};
|
|
30
|
+
__export(chunk_V7DE6JTG_exports, {
|
|
31
31
|
init_removeSchemaFiles: () => init_removeSchemaFiles,
|
|
32
32
|
removeSchemaFiles: () => removeSchemaFiles
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_V7DE6JTG_exports);
|
|
35
35
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
36
|
-
var import_promises = __toESM(require("fs/promises"));
|
|
36
|
+
var import_promises = __toESM(require("node:fs/promises"));
|
|
37
37
|
async function removeSchemaFiles(files) {
|
|
38
38
|
await Promise.all(files.map(([path]) => import_promises.default.rm(path)));
|
|
39
39
|
}
|
|
@@ -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_VYDT2HGZ_exports = {};
|
|
30
|
+
__export(chunk_VYDT2HGZ_exports, {
|
|
31
31
|
MigrateStatus: () => MigrateStatus,
|
|
32
32
|
init_MigrateStatus: () => init_MigrateStatus
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_VYDT2HGZ_exports);
|
|
35
|
+
var import_chunk_H3UYLUNG = require("./chunk-H3UYLUNG.js");
|
|
36
36
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
|
37
37
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_XJQP3B4W = require("./chunk-XJQP3B4W.js");
|
|
39
39
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
40
40
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
41
41
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -44,8 +44,8 @@ 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,
|
|
48
|
-
(0,
|
|
47
|
+
(0, import_chunk_H3UYLUNG.init_Migrate)();
|
|
48
|
+
(0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
|
|
49
49
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
50
50
|
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
|
51
51
|
debug = (0, import_debug.default)("prisma:migrate:status");
|
|
@@ -73,9 +73,9 @@ var init_MigrateStatus = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
73
73
|
}
|
|
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
|
-
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0,
|
|
77
|
-
const migrate = new
|
|
78
|
-
await (0,
|
|
76
|
+
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath }) });
|
|
77
|
+
const migrate = new import_chunk_H3UYLUNG.Migrate(schemaPath);
|
|
78
|
+
await (0, import_chunk_XJQP3B4W.ensureCanConnectToDatabase)(schemaPath);
|
|
79
79
|
let diagnoseResult;
|
|
80
80
|
let listMigrationDirectoriesResult;
|
|
81
81
|
try {
|