@prisma/migrate 6.1.0-dev.3 → 6.1.0-dev.30
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 +33 -33
- package/dist/{chunk-ILQWQHQO.js → chunk-3EBHV6P7.js} +6 -6
- package/dist/{chunk-GUBDW6S7.js → chunk-4NDZU7KV.js} +6 -6
- package/dist/{chunk-XYJKCYH6.js → chunk-7DE6A3RE.js} +814 -42
- package/dist/{chunk-PCJYN6LT.js → chunk-7MUF3HLX.js} +6 -6
- package/dist/{chunk-NKL64AIB.js → chunk-AOCCG7RR.js} +6 -6
- package/dist/{chunk-X6GGREJW.js → chunk-BQXAMKF7.js} +6 -6
- package/dist/{chunk-LVFPGUOH.js → chunk-E3UZYEGF.js} +92 -87
- package/dist/{chunk-KEPR65SW.js → chunk-ET2H4E2O.js} +6 -6
- package/dist/{chunk-PFEH6ILG.js → chunk-KX5GI2BM.js} +6 -6
- package/dist/{chunk-3H4RLVCQ.js → chunk-MBLWML5Q.js} +9 -9
- package/dist/{chunk-LJOMIPJW.js → chunk-NCDRH4BH.js} +7 -7
- package/dist/{chunk-HODZFC64.js → chunk-RCPXHNHW.js} +7 -7
- package/dist/{chunk-PNBMPQYH.js → chunk-UI76O6B2.js} +6 -6
- package/dist/{chunk-HTBRUJZH.js → chunk-WIZAZG3S.js} +815 -43
- package/dist/{chunk-Z4OLB2H4.js → chunk-XQJTDY7A.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 +6 -6
- 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 +39 -39
- package/dist/internals/src/tracing/types.d.ts +26 -16
- package/dist/utils/getDatabaseVersionSafe.js +5 -5
- package/dist/utils/introspectSql.js +4 -4
- package/dist/utils/setupMongo.js +25279 -23672
- package/dist/views/handleViewsIO.js +3 -3
- package/package.json +9 -9
@@ -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_NCDRH4BH_exports = {};
|
30
|
+
__export(chunk_NCDRH4BH_exports, {
|
31
31
|
Migrate: () => Migrate,
|
32
32
|
init_Migrate: () => init_Migrate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_NCDRH4BH_exports);
|
35
35
|
var import_chunk_6C7ESGWY = require("./chunk-6C7ESGWY.js");
|
36
|
-
var
|
36
|
+
var import_chunk_7MUF3HLX = require("./chunk-7MUF3HLX.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_7MUF3HLX.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_7MUF3HLX.SchemaEngine({
|
554
554
|
schemaPath: this.schemaPath,
|
555
555
|
enabledPreviewFeatures
|
556
556
|
});
|
557
557
|
} else {
|
558
|
-
this.engine = new
|
558
|
+
this.engine = new import_chunk_7MUF3HLX.SchemaEngine({
|
559
559
|
enabledPreviewFeatures
|
560
560
|
});
|
561
561
|
}
|
@@ -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_RCPXHNHW_exports = {};
|
20
|
+
__export(chunk_RCPXHNHW_exports, {
|
21
21
|
MigrateResolve: () => MigrateResolve,
|
22
22
|
init_MigrateResolve: () => init_MigrateResolve
|
23
23
|
});
|
24
|
-
module.exports = __toCommonJS(
|
25
|
-
var
|
24
|
+
module.exports = __toCommonJS(chunk_RCPXHNHW_exports);
|
25
|
+
var import_chunk_NCDRH4BH = require("./chunk-NCDRH4BH.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_NCDRH4BH.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_NCDRH4BH.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_NCDRH4BH.Migrate(schemaPath);
|
107
107
|
try {
|
108
108
|
await migrate.markMigrationRolledBack({
|
109
109
|
migrationId: args["--rolled-back"]
|
@@ -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_UI76O6B2_exports = {};
|
30
|
+
__export(chunk_UI76O6B2_exports, {
|
31
31
|
DbExecute: () => DbExecute,
|
32
32
|
init_DbExecute: () => init_DbExecute
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
35
|
-
var
|
34
|
+
module.exports = __toCommonJS(chunk_UI76O6B2_exports);
|
35
|
+
var import_chunk_NCDRH4BH = require("./chunk-NCDRH4BH.js");
|
36
36
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
37
37
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
38
38
|
var import_internals = require("@prisma/internals");
|
@@ -72,7 +72,7 @@ var init_DbExecute = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
72
72
|
"src/commands/DbExecute.ts"() {
|
73
73
|
import_get_stdin = (0, import_chunk_WWAWV7DQ.__toESM)(require_get_stdin());
|
74
74
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
75
|
-
(0,
|
75
|
+
(0, import_chunk_NCDRH4BH.init_Migrate)();
|
76
76
|
helpOptions = (0, import_internals.format)(
|
77
77
|
`${(0, import_chunk_6TE2RIPN.bold)("Usage")}
|
78
78
|
|
@@ -171,7 +171,7 @@ See \`${(0, import_chunk_6TE2RIPN.green)((0, import_internals.getCommandWithExec
|
|
171
171
|
...(0, import_internals.toSchemasWithConfigDir)(schemaWithPath, config)
|
172
172
|
};
|
173
173
|
}
|
174
|
-
const migrate = new
|
174
|
+
const migrate = new import_chunk_NCDRH4BH.Migrate();
|
175
175
|
try {
|
176
176
|
await migrate.engine.dbExecute({
|
177
177
|
script,
|