@prisma/migrate 5.19.0-dev.12 → 5.19.0-dev.13
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-NLC6XPP4.js → chunk-DRTXJJMT.js} +806 -28
- 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-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-QDD6UVA2.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 +6 -6
|
@@ -16,12 +16,12 @@ 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_E3KHFUFQ_exports = {};
|
|
20
|
+
__export(chunk_E3KHFUFQ_exports, {
|
|
21
21
|
require_ms: () => require_ms2,
|
|
22
22
|
require_src: () => require_src
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(chunk_E3KHFUFQ_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)({
|
|
@@ -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.6/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.6/node_modules/debug/src/browser.js"(exports, module2) {
|
|
306
306
|
"use strict";
|
|
307
307
|
exports.formatArgs = formatArgs;
|
|
308
308
|
exports.save = save;
|
|
@@ -403,10 +403,11 @@ var require_browser = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
403
403
|
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
404
404
|
return false;
|
|
405
405
|
}
|
|
406
|
+
let m;
|
|
406
407
|
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
407
408
|
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
408
409
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
409
|
-
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(
|
|
410
|
+
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
410
411
|
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
411
412
|
}
|
|
412
413
|
function formatArgs(args) {
|
|
@@ -582,7 +583,7 @@ var require_supports_color = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
582
583
|
}
|
|
583
584
|
});
|
|
584
585
|
var require_node = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
585
|
-
"../../node_modules/.pnpm/debug@4.3.
|
|
586
|
+
"../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/node.js"(exports, module2) {
|
|
586
587
|
"use strict";
|
|
587
588
|
var tty = (0, import_chunk_WWAWV7DQ.__require)("tty");
|
|
588
589
|
var util = (0, import_chunk_WWAWV7DQ.__require)("util");
|
|
@@ -755,7 +756,7 @@ var require_node = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
755
756
|
}
|
|
756
757
|
});
|
|
757
758
|
var require_src = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
758
|
-
"../../node_modules/.pnpm/debug@4.3.
|
|
759
|
+
"../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/index.js"(exports, module2) {
|
|
759
760
|
"use strict";
|
|
760
761
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
761
762
|
module2.exports = require_browser();
|
|
@@ -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_E6G3WPWL_exports = {};
|
|
30
|
+
__export(chunk_E6G3WPWL_exports, {
|
|
31
31
|
DbPush: () => DbPush,
|
|
32
32
|
init_DbPush: () => init_DbPush
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_E6G3WPWL_exports);
|
|
35
|
+
var import_chunk_I7ABLDKM = require("./chunk-I7ABLDKM.js");
|
|
36
36
|
var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
|
|
37
37
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
|
38
38
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
@@ -45,7 +45,7 @@ var _DbPush, DbPush;
|
|
|
45
45
|
var init_DbPush = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
46
46
|
"src/commands/DbPush.ts"() {
|
|
47
47
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
48
|
-
(0,
|
|
48
|
+
(0, import_chunk_I7ABLDKM.init_Migrate)();
|
|
49
49
|
(0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
|
|
50
50
|
(0, import_chunk_U374EXYQ.init_errors)();
|
|
51
51
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
@@ -79,7 +79,7 @@ var init_DbPush = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
79
79
|
const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
|
|
80
80
|
const datasourceInfo = await (0, import_chunk_KEBB7UIB.getDatasourceInfo)({ schemaPath });
|
|
81
81
|
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
|
|
82
|
-
const migrate = new
|
|
82
|
+
const migrate = new import_chunk_I7ABLDKM.Migrate(schemaPath);
|
|
83
83
|
try {
|
|
84
84
|
const wasDbCreated = await (0, import_chunk_KEBB7UIB.ensureDatabaseExists)("push", schemaPath);
|
|
85
85
|
if (wasDbCreated) {
|
|
@@ -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_I7ABLDKM_exports = {};
|
|
30
|
+
__export(chunk_I7ABLDKM_exports, {
|
|
31
31
|
Migrate: () => Migrate,
|
|
32
32
|
init_Migrate: () => init_Migrate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_I7ABLDKM_exports);
|
|
35
35
|
var import_chunk_6C7ESGWY = require("./chunk-6C7ESGWY.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_4OQCFE3G = require("./chunk-4OQCFE3G.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_4OQCFE3G.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_4OQCFE3G.SchemaEngine({
|
|
554
554
|
schemaPath: this.schemaPath,
|
|
555
555
|
enabledPreviewFeatures
|
|
556
556
|
});
|
|
557
557
|
} else {
|
|
558
|
-
this.engine = new
|
|
558
|
+
this.engine = new import_chunk_4OQCFE3G.SchemaEngine({
|
|
559
559
|
enabledPreviewFeatures
|
|
560
560
|
});
|
|
561
561
|
}
|
|
@@ -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_K5V4Z7K7_exports = {};
|
|
30
|
+
__export(chunk_K5V4Z7K7_exports, {
|
|
31
31
|
MigrateStatus: () => MigrateStatus,
|
|
32
32
|
init_MigrateStatus: () => init_MigrateStatus
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_K5V4Z7K7_exports);
|
|
35
|
+
var import_chunk_I7ABLDKM = require("./chunk-I7ABLDKM.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_I7ABLDKM.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_I7ABLDKM.Migrate(schemaPath);
|
|
78
78
|
await (0, import_chunk_KEBB7UIB.ensureCanConnectToDatabase)(schemaPath);
|
|
79
79
|
let diagnoseResult;
|
|
80
80
|
let listMigrationDirectoriesResult;
|
|
@@ -16,13 +16,13 @@ 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_KODAP3NW_exports = {};
|
|
20
|
+
__export(chunk_KODAP3NW_exports, {
|
|
21
21
|
MigrateResolve: () => MigrateResolve,
|
|
22
22
|
init_MigrateResolve: () => init_MigrateResolve
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
25
|
-
var
|
|
24
|
+
module.exports = __toCommonJS(chunk_KODAP3NW_exports);
|
|
25
|
+
var import_chunk_I7ABLDKM = require("./chunk-I7ABLDKM.js");
|
|
26
26
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
|
27
27
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
28
28
|
var import_chunk_KEBB7UIB = require("./chunk-KEBB7UIB.js");
|
|
@@ -33,7 +33,7 @@ var _MigrateResolve, MigrateResolve;
|
|
|
33
33
|
var init_MigrateResolve = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
34
34
|
"src/commands/MigrateResolve.ts"() {
|
|
35
35
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
36
|
-
(0,
|
|
36
|
+
(0, import_chunk_I7ABLDKM.init_Migrate)();
|
|
37
37
|
(0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
|
|
38
38
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
39
39
|
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
|
@@ -82,7 +82,7 @@ ${(0, import_chunk_6TE2RIPN.bold)((0, import_chunk_6TE2RIPN.green)((0, import_in
|
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
84
|
await (0, import_chunk_KEBB7UIB.ensureCanConnectToDatabase)(schemaPath);
|
|
85
|
-
const migrate = new
|
|
85
|
+
const migrate = new import_chunk_I7ABLDKM.Migrate(schemaPath);
|
|
86
86
|
try {
|
|
87
87
|
await migrate.markMigrationApplied({
|
|
88
88
|
migrationId: args["--applied"]
|
|
@@ -103,7 +103,7 @@ Migration ${args["--applied"]} marked as applied.
|
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
await (0, import_chunk_KEBB7UIB.ensureCanConnectToDatabase)(schemaPath);
|
|
106
|
-
const migrate = new
|
|
106
|
+
const migrate = new import_chunk_I7ABLDKM.Migrate(schemaPath);
|
|
107
107
|
try {
|
|
108
108
|
await migrate.markMigrationRolledBack({
|
|
109
109
|
migrationId: args["--rolled-back"]
|
|
@@ -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_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))}` : "";
|