@prisma/migrate 6.6.0-dev.16 → 6.6.0-dev.18
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 +3 -3
- package/dist/bin.js +25 -25
- package/dist/{chunk-KS7IEA6Z.js → chunk-2VSCT73F.js} +9 -9
- package/dist/{chunk-HCBZB4XC.js → chunk-3OQIC7NW.js} +6 -6
- package/dist/chunk-3VFKYWQZ.js +486 -0
- package/dist/{chunk-MCWCB2AX.js → chunk-4ZFVT4RS.js} +22 -470
- package/dist/{chunk-ZSPEGUGQ.js → chunk-BC7TR6DY.js} +6 -6
- package/dist/{chunk-GG54LOYV.js → chunk-DAYMMAJB.js} +5 -5
- package/dist/{chunk-Q3ZLC44N.js → chunk-DNOOU7FC.js} +9 -9
- package/dist/{chunk-WI2A2TQE.js → chunk-IY67YUOD.js} +5 -5
- package/dist/{chunk-N3KYWSX2.js → chunk-MREGRQDD.js} +5 -5
- package/dist/chunk-N5UBDQRA.js +846 -0
- package/dist/{chunk-N4XTKFY6.js → chunk-NAXFX7K7.js} +5 -5
- package/dist/{chunk-CQZFVAXC.js → chunk-PW3LNSDM.js} +5 -5
- package/dist/{chunk-G2XUUMKH.js → chunk-UKVQP5ES.js} +7 -7
- package/dist/{chunk-6HBKECKI.js → chunk-W6DKAK5E.js} +7 -7
- package/dist/{chunk-V3ZMNXZC.js → chunk-WG2SP5KE.js} +248 -6
- package/dist/commands/DbExecute.js +4 -4
- package/dist/commands/DbPull.js +4 -3
- package/dist/commands/DbPush.js +4 -4
- package/dist/commands/DbSeed.js +3 -4
- package/dist/commands/MigrateDeploy.js +4 -4
- package/dist/commands/MigrateDev.js +5 -5
- package/dist/commands/MigrateDiff.js +4 -4
- package/dist/commands/MigrateReset.js +5 -5
- package/dist/commands/MigrateResolve.js +4 -4
- package/dist/commands/MigrateStatus.js +4 -4
- package/dist/index.js +25 -25
- package/dist/utils/seed.js +5 -6
- package/dist/utils/spinner.js +3 -2
- package/package.json +8 -8
- package/dist/chunk-J46BJQHT.js +0 -268
- package/dist/chunk-KOF4LGTS.js +0 -1817
|
@@ -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_DAYMMAJB_exports = {};
|
|
30
|
+
__export(chunk_DAYMMAJB_exports, {
|
|
31
31
|
DbPush: () => DbPush
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_DAYMMAJB_exports);
|
|
34
|
+
var import_chunk_N5UBDQRA = require("./chunk-N5UBDQRA.js");
|
|
35
35
|
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
36
36
|
var import_chunk_GKDFIHM2 = require("./chunk-GKDFIHM2.js");
|
|
37
37
|
var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
|
|
@@ -70,7 +70,7 @@ var _DbPush = class _DbPush2 {
|
|
|
70
70
|
const { schemaPath } = await (0, import_chunk_GKDFIHM2.getSchemaPathAndPrint)(args["--schema"], config.schema);
|
|
71
71
|
const datasourceInfo = await (0, import_chunk_DJMFXNR4.getDatasourceInfo)({ schemaPath });
|
|
72
72
|
(0, import_chunk_QOPTDDIH.printDatasource)({ datasourceInfo });
|
|
73
|
-
const migrate = new
|
|
73
|
+
const migrate = new import_chunk_N5UBDQRA.Migrate(schemaPath);
|
|
74
74
|
try {
|
|
75
75
|
const wasDbCreated = await (0, import_chunk_DJMFXNR4.ensureDatabaseExists)("push", schemaPath);
|
|
76
76
|
if (wasDbCreated) {
|
|
@@ -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_DNOOU7FC_exports = {};
|
|
30
|
+
__export(chunk_DNOOU7FC_exports, {
|
|
31
31
|
MigrateDev: () => MigrateDev
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_DNOOU7FC_exports);
|
|
34
34
|
var import_chunk_OCQGHQED = require("./chunk-OCQGHQED.js");
|
|
35
35
|
var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_WG2SP5KE = require("./chunk-WG2SP5KE.js");
|
|
37
37
|
var import_chunk_255BRND3 = require("./chunk-255BRND3.js");
|
|
38
38
|
var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
|
|
39
|
-
var
|
|
39
|
+
var import_chunk_N5UBDQRA = require("./chunk-N5UBDQRA.js");
|
|
40
40
|
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
41
41
|
var import_chunk_GKDFIHM2 = require("./chunk-GKDFIHM2.js");
|
|
42
42
|
var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
|
|
@@ -89,7 +89,7 @@ var _MigrateDev = class _MigrateDev2 {
|
|
|
89
89
|
if (wasDbCreated) {
|
|
90
90
|
process.stdout.write(wasDbCreated + "\n\n");
|
|
91
91
|
}
|
|
92
|
-
const migrate = new
|
|
92
|
+
const migrate = new import_chunk_N5UBDQRA.Migrate(schemaPath);
|
|
93
93
|
let devDiagnostic;
|
|
94
94
|
try {
|
|
95
95
|
devDiagnostic = await migrate.devDiagnostic();
|
|
@@ -244,10 +244,10 @@ ${(0, import_chunk_SKRR5WT4.green)("Your database is now in sync with your schem
|
|
|
244
244
|
}
|
|
245
245
|
if (wasDbCreated && !process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
|
|
246
246
|
try {
|
|
247
|
-
const seedCommandFromPkgJson = await (0,
|
|
247
|
+
const seedCommandFromPkgJson = await (0, import_chunk_WG2SP5KE.getSeedCommandFromPackageJson)(process.cwd());
|
|
248
248
|
if (seedCommandFromPkgJson) {
|
|
249
249
|
process.stdout.write("\n");
|
|
250
|
-
const successfulSeeding = await (0,
|
|
250
|
+
const successfulSeeding = await (0, import_chunk_WG2SP5KE.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
|
|
251
251
|
if (successfulSeeding) {
|
|
252
252
|
process.stdout.write(`
|
|
253
253
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
|
|
@@ -257,7 +257,7 @@ ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been ex
|
|
|
257
257
|
}
|
|
258
258
|
} else {
|
|
259
259
|
const { schemaPath: schemaPath2 } = await (0, import_internals.getSchemaWithPath)(args["--schema"], config.schema);
|
|
260
|
-
await (0,
|
|
260
|
+
await (0, import_chunk_WG2SP5KE.verifySeedConfigAndReturnMessage)(schemaPath2);
|
|
261
261
|
}
|
|
262
262
|
} catch (e) {
|
|
263
263
|
console.error(e);
|
|
@@ -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_IY67YUOD_exports = {};
|
|
30
|
+
__export(chunk_IY67YUOD_exports, {
|
|
31
31
|
DbPull: () => DbPull
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_IY67YUOD_exports);
|
|
34
|
+
var import_chunk_4ZFVT4RS = require("./chunk-4ZFVT4RS.js");
|
|
35
35
|
var import_chunk_RTGQXNX6 = require("./chunk-RTGQXNX6.js");
|
|
36
36
|
var import_chunk_RP2N6UXA = require("./chunk-RP2N6UXA.js");
|
|
37
37
|
var import_chunk_AHJ2N6BJ = require("./chunk-AHJ2N6BJ.js");
|
|
@@ -80,7 +80,7 @@ var _DbPull = class _DbPull2 {
|
|
|
80
80
|
"--local-d1": Boolean
|
|
81
81
|
// optional, only on cloudflare D1
|
|
82
82
|
});
|
|
83
|
-
const spinnerFactory = (0,
|
|
83
|
+
const spinnerFactory = (0, import_chunk_4ZFVT4RS.createSpinner)(!args["--print"]);
|
|
84
84
|
if (args instanceof Error) {
|
|
85
85
|
return this.help(args.message);
|
|
86
86
|
}
|
|
@@ -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_MREGRQDD_exports = {};
|
|
30
|
+
__export(chunk_MREGRQDD_exports, {
|
|
31
31
|
DbExecute: () => DbExecute
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_MREGRQDD_exports);
|
|
34
|
+
var import_chunk_N5UBDQRA = require("./chunk-N5UBDQRA.js");
|
|
35
35
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
36
36
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
37
37
|
var import_internals = require("@prisma/internals");
|
|
@@ -161,7 +161,7 @@ See \`${(0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExec
|
|
|
161
161
|
...(0, import_internals.toSchemasWithConfigDir)(schemaWithPath, engineConfig)
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
const migrate = new
|
|
164
|
+
const migrate = new import_chunk_N5UBDQRA.Migrate();
|
|
165
165
|
try {
|
|
166
166
|
await migrate.engine.dbExecute({
|
|
167
167
|
script,
|