@prisma/migrate 7.10.0-dev.8 → 7.10.0-integration-prisma7-project-closeout.10
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/SchemaEngineCLI.js +4 -4
- package/dist/SchemaEngineWasm.js +4 -4
- package/dist/bin.js +41 -35
- package/dist/{chunk-FXSCTGN2.js → chunk-3C5DQOOW.js} +5 -5
- package/dist/{chunk-HWBQGGZH.js → chunk-3NKLI5KP.js} +9 -9
- package/dist/{chunk-6TSRRBNA.js → chunk-57S5K3DX.js} +7 -7
- package/dist/{chunk-UA3FFRRV.js → chunk-5YSI4XSU.js} +25 -19
- package/dist/{chunk-7CQBDP4H.js → chunk-6F7CAPL7.js} +9 -10
- package/dist/{chunk-GBUW4I6U.js → chunk-7KCEXIB2.js} +6 -6
- package/dist/{chunk-TEOIOJ7P.js → chunk-A6PUWLVN.js} +6 -6
- package/dist/{chunk-LZ2DWYUY.js → chunk-BWFPKWBD.js} +7 -7
- package/dist/{chunk-QCPYZUFF.js → chunk-BZ2JSF42.js} +31 -29
- package/dist/{chunk-DPRQXN36.js → chunk-DTSU3YZP.js} +6 -6
- package/dist/{chunk-WA2SOLDQ.js → chunk-EGNBSKBG.js} +8 -8
- package/dist/{chunk-DNNMOG7A.js → chunk-F2LZOLZK.js} +25 -24
- package/dist/{chunk-PPE4XDUL.js → chunk-GD52HTMX.js} +10 -10
- package/dist/{chunk-2HCAA4GX.js → chunk-GHPP2B5T.js} +27 -23
- package/dist/{chunk-XTEEOIUV.js → chunk-HMVLLUKH.js} +18 -13
- package/dist/{chunk-WP5M3D4N.js → chunk-I3UQXXYF.js} +30 -27
- package/dist/{chunk-RM4WK3ML.js → chunk-I7UMFS37.js} +33 -26
- package/dist/{chunk-CQTYRADU.js → chunk-IKF6HBHH.js} +23 -18
- package/dist/{chunk-NGEWTXY6.js → chunk-J6BC6QDB.js} +6 -6
- package/dist/{chunk-6DDIA3ZD.js → chunk-KDAXJMEP.js} +5 -5
- package/dist/{chunk-ZUHJASAP.js → chunk-KYZDCMJW.js} +12 -12
- package/dist/{chunk-AL3XYISJ.js → chunk-MQ76MQ53.js} +55 -50
- package/dist/{chunk-VEBRKA5H.js → chunk-OQKFK65J.js} +6 -6
- package/dist/{chunk-YNB3IN6Q.js → chunk-OXZFIZV6.js} +8 -8
- package/dist/{chunk-THJ7K72W.js → chunk-SFFTVLXC.js} +6 -6
- package/dist/{chunk-PEUHUCS4.js → chunk-T25WPL3D.js} +632 -625
- package/dist/{chunk-NHSJJSXU.js → chunk-TKQMAG6L.js} +5 -5
- package/dist/{chunk-6EQA63NM.js → chunk-UWVWZK5Z.js} +38 -32
- package/dist/{chunk-TW5MYPTK.js → chunk-VJKZQVKX.js} +26 -21
- package/dist/{chunk-DL2W77GY.js → chunk-W4WHE5HS.js} +33 -30
- package/dist/{chunk-TDN3QQTH.js → chunk-Y3QVFDLE.js} +29 -24
- package/dist/{chunk-RGXJYLMD.js → chunk-ZOYXSZ2J.js} +5 -5
- package/dist/{chunk-INC5VUX4.js → chunk-ZVRF2A5M.js} +6 -6
- package/dist/commands/DbCommand.js +2 -2
- package/dist/commands/DbDrop.js +3 -3
- package/dist/commands/DbExecute.js +5 -5
- package/dist/commands/DbPull.js +6 -6
- package/dist/commands/DbPush.js +6 -6
- package/dist/commands/DbSeed.js +2 -2
- package/dist/commands/MigrateCommand.js +2 -2
- package/dist/commands/MigrateDeploy.js +5 -5
- package/dist/commands/MigrateDev.js +7 -7
- package/dist/commands/MigrateDiff.js +6 -6
- package/dist/commands/MigrateReset.js +6 -6
- package/dist/commands/MigrateResolve.js +5 -5
- package/dist/commands/MigrateStatus.js +5 -5
- package/dist/commands/db-command-completion.js +2 -2
- package/dist/commands/db-execute-completion.js +2 -2
- package/dist/commands/db-pull-completion.js +2 -2
- package/dist/commands/db-push-completion.js +2 -2
- package/dist/commands/db-seed-completion.js +2 -2
- package/dist/commands/migrate-command-completion.js +2 -2
- package/dist/commands/migrate-deploy-completion.js +2 -2
- package/dist/commands/migrate-dev-completion.js +2 -2
- package/dist/commands/migrate-diff-completion.js +2 -2
- package/dist/commands/migrate-reset-completion.js +2 -2
- package/dist/commands/migrate-resolve-completion.js +2 -2
- package/dist/commands/migrate-status-completion.js +2 -2
- package/dist/index.js +63 -63
- package/dist/src/commands/DbCommand.d.ts +2 -2
- package/dist/src/commands/DbDrop.d.ts +3 -2
- package/dist/src/commands/DbExecute.d.ts +3 -2
- package/dist/src/commands/DbPull.d.ts +3 -2
- package/dist/src/commands/DbPush.d.ts +3 -2
- package/dist/src/commands/DbSeed.d.ts +3 -2
- package/dist/src/commands/MigrateCommand.d.ts +2 -2
- package/dist/src/commands/MigrateDeploy.d.ts +3 -2
- package/dist/src/commands/MigrateDev.d.ts +3 -2
- package/dist/src/commands/MigrateDiff.d.ts +3 -2
- package/dist/src/commands/MigrateReset.d.ts +3 -2
- package/dist/src/commands/MigrateResolve.d.ts +3 -2
- package/dist/src/commands/MigrateStatus.d.ts +3 -2
- package/dist/src/commands/db-command-completion.d.ts +1 -1
- package/dist/src/commands/db-execute-completion.d.ts +1 -1
- package/dist/src/commands/db-pull-completion.d.ts +1 -1
- package/dist/src/commands/db-push-completion.d.ts +1 -1
- package/dist/src/commands/db-seed-completion.d.ts +1 -1
- package/dist/src/commands/migrate-command-completion.d.ts +1 -1
- package/dist/src/commands/migrate-deploy-completion.d.ts +1 -1
- package/dist/src/commands/migrate-dev-completion.d.ts +1 -1
- package/dist/src/commands/migrate-diff-completion.d.ts +1 -1
- package/dist/src/commands/migrate-reset-completion.d.ts +1 -1
- package/dist/src/commands/migrate-resolve-completion.d.ts +1 -1
- package/dist/src/commands/migrate-status-completion.d.ts +1 -1
- package/dist/src/utils/errors.d.ts +4 -4
- package/dist/src/utils/handleEvaluateDataloss.d.ts +1 -1
- package/dist/utils/errors.js +8 -8
- package/dist/utils/getDatabaseVersionSafe.js +5 -5
- package/dist/utils/handleEvaluateDataloss.js +2 -2
- package/dist/utils/introspectSql.js +5 -5
- package/dist/utils/setupMSSQL.js +142 -56
- package/dist/views/handleViewsIO.js +2 -2
- package/package.json +12 -12
package/dist/Migrate.js
CHANGED
|
@@ -18,13 +18,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var Migrate_exports = {};
|
|
20
20
|
__export(Migrate_exports, {
|
|
21
|
-
Migrate: () =>
|
|
21
|
+
Migrate: () => import_chunk_ZOYXSZ2J.Migrate
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(Migrate_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_ZOYXSZ2J = require("./chunk-ZOYXSZ2J.js");
|
|
25
25
|
var import_chunk_GGA2F64G = require("./chunk-GGA2F64G.js");
|
|
26
26
|
var import_chunk_23DZXSTI = require("./chunk-23DZXSTI.js");
|
|
27
|
-
var
|
|
28
|
-
var
|
|
27
|
+
var import_chunk_KDAXJMEP = require("./chunk-KDAXJMEP.js");
|
|
28
|
+
var import_chunk_T25WPL3D = require("./chunk-T25WPL3D.js");
|
|
29
29
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
30
30
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
package/dist/SchemaEngineCLI.js
CHANGED
|
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var SchemaEngineCLI_exports = {};
|
|
20
20
|
__export(SchemaEngineCLI_exports, {
|
|
21
|
-
EngineError: () =>
|
|
22
|
-
SchemaEngineCLI: () =>
|
|
21
|
+
EngineError: () => import_chunk_KDAXJMEP.EngineError,
|
|
22
|
+
SchemaEngineCLI: () => import_chunk_KDAXJMEP.SchemaEngineCLI
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(SchemaEngineCLI_exports);
|
|
25
|
-
var
|
|
26
|
-
var
|
|
25
|
+
var import_chunk_KDAXJMEP = require("./chunk-KDAXJMEP.js");
|
|
26
|
+
var import_chunk_T25WPL3D = require("./chunk-T25WPL3D.js");
|
|
27
27
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
28
28
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
package/dist/SchemaEngineWasm.js
CHANGED
|
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var SchemaEngineWasm_exports = {};
|
|
20
20
|
__export(SchemaEngineWasm_exports, {
|
|
21
|
-
SchemaEngineWasm: () =>
|
|
21
|
+
SchemaEngineWasm: () => import_chunk_BWFPKWBD.SchemaEngineWasm
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(SchemaEngineWasm_exports);
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
24
|
+
var import_chunk_BWFPKWBD = require("./chunk-BWFPKWBD.js");
|
|
25
|
+
var import_chunk_KDAXJMEP = require("./chunk-KDAXJMEP.js");
|
|
26
|
+
var import_chunk_T25WPL3D = require("./chunk-T25WPL3D.js");
|
|
27
27
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
28
28
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
package/dist/bin.js
CHANGED
|
@@ -23,43 +23,43 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
mod
|
|
24
24
|
));
|
|
25
25
|
var import_chunk_TXQI3C4H = require("./chunk-TXQI3C4H.js");
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
26
|
+
var import_chunk_3C5DQOOW = require("./chunk-3C5DQOOW.js");
|
|
27
|
+
var import_chunk_IKF6HBHH = require("./chunk-IKF6HBHH.js");
|
|
28
|
+
var import_chunk_W4WHE5HS = require("./chunk-W4WHE5HS.js");
|
|
29
29
|
var import_chunk_C3722PDA = require("./chunk-C3722PDA.js");
|
|
30
|
-
var
|
|
31
|
-
var
|
|
30
|
+
var import_chunk_6F7CAPL7 = require("./chunk-6F7CAPL7.js");
|
|
31
|
+
var import_chunk_I7UMFS37 = require("./chunk-I7UMFS37.js");
|
|
32
32
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
33
|
-
var
|
|
33
|
+
var import_chunk_VJKZQVKX = require("./chunk-VJKZQVKX.js");
|
|
34
34
|
var import_chunk_G222ME3D = require("./chunk-G222ME3D.js");
|
|
35
35
|
var import_chunk_2R6DII47 = require("./chunk-2R6DII47.js");
|
|
36
36
|
var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
37
|
+
var import_chunk_MQ76MQ53 = require("./chunk-MQ76MQ53.js");
|
|
38
|
+
var import_chunk_Y3QVFDLE = require("./chunk-Y3QVFDLE.js");
|
|
39
|
+
var import_chunk_GHPP2B5T = require("./chunk-GHPP2B5T.js");
|
|
40
|
+
var import_chunk_BZ2JSF42 = require("./chunk-BZ2JSF42.js");
|
|
41
|
+
var import_chunk_UWVWZK5Z = require("./chunk-UWVWZK5Z.js");
|
|
42
42
|
var import_chunk_ZOT2HSX5 = require("./chunk-ZOT2HSX5.js");
|
|
43
43
|
var import_chunk_AHJ2N6BJ = require("./chunk-AHJ2N6BJ.js");
|
|
44
44
|
var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
|
|
45
45
|
var import_chunk_RTGQXNX6 = require("./chunk-RTGQXNX6.js");
|
|
46
46
|
var import_chunk_JFKDSUIE = require("./chunk-JFKDSUIE.js");
|
|
47
47
|
var import_chunk_LGYRZ6CV = require("./chunk-LGYRZ6CV.js");
|
|
48
|
-
var
|
|
48
|
+
var import_chunk_I3UQXXYF = require("./chunk-I3UQXXYF.js");
|
|
49
49
|
var import_chunk_PHX6STZ3 = require("./chunk-PHX6STZ3.js");
|
|
50
|
-
var
|
|
50
|
+
var import_chunk_KYZDCMJW = require("./chunk-KYZDCMJW.js");
|
|
51
51
|
var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
|
|
52
52
|
var import_chunk_BRPS327A = require("./chunk-BRPS327A.js");
|
|
53
53
|
var import_chunk_TWPTG4XS = require("./chunk-TWPTG4XS.js");
|
|
54
|
-
var
|
|
54
|
+
var import_chunk_HMVLLUKH = require("./chunk-HMVLLUKH.js");
|
|
55
55
|
var import_chunk_L7EZFBB4 = require("./chunk-L7EZFBB4.js");
|
|
56
56
|
var import_chunk_3WDCTXHL = require("./chunk-3WDCTXHL.js");
|
|
57
|
-
var
|
|
58
|
-
var
|
|
57
|
+
var import_chunk_F2LZOLZK = require("./chunk-F2LZOLZK.js");
|
|
58
|
+
var import_chunk_ZOYXSZ2J = require("./chunk-ZOYXSZ2J.js");
|
|
59
59
|
var import_chunk_GGA2F64G = require("./chunk-GGA2F64G.js");
|
|
60
60
|
var import_chunk_23DZXSTI = require("./chunk-23DZXSTI.js");
|
|
61
|
-
var
|
|
62
|
-
var
|
|
61
|
+
var import_chunk_KDAXJMEP = require("./chunk-KDAXJMEP.js");
|
|
62
|
+
var import_chunk_T25WPL3D = require("./chunk-T25WPL3D.js");
|
|
63
63
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
64
64
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
65
65
|
var import_node_path = __toESM(require("node:path"));
|
|
@@ -67,7 +67,7 @@ var import_config = require("@prisma/config");
|
|
|
67
67
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
68
68
|
var import_engines_version = require("@prisma/engines-version");
|
|
69
69
|
var import_internals = require("@prisma/internals");
|
|
70
|
-
var version = "7.10.0-
|
|
70
|
+
var version = "7.10.0-integration-prisma7-project-closeout.10";
|
|
71
71
|
process.on("uncaughtException", (e) => {
|
|
72
72
|
console.log(e);
|
|
73
73
|
});
|
|
@@ -88,21 +88,27 @@ var args = (0, import_internals.arg)(
|
|
|
88
88
|
);
|
|
89
89
|
async function main() {
|
|
90
90
|
const cli = import_chunk_TXQI3C4H.CLI.new({
|
|
91
|
-
migrate:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
91
|
+
migrate: import_chunk_F2LZOLZK.MigrateCommand.new(
|
|
92
|
+
{
|
|
93
|
+
dev: import_chunk_W4WHE5HS.MigrateDev.new("prisma"),
|
|
94
|
+
status: import_chunk_Y3QVFDLE.MigrateStatus.new("prisma"),
|
|
95
|
+
resolve: import_chunk_MQ76MQ53.MigrateResolve.new("prisma"),
|
|
96
|
+
reset: import_chunk_VJKZQVKX.MigrateReset.new("prisma"),
|
|
97
|
+
deploy: import_chunk_IKF6HBHH.MigrateDeploy.new("prisma"),
|
|
98
|
+
diff: import_chunk_I7UMFS37.MigrateDiff.new("prisma")
|
|
99
|
+
},
|
|
100
|
+
"prisma"
|
|
101
|
+
),
|
|
102
|
+
db: import_chunk_GHPP2B5T.DbCommand.new(
|
|
103
|
+
{
|
|
104
|
+
execute: import_chunk_BZ2JSF42.DbExecute.new("prisma"),
|
|
105
|
+
pull: import_chunk_UWVWZK5Z.DbPull.new("prisma"),
|
|
106
|
+
push: import_chunk_I3UQXXYF.DbPush.new("prisma"),
|
|
107
|
+
// drop: DbDrop.new('prisma'),
|
|
108
|
+
seed: import_chunk_HMVLLUKH.DbSeed.new("prisma")
|
|
109
|
+
},
|
|
110
|
+
"prisma"
|
|
111
|
+
)
|
|
106
112
|
});
|
|
107
113
|
const configFile = args["--config"];
|
|
108
114
|
const baseDir = configFile ? import_node_path.default.resolve(configFile, "..") : process.cwd();
|
|
@@ -133,7 +139,7 @@ async function main() {
|
|
|
133
139
|
cliVersion: version,
|
|
134
140
|
enginesVersion: import_engines_version.enginesVersion,
|
|
135
141
|
command: commandArray.join(" "),
|
|
136
|
-
getDatabaseVersionSafe: (args2) => (0,
|
|
142
|
+
getDatabaseVersionSafe: (args2) => (0, import_chunk_3C5DQOOW.getDatabaseVersionSafe)(args2, config, baseDir)
|
|
137
143
|
});
|
|
138
144
|
}
|
|
139
145
|
throw error2;
|
|
@@ -26,19 +26,19 @@ 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_3C5DQOOW_exports = {};
|
|
30
|
+
__export(chunk_3C5DQOOW_exports, {
|
|
31
31
|
getDatabaseVersionSafe: () => getDatabaseVersionSafe
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_3C5DQOOW_exports);
|
|
34
|
+
var import_chunk_ZOYXSZ2J = require("./chunk-ZOYXSZ2J.js");
|
|
35
35
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
36
36
|
var debug = (0, import_debug.default)("prisma:cli");
|
|
37
37
|
async function getDatabaseVersionSafe(args, config, baseDir) {
|
|
38
38
|
let migrate;
|
|
39
39
|
let dbVersion;
|
|
40
40
|
try {
|
|
41
|
-
migrate = await
|
|
41
|
+
migrate = await import_chunk_ZOYXSZ2J.Migrate.setup({ schemaEngineConfig: config, baseDir });
|
|
42
42
|
dbVersion = await migrate.engine.getDatabaseVersion(args);
|
|
43
43
|
} catch (e) {
|
|
44
44
|
debug(e);
|
|
@@ -16,35 +16,35 @@ 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_3NKLI5KP_exports = {};
|
|
20
|
+
__export(chunk_3NKLI5KP_exports, {
|
|
21
21
|
dbPullCompletion: () => dbPullCompletion
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_3NKLI5KP_exports);
|
|
24
|
+
var import_internals = require("@prisma/internals");
|
|
25
25
|
var dbPullCompletion = {
|
|
26
26
|
name: "db pull",
|
|
27
27
|
description: "Pull the schema from an existing database",
|
|
28
28
|
options: [
|
|
29
29
|
{ name: "help", alias: "h", description: "Display this help message" },
|
|
30
|
-
{ name: "schema", description: "Custom path to your Prisma schema", values:
|
|
31
|
-
{ name: "config", description: "Custom path to your Prisma config file", values:
|
|
30
|
+
{ name: "schema", description: "Custom path to your Prisma schema", values: import_internals.completionSchemaPaths },
|
|
31
|
+
{ name: "config", description: "Custom path to your Prisma config file", values: import_internals.completionConfigPaths },
|
|
32
32
|
{
|
|
33
33
|
name: "url",
|
|
34
34
|
description: "Override the datasource URL from the Prisma config file",
|
|
35
|
-
values:
|
|
35
|
+
values: import_internals.completionDatasourceUrls
|
|
36
36
|
},
|
|
37
37
|
{ name: "force", description: "Ignore current Prisma schema file" },
|
|
38
38
|
{ name: "print", description: "Print the introspected Prisma schema to stdout" },
|
|
39
39
|
{
|
|
40
40
|
name: "composite-type-depth",
|
|
41
41
|
description: "Specify the depth for introspecting composite types",
|
|
42
|
-
values:
|
|
42
|
+
values: import_internals.completionCompositeTypeDepths
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
name: "schemas",
|
|
46
46
|
description: "Specify database schemas to introspect (overrides datasource block)",
|
|
47
|
-
values:
|
|
47
|
+
values: import_internals.completionDatabaseSchemas
|
|
48
48
|
}
|
|
49
49
|
]
|
|
50
50
|
};
|
|
@@ -16,23 +16,23 @@ 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_57S5K3DX_exports = {};
|
|
20
|
+
__export(chunk_57S5K3DX_exports, {
|
|
21
21
|
dbPushCompletion: () => dbPushCompletion
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_57S5K3DX_exports);
|
|
24
|
+
var import_internals = require("@prisma/internals");
|
|
25
25
|
var dbPushCompletion = {
|
|
26
26
|
name: "db push",
|
|
27
27
|
description: "Push the Prisma schema state to the database",
|
|
28
28
|
options: [
|
|
29
29
|
{ name: "help", alias: "h", description: "Display this help message" },
|
|
30
|
-
{ name: "schema", description: "Custom path to your Prisma schema", values:
|
|
31
|
-
{ name: "config", description: "Custom path to your Prisma config file", values:
|
|
30
|
+
{ name: "schema", description: "Custom path to your Prisma schema", values: import_internals.completionSchemaPaths },
|
|
31
|
+
{ name: "config", description: "Custom path to your Prisma config file", values: import_internals.completionConfigPaths },
|
|
32
32
|
{
|
|
33
33
|
name: "url",
|
|
34
34
|
description: "Override the datasource URL from the Prisma config file",
|
|
35
|
-
values:
|
|
35
|
+
values: import_internals.completionDatasourceUrls
|
|
36
36
|
},
|
|
37
37
|
{ name: "accept-data-loss", description: "Ignore data loss warnings" },
|
|
38
38
|
{ name: "force-reset", description: "Force a reset of the database before push" }
|
|
@@ -26,24 +26,21 @@ 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_5YSI4XSU_exports = {};
|
|
30
|
+
__export(chunk_5YSI4XSU_exports, {
|
|
31
31
|
DbDrop: () => DbDrop
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_5YSI4XSU_exports);
|
|
34
34
|
var import_chunk_IHDN3L3R = require("./chunk-IHDN3L3R.js");
|
|
35
35
|
var import_chunk_PHX6STZ3 = require("./chunk-PHX6STZ3.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_KYZDCMJW = require("./chunk-KYZDCMJW.js");
|
|
37
37
|
var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
|
|
38
38
|
var import_chunk_BRPS327A = require("./chunk-BRPS327A.js");
|
|
39
39
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
40
40
|
var import_internals = require("@prisma/internals");
|
|
41
41
|
var import_prompts = __toESM(require("prompts"));
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return new _DbDrop();
|
|
45
|
-
}
|
|
46
|
-
static help = (0, import_internals.format)(`
|
|
42
|
+
function renderHelp(cliCommand) {
|
|
43
|
+
return (0, import_internals.format)(`
|
|
47
44
|
${process.platform === "win32" ? "" : "\u{1F4A3} "}Drop the database
|
|
48
45
|
|
|
49
46
|
${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.yellow)("WARNING"))} ${(0, import_chunk_SKRR5WT4.bold)(
|
|
@@ -54,7 +51,7 @@ ${(0, import_chunk_SKRR5WT4.dim)("When using any of the subcommands below you ne
|
|
|
54
51
|
|
|
55
52
|
${(0, import_chunk_SKRR5WT4.bold)("Usage")}
|
|
56
53
|
|
|
57
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")}
|
|
54
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} ${cliCommand} db drop [options] --preview-feature
|
|
58
55
|
|
|
59
56
|
The datasource URL configuration is read from the Prisma config file (e.g., ${(0, import_chunk_SKRR5WT4.italic)("prisma.config.ts")}).
|
|
60
57
|
|
|
@@ -68,14 +65,22 @@ ${(0, import_chunk_SKRR5WT4.bold)("Options")}
|
|
|
68
65
|
${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
69
66
|
|
|
70
67
|
Drop the database
|
|
71
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")}
|
|
68
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} ${cliCommand} db drop --preview-feature
|
|
72
69
|
|
|
73
70
|
Specify a schema
|
|
74
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")}
|
|
71
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} ${cliCommand} db drop --preview-feature --schema=./schema.prisma
|
|
75
72
|
|
|
76
73
|
Use --force to skip the confirmation prompt
|
|
77
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")}
|
|
74
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} ${cliCommand} db drop --preview-feature --force
|
|
78
75
|
`);
|
|
76
|
+
}
|
|
77
|
+
var DbDrop = class _DbDrop {
|
|
78
|
+
constructor(cliCommand) {
|
|
79
|
+
this.cliCommand = cliCommand;
|
|
80
|
+
}
|
|
81
|
+
static new(cliCommand) {
|
|
82
|
+
return new _DbDrop(cliCommand);
|
|
83
|
+
}
|
|
79
84
|
async parse(argv, config, baseDir) {
|
|
80
85
|
const args = (0, import_internals.arg)(argv, {
|
|
81
86
|
"--help": Boolean,
|
|
@@ -103,15 +108,15 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
103
108
|
baseDir
|
|
104
109
|
})
|
|
105
110
|
});
|
|
106
|
-
const cmd =
|
|
107
|
-
const validatedConfig = (0, import_internals.validatePrismaConfigWithDatasource)({ config, cmd });
|
|
108
|
-
(0, import_internals.checkUnsupportedDataProxy)({ cmd, validatedConfig });
|
|
111
|
+
const cmd = `${this.cliCommand} db drop`;
|
|
112
|
+
const validatedConfig = (0, import_internals.validatePrismaConfigWithDatasource)({ config, command: cmd });
|
|
113
|
+
(0, import_internals.checkUnsupportedDataProxy)({ command: cmd, validatedConfig });
|
|
109
114
|
const datasourceInfo = (0, import_chunk_BRPS327A.parseDatasourceInfo)(schemaContext.primaryDatasource, validatedConfig);
|
|
110
115
|
(0, import_chunk_QOPTDDIH.printDatasource)({ datasourceInfo });
|
|
111
116
|
process.stdout.write("\n");
|
|
112
117
|
if (!args["--force"]) {
|
|
113
118
|
if (!(0, import_internals.canPrompt)()) {
|
|
114
|
-
throw new
|
|
119
|
+
throw new import_chunk_KYZDCMJW.DbDropNeedsForceError("drop", this.cliCommand);
|
|
115
120
|
}
|
|
116
121
|
const confirmation = await (0, import_prompts.default)({
|
|
117
122
|
type: "text",
|
|
@@ -140,11 +145,12 @@ ${(0, import_chunk_SKRR5WT4.red)("All data will be lost")}.`
|
|
|
140
145
|
}
|
|
141
146
|
}
|
|
142
147
|
help(error) {
|
|
148
|
+
const help = renderHelp(this.cliCommand);
|
|
143
149
|
if (error) {
|
|
144
150
|
return new import_internals.HelpError(`
|
|
145
151
|
${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.red)(`!`))} ${error}
|
|
146
|
-
${
|
|
152
|
+
${help}`);
|
|
147
153
|
}
|
|
148
|
-
return
|
|
154
|
+
return help;
|
|
149
155
|
}
|
|
150
156
|
};
|
|
@@ -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_6F7CAPL7_exports = {};
|
|
20
|
+
__export(chunk_6F7CAPL7_exports, {
|
|
21
21
|
handleUnexecutableSteps: () => handleUnexecutableSteps
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_6F7CAPL7_exports);
|
|
24
24
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
25
25
|
var import_internals = require("@prisma/internals");
|
|
26
|
-
function handleUnexecutableSteps(unexecutableSteps, createOnly = false) {
|
|
26
|
+
function handleUnexecutableSteps(unexecutableSteps, cliCommand, createOnly = false) {
|
|
27
27
|
if (unexecutableSteps && unexecutableSteps.length > 0) {
|
|
28
28
|
const messages = [];
|
|
29
29
|
messages.push(`${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.red)("\n\u26A0\uFE0F We found changes that cannot be executed:\n"))}`);
|
|
@@ -35,15 +35,14 @@ function handleUnexecutableSteps(unexecutableSteps, createOnly = false) {
|
|
|
35
35
|
console.error(`${messages.join("\n")}
|
|
36
36
|
`);
|
|
37
37
|
return void 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
38
|
+
}
|
|
39
|
+
return `${messages.join("\n")}
|
|
40
40
|
|
|
41
41
|
You can use ${(0, import_internals.getCommandWithExecutor)(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
Then run ${(0, import_internals.getCommandWithExecutor)(
|
|
42
|
+
`${cliCommand} migrate dev --create-only`
|
|
43
|
+
)} to create the migration file, and manually modify it to address the underlying issue(s).
|
|
44
|
+
Then run ${(0, import_internals.getCommandWithExecutor)(`${cliCommand} migrate dev`)} to apply it and verify it works.
|
|
45
45
|
`;
|
|
46
|
-
}
|
|
47
46
|
}
|
|
48
47
|
return void 0;
|
|
49
48
|
}
|
|
@@ -16,18 +16,18 @@ 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_7KCEXIB2_exports = {};
|
|
20
|
+
__export(chunk_7KCEXIB2_exports, {
|
|
21
21
|
dbCompletion: () => dbCompletion
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_7KCEXIB2_exports);
|
|
24
|
+
var import_internals = require("@prisma/internals");
|
|
25
25
|
var dbCompletion = {
|
|
26
26
|
name: "db",
|
|
27
27
|
description: "Manage your database schema and lifecycle",
|
|
28
28
|
options: [
|
|
29
29
|
{ name: "help", alias: "h", description: "Display this help message" },
|
|
30
|
-
{ name: "config", description: "Custom path to your Prisma config file", values:
|
|
31
|
-
{ name: "schema", description: "Custom path to your Prisma schema", values:
|
|
30
|
+
{ name: "config", description: "Custom path to your Prisma config file", values: import_internals.completionConfigPaths },
|
|
31
|
+
{ name: "schema", description: "Custom path to your Prisma schema", values: import_internals.completionSchemaPaths }
|
|
32
32
|
]
|
|
33
33
|
};
|
|
@@ -16,19 +16,19 @@ 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_A6PUWLVN_exports = {};
|
|
20
|
+
__export(chunk_A6PUWLVN_exports, {
|
|
21
21
|
migrateResetCompletion: () => migrateResetCompletion
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_A6PUWLVN_exports);
|
|
24
|
+
var import_internals = require("@prisma/internals");
|
|
25
25
|
var migrateResetCompletion = {
|
|
26
26
|
name: "migrate reset",
|
|
27
27
|
description: "Reset your database and apply all migrations",
|
|
28
28
|
options: [
|
|
29
29
|
{ name: "help", alias: "h", description: "Display this help message" },
|
|
30
|
-
{ name: "schema", description: "Custom path to your Prisma schema", values:
|
|
31
|
-
{ name: "config", description: "Custom path to your Prisma config file", values:
|
|
30
|
+
{ name: "schema", description: "Custom path to your Prisma schema", values: import_internals.completionSchemaPaths },
|
|
31
|
+
{ name: "config", description: "Custom path to your Prisma config file", values: import_internals.completionConfigPaths },
|
|
32
32
|
{ name: "force", alias: "f", description: "Skip the confirmation prompt" }
|
|
33
33
|
]
|
|
34
34
|
};
|
|
@@ -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_BWFPKWBD_exports = {};
|
|
30
|
+
__export(chunk_BWFPKWBD_exports, {
|
|
31
31
|
SchemaEngineWasm: () => SchemaEngineWasm
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
35
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_BWFPKWBD_exports);
|
|
34
|
+
var import_chunk_KDAXJMEP = require("./chunk-KDAXJMEP.js");
|
|
35
|
+
var import_chunk_T25WPL3D = require("./chunk-T25WPL3D.js");
|
|
36
36
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
37
37
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
38
38
|
var import_internals = require("@prisma/internals");
|
|
@@ -83,7 +83,7 @@ var SchemaEngineWasm = class _SchemaEngineWasm {
|
|
|
83
83
|
const { message, stack } = (0, import_internals.getWasmError)(e);
|
|
84
84
|
throw new import_internals.RustPanic(serializePanic(message), stack, command, import_internals.ErrorArea.LIFT_CLI);
|
|
85
85
|
} else if ("code" in error) {
|
|
86
|
-
throw new
|
|
86
|
+
throw new import_chunk_KDAXJMEP.EngineError((0, import_chunk_SKRR5WT4.red)(`${error.code}
|
|
87
87
|
|
|
88
88
|
${(0, import_internals.relativizePathInPSLError)(error.message)}
|
|
89
89
|
`), error.code);
|
|
@@ -189,7 +189,7 @@ ${(0, import_internals.relativizePathInPSLError)(error.message)}
|
|
|
189
189
|
});
|
|
190
190
|
const { views } = introspectResult;
|
|
191
191
|
if (views) {
|
|
192
|
-
await (0,
|
|
192
|
+
await (0, import_chunk_T25WPL3D.handleViewsIO)({ views, viewsDirectoryPath });
|
|
193
193
|
}
|
|
194
194
|
return introspectResult;
|
|
195
195
|
}
|
|
@@ -26,21 +26,22 @@ 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_BZ2JSF42_exports = {};
|
|
30
|
+
__export(chunk_BZ2JSF42_exports, {
|
|
31
31
|
DbExecute: () => DbExecute
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_BZ2JSF42_exports);
|
|
34
|
+
var import_chunk_ZOYXSZ2J = require("./chunk-ZOYXSZ2J.js");
|
|
35
35
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
36
36
|
var import_consumers = __toESM(require("node:stream/consumers"));
|
|
37
37
|
var import_internals = require("@prisma/internals");
|
|
38
38
|
var import_fs = __toESM(require("fs"));
|
|
39
39
|
var import_path = __toESM(require("path"));
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
function renderHelpOptions(cliCommand) {
|
|
41
|
+
return (0, import_internals.format)(
|
|
42
|
+
`${(0, import_chunk_SKRR5WT4.bold)("Usage")}
|
|
42
43
|
|
|
43
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")}
|
|
44
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} ${cliCommand} db execute [options]
|
|
44
45
|
|
|
45
46
|
The datasource URL configuration is read from the Prisma config file (e.g., ${(0, import_chunk_SKRR5WT4.italic)("prisma.config.ts")}).
|
|
46
47
|
|
|
@@ -55,15 +56,10 @@ ${(0, import_chunk_SKRR5WT4.italic)("Script input, only 1 must be provided:")}
|
|
|
55
56
|
${(0, import_chunk_SKRR5WT4.bold)("Flags")}
|
|
56
57
|
|
|
57
58
|
--stdin Use the terminal standard input as the script to be executed`
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
// TODO: This command needs to get proper support for `prisma.config.ts` eventually. Not just taking the schema path
|
|
64
|
-
// from prisma.config.ts but likely to support driver adapters, too?
|
|
65
|
-
// See https://linear.app/prisma-company/issue/ORM-639/prisma-db-execute-support-prismaconfigts-and-driver-adapters
|
|
66
|
-
static help = (0, import_internals.format)(`
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
function renderHelp(cliCommand) {
|
|
62
|
+
return (0, import_internals.format)(`
|
|
67
63
|
${process.platform === "win32" ? "" : "\u{1F4DD} "}Execute native commands to your database
|
|
68
64
|
|
|
69
65
|
This command takes as input a datasource defined in ${(0, import_chunk_SKRR5WT4.italic)("prisma.config.ts")} and a script, using ${(0, import_chunk_SKRR5WT4.green)(
|
|
@@ -78,17 +74,23 @@ The whole script will be sent as a single command to the database.
|
|
|
78
74
|
|
|
79
75
|
${(0, import_chunk_SKRR5WT4.italic)(`This command is currently not supported on MongoDB.`)}
|
|
80
76
|
|
|
81
|
-
${
|
|
77
|
+
${renderHelpOptions(cliCommand)}
|
|
82
78
|
${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
83
79
|
|
|
84
80
|
Execute the content of a SQL script file using the datasource configured in prisma.config.ts
|
|
85
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")}
|
|
81
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} ${cliCommand} db execute --file ./script.sql
|
|
86
82
|
|
|
87
83
|
Execute the SQL script from stdin using the configured datasource
|
|
88
|
-
${(0, import_chunk_SKRR5WT4.dim)("$")} echo 'TRUNCATE TABLE dev;' |
|
|
89
|
-
prisma db execute \\
|
|
90
|
-
--stdin
|
|
84
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} echo 'TRUNCATE TABLE dev;' | ${cliCommand} db execute --stdin
|
|
91
85
|
`);
|
|
86
|
+
}
|
|
87
|
+
var DbExecute = class _DbExecute {
|
|
88
|
+
constructor(cliCommand) {
|
|
89
|
+
this.cliCommand = cliCommand;
|
|
90
|
+
}
|
|
91
|
+
static new(cliCommand) {
|
|
92
|
+
return new _DbExecute(cliCommand);
|
|
93
|
+
}
|
|
92
94
|
async parse(argv, config, baseDir) {
|
|
93
95
|
const args = (0, import_internals.arg)(
|
|
94
96
|
argv,
|
|
@@ -108,17 +110,17 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
108
110
|
if (args["--help"]) {
|
|
109
111
|
return this.help();
|
|
110
112
|
}
|
|
111
|
-
const cmd =
|
|
112
|
-
const validatedConfig = (0, import_internals.validatePrismaConfigWithDatasource)({ config, cmd });
|
|
113
|
+
const cmd = `${this.cliCommand} db execute`;
|
|
114
|
+
const validatedConfig = (0, import_internals.validatePrismaConfigWithDatasource)({ config, command: cmd });
|
|
113
115
|
if (args["--stdin"] && args["--file"]) {
|
|
114
116
|
throw new Error(
|
|
115
117
|
`--stdin and --file cannot be used at the same time. Only 1 must be provided.
|
|
116
|
-
See \`${(0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)(
|
|
118
|
+
See \`${(0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)(`${this.cliCommand} db execute -h`))}\``
|
|
117
119
|
);
|
|
118
120
|
} else if (!args["--stdin"] && !args["--file"]) {
|
|
119
121
|
throw new Error(
|
|
120
122
|
`Either --stdin or --file must be provided.
|
|
121
|
-
See \`${(0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)(
|
|
123
|
+
See \`${(0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)(`${this.cliCommand} db execute -h`))}\``
|
|
122
124
|
);
|
|
123
125
|
}
|
|
124
126
|
let script = "";
|
|
@@ -137,12 +139,12 @@ See \`${(0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExec
|
|
|
137
139
|
if (args["--stdin"]) {
|
|
138
140
|
script = await import_consumers.default.text(process.stdin);
|
|
139
141
|
}
|
|
140
|
-
(0, import_internals.checkUnsupportedDataProxy)({ cmd, validatedConfig });
|
|
142
|
+
(0, import_internals.checkUnsupportedDataProxy)({ command: cmd, validatedConfig });
|
|
141
143
|
const datasourceType = {
|
|
142
144
|
tag: "url",
|
|
143
145
|
url: validatedConfig.datasource.url
|
|
144
146
|
};
|
|
145
|
-
const migrate = await
|
|
147
|
+
const migrate = await import_chunk_ZOYXSZ2J.Migrate.setup({
|
|
146
148
|
schemaEngineConfig: config,
|
|
147
149
|
extensions: config["extensions"],
|
|
148
150
|
baseDir
|
|
@@ -162,8 +164,8 @@ See \`${(0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExec
|
|
|
162
164
|
throw new import_internals.HelpError(`
|
|
163
165
|
${error}
|
|
164
166
|
|
|
165
|
-
${
|
|
167
|
+
${renderHelpOptions(this.cliCommand)}`);
|
|
166
168
|
}
|
|
167
|
-
return
|
|
169
|
+
return renderHelp(this.cliCommand);
|
|
168
170
|
}
|
|
169
171
|
};
|