@prisma/migrate 6.17.0-integration-engines-6-17-0-4-integration-do-not-render-default-namespace-8d4739edba6d81075da5f45998d062d2444a0ed9.2 → 6.17.0-integration-feat-mapped-enums.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 +4 -3
- package/dist/bin.js +28 -27
- package/dist/{chunk-F3JIZWIS.js → chunk-3BC6W7CG.js} +13 -13
- package/dist/chunk-3WDCTXHL.js +270 -0
- package/dist/{chunk-U62JTEME.js → chunk-4GL5WXCD.js} +5 -5
- package/dist/{chunk-YEUENY2G.js → chunk-6OQEB4QQ.js} +5 -5
- package/dist/{chunk-R2YKCEAN.js → chunk-7E5C5GNE.js} +5 -5
- package/dist/{chunk-UQEITMMV.js → chunk-CWXY4DCV.js} +7 -7
- package/dist/{chunk-DYXEUKV3.js → chunk-D4TRX77Y.js} +6 -6
- package/dist/{chunk-YQ6GTOKJ.js → chunk-NI5KWETZ.js} +8 -8
- package/dist/{chunk-RNQEWSLQ.js → chunk-NL3WCYT3.js} +6 -6
- package/dist/{chunk-BKW5AGJV.js → chunk-NXWNFR5U.js} +5 -5
- package/dist/chunk-PHXLQVPT.js +1890 -0
- package/dist/{chunk-WXE3X4AN.js → chunk-R7B3TZ5A.js} +5 -5
- package/dist/{chunk-G56DQP5E.js → chunk-UPOG7SD7.js} +5 -5
- package/dist/{chunk-QF5OMSPA.js → chunk-USJF4W7L.js} +5 -5
- package/dist/{chunk-IINN7QUV.js → chunk-VU5BLQUI.js} +8 -8
- package/dist/{chunk-URKH6SE2.js → chunk-VV4M6AN7.js} +5 -251
- package/dist/{chunk-B64PYCYC.js → chunk-ZYGQLUWA.js} +8 -8
- package/dist/commands/DbExecute.js +5 -4
- package/dist/commands/DbPull.js +6 -5
- package/dist/commands/DbPush.js +5 -4
- package/dist/commands/DbSeed.js +4 -3
- package/dist/commands/MigrateDeploy.js +5 -4
- package/dist/commands/MigrateDev.js +6 -5
- package/dist/commands/MigrateDiff.js +5 -4
- package/dist/commands/MigrateReset.js +6 -5
- package/dist/commands/MigrateResolve.js +5 -4
- package/dist/commands/MigrateStatus.js +5 -4
- package/dist/index.js +30 -29
- package/dist/utils/getDatabaseVersionSafe.js +5 -4
- package/dist/utils/introspectSql.js +5 -4
- package/dist/utils/seed.js +4 -3
- package/dist/utils/spinner.js +4 -3
- package/package.json +11 -11
- package/dist/chunk-HFXUQT52.js +0 -1982
|
@@ -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_NI5KWETZ_exports = {};
|
|
30
|
+
__export(chunk_NI5KWETZ_exports, {
|
|
31
31
|
MigrateDev: () => MigrateDev
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_NI5KWETZ_exports);
|
|
34
34
|
var import_chunk_C3722PDA = require("./chunk-C3722PDA.js");
|
|
35
35
|
var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
|
|
36
36
|
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_PHXLQVPT = require("./chunk-PHXLQVPT.js");
|
|
38
38
|
var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
|
|
39
39
|
var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
|
|
40
40
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
41
41
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
42
|
-
var
|
|
42
|
+
var import_chunk_3BC6W7CG = require("./chunk-3BC6W7CG.js");
|
|
43
43
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
44
44
|
var import_node_path = __toESM(require("node:path"));
|
|
45
45
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -123,7 +123,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
123
123
|
externalTables: config.tables?.external ?? [],
|
|
124
124
|
externalEnums: config.enums?.external ?? []
|
|
125
125
|
};
|
|
126
|
-
const migrate = await
|
|
126
|
+
const migrate = await import_chunk_3BC6W7CG.Migrate.setup({
|
|
127
127
|
adapter,
|
|
128
128
|
migrationsDirPath,
|
|
129
129
|
schemaContext,
|
|
@@ -285,11 +285,11 @@ ${(0, import_chunk_SKRR5WT4.green)("Your database is now in sync with your schem
|
|
|
285
285
|
if (wasDbCreated && !process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
|
|
286
286
|
try {
|
|
287
287
|
const seedCommandFromPrismaConfig = config.migrations?.seed;
|
|
288
|
-
const seedCommandFromPkgJson = await (0,
|
|
288
|
+
const seedCommandFromPkgJson = await (0, import_chunk_PHXLQVPT.getSeedCommandFromPackageJson)(process.cwd());
|
|
289
289
|
const seedCommand = seedCommandFromPrismaConfig ?? seedCommandFromPkgJson;
|
|
290
290
|
if (seedCommand) {
|
|
291
291
|
process.stdout.write("\n");
|
|
292
|
-
const successfulSeeding = await (0,
|
|
292
|
+
const successfulSeeding = await (0, import_chunk_PHXLQVPT.executeSeedCommand)({ commandFromConfig: seedCommand });
|
|
293
293
|
if (successfulSeeding) {
|
|
294
294
|
process.stdout.write(`
|
|
295
295
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
|
|
@@ -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_NL3WCYT3_exports = {};
|
|
20
|
+
__export(chunk_NL3WCYT3_exports, {
|
|
21
21
|
MigrateResolve: () => MigrateResolve
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_NL3WCYT3_exports);
|
|
24
24
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
25
25
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
26
|
-
var
|
|
26
|
+
var import_chunk_3BC6W7CG = require("./chunk-3BC6W7CG.js");
|
|
27
27
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
28
28
|
var import_internals = require("@prisma/internals");
|
|
29
29
|
var MigrateResolve = class _MigrateResolve {
|
|
@@ -112,7 +112,7 @@ ${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.green)((0, import_in
|
|
|
112
112
|
if (!adapter) {
|
|
113
113
|
await (0, import_chunk_74LUB4XX.ensureCanConnectToDatabase)(schemaContext.primaryDatasource);
|
|
114
114
|
}
|
|
115
|
-
const migrate = await
|
|
115
|
+
const migrate = await import_chunk_3BC6W7CG.Migrate.setup({ adapter, migrationsDirPath, schemaContext });
|
|
116
116
|
try {
|
|
117
117
|
await migrate.markMigrationApplied({
|
|
118
118
|
migrationId: args["--applied"]
|
|
@@ -133,7 +133,7 @@ Migration ${args["--applied"]} marked as applied.
|
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
135
|
await (0, import_chunk_74LUB4XX.ensureCanConnectToDatabase)(schemaContext.primaryDatasource);
|
|
136
|
-
const migrate = await
|
|
136
|
+
const migrate = await import_chunk_3BC6W7CG.Migrate.setup({ adapter: void 0, migrationsDirPath, schemaContext });
|
|
137
137
|
try {
|
|
138
138
|
await migrate.markMigrationRolledBack({
|
|
139
139
|
migrationId: args["--rolled-back"]
|
|
@@ -26,15 +26,15 @@ 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_NXWNFR5U_exports = {};
|
|
30
|
+
__export(chunk_NXWNFR5U_exports, {
|
|
31
31
|
MigrateDeploy: () => MigrateDeploy
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_NXWNFR5U_exports);
|
|
34
34
|
var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
|
|
35
35
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
36
36
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_3BC6W7CG = require("./chunk-3BC6W7CG.js");
|
|
38
38
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
39
39
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
40
40
|
var import_internals = require("@prisma/internals");
|
|
@@ -96,7 +96,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
96
96
|
externalTables: config.tables?.external ?? [],
|
|
97
97
|
externalEnums: config.enums?.external ?? []
|
|
98
98
|
};
|
|
99
|
-
const migrate = await
|
|
99
|
+
const migrate = await import_chunk_3BC6W7CG.Migrate.setup({ adapter, migrationsDirPath, schemaContext, schemaFilter });
|
|
100
100
|
if (!adapter) {
|
|
101
101
|
try {
|
|
102
102
|
const wasDbCreated = await (0, import_chunk_74LUB4XX.ensureDatabaseExists)(schemaContext.primaryDatasource);
|