@prisma/migrate 5.23.0-dev.3 → 5.23.0-dev.31
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 -4
- package/dist/SchemaEngine.js +4 -4
- package/dist/bin.js +39 -40
- package/dist/{chunk-EXUBPCXZ.js → chunk-3H4RLVCQ.js} +12 -12
- package/dist/{chunk-R3YJSFEV.js → chunk-AT457M2T.js} +64 -146
- package/dist/{chunk-NIFQA5SB.js → chunk-DXR4D3UN.js} +224 -1078
- package/dist/{chunk-ZLGLVUFD.js → chunk-E2XKFV2C.js} +8 -8
- package/dist/{chunk-XVL5RF2T.js → chunk-GUBDW6S7.js} +11 -11
- package/dist/{chunk-BAVMZZAR.js → chunk-HODZFC64.js} +7 -7
- package/dist/{chunk-BAFPAACN.js → chunk-ILJRJJ3S.js} +4 -4
- package/dist/{chunk-LLGEQ76N.js → chunk-ILQWQHQO.js} +11 -11
- package/dist/{chunk-E3KHFUFQ.js → chunk-J77IRNPE.js} +9 -124
- package/dist/{chunk-76XWADEV.js → chunk-KEPR65SW.js} +6 -6
- package/dist/{chunk-MWEO3VUS.js → chunk-LJOMIPJW.js} +7 -7
- package/dist/{chunk-GJN3CSXW.js → chunk-NKL64AIB.js} +6 -6
- package/dist/{chunk-VWV2NY26.js → chunk-NKQGJ3AE.js} +7 -3
- package/dist/{chunk-XLLUFIQK.js → chunk-PCJYN6LT.js} +6 -5
- package/dist/{chunk-SV5GANSI.js → chunk-PFEH6ILG.js} +6 -6
- package/dist/{chunk-ZBOJAYON.js → chunk-PNBMPQYH.js} +6 -6
- package/dist/{chunk-W3ROQKBN.js → chunk-V7DE6JTG.js} +4 -4
- package/dist/{chunk-UJWMQPUH.js → chunk-X6GGREJW.js} +6 -6
- package/dist/{chunk-WIZM7TFT.js → chunk-YKUZUAXA.js} +443 -55
- package/dist/{chunk-YOW3VBYS.js → chunk-Z4OLB2H4.js} +6 -6
- package/dist/commands/DbExecute.js +5 -5
- package/dist/commands/DbPull.js +6 -6
- package/dist/commands/DbPush.js +5 -5
- package/dist/commands/DbSeed.js +4 -5
- package/dist/commands/MigrateDeploy.js +5 -5
- package/dist/commands/MigrateDev.js +6 -7
- package/dist/commands/MigrateDiff.js +6 -7
- package/dist/commands/MigrateReset.js +6 -7
- package/dist/commands/MigrateResolve.js +5 -5
- package/dist/commands/MigrateStatus.js +5 -5
- package/dist/index.js +45 -46
- package/dist/internals/src/utils/isCurrentBinInstalledGlobally.d.ts +1 -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/utils/getDatabaseVersionSafe.js +4 -4
- package/dist/utils/introspectSql.js +3 -3
- 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 +23084 -21202
- package/dist/utils/setupMysql.js +45 -0
- package/package.json +12 -13
- package/dist/chunk-EFPE3Q7J.js +0 -424
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +0 -9
@@ -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_PNBMPQYH_exports = {};
|
30
|
+
__export(chunk_PNBMPQYH_exports, {
|
31
31
|
DbExecute: () => DbExecute,
|
32
32
|
init_DbExecute: () => init_DbExecute
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
35
|
-
var
|
34
|
+
module.exports = __toCommonJS(chunk_PNBMPQYH_exports);
|
35
|
+
var import_chunk_LJOMIPJW = require("./chunk-LJOMIPJW.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_LJOMIPJW.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_LJOMIPJW.Migrate();
|
175
175
|
try {
|
176
176
|
await migrate.engine.dbExecute({
|
177
177
|
script,
|
@@ -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,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_X6GGREJW_exports = {};
|
30
|
+
__export(chunk_X6GGREJW_exports, {
|
31
31
|
MigrateDeploy: () => MigrateDeploy,
|
32
32
|
init_MigrateDeploy: () => init_MigrateDeploy
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_X6GGREJW_exports);
|
35
35
|
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
36
|
-
var
|
36
|
+
var import_chunk_LJOMIPJW = require("./chunk-LJOMIPJW.js");
|
37
37
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
38
38
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
39
39
|
var import_chunk_KEBB7UIB = require("./chunk-KEBB7UIB.js");
|
@@ -45,7 +45,7 @@ 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,
|
48
|
+
(0, import_chunk_LJOMIPJW.init_Migrate)();
|
49
49
|
(0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
|
50
50
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
51
51
|
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
@@ -76,7 +76,7 @@ var init_MigrateDeploy = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
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
78
|
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_KEBB7UIB.getDatasourceInfo)({ schemaPath }) });
|
79
|
-
const migrate = new
|
79
|
+
const migrate = new import_chunk_LJOMIPJW.Migrate(schemaPath);
|
80
80
|
try {
|
81
81
|
const wasDbCreated = await (0, import_chunk_KEBB7UIB.ensureDatabaseExists)("apply", schemaPath);
|
82
82
|
if (wasDbCreated) {
|