@prisma/migrate 6.4.1 → 6.5.0-dev.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/CLI.js +3 -4
- package/dist/Migrate.js +6 -7
- package/dist/SchemaEngine.js +6 -7
- package/dist/bin.js +116 -146
- package/dist/{chunk-WOOPRG54.js → chunk-255BRND3.js} +7 -14
- package/dist/{chunk-75EIHNAH.js → chunk-2NMFKGXM.js} +5 -6
- package/dist/chunk-3WC4XD74.js +98 -0
- package/dist/chunk-4EV2RVXY.js +226 -0
- package/dist/{chunk-YWWOSXMY.js → chunk-4JQIX6O7.js} +7 -15
- package/dist/{chunk-J77IRNPE.js → chunk-5VDXAE53.js} +45 -31
- package/dist/{chunk-M5YNQ2NP.js → chunk-6DFJIBJX.js} +5 -12
- package/dist/{chunk-SGCF5OHF.js → chunk-7CQBDP4H.js} +6 -13
- package/dist/{chunk-7IT2ZO3D.js → chunk-AHJ2N6BJ.js} +3 -9
- package/dist/chunk-CTPONE6G.js +65 -0
- package/dist/{chunk-DUCG3NRP.js → chunk-D74DU52C.js} +633 -806
- package/dist/{chunk-UVNSK22K.js → chunk-DDHPSYC4.js} +122 -130
- package/dist/{chunk-CUDKD32S.js → chunk-DIAO4W7O.js} +11 -17
- package/dist/{chunk-XJQP3B4W.js → chunk-DJMFXNR4.js} +7 -15
- package/dist/{chunk-YD7GG4WS.js → chunk-FRTPDRF2.js} +66 -74
- package/dist/chunk-HIFVDK2U.js +96 -0
- package/dist/chunk-I4EY55DC.js +195 -0
- package/dist/{chunk-WLJHGKMK.js → chunk-IHDN3L3R.js} +7 -8
- package/dist/chunk-J5FHVALZ.js +230 -0
- package/dist/{chunk-INC2OACE.js → chunk-JFKDSUIE.js} +3 -9
- package/dist/{chunk-V7DE6JTG.js → chunk-JZ75RIMZ.js} +3 -9
- package/dist/{chunk-AAATUOV6.js → chunk-L6KOIJJ5.js} +53 -59
- package/dist/{chunk-GN5BY5N2.js → chunk-LGYRZ6CV.js} +4 -10
- package/dist/chunk-LVLRGTYH.js +148 -0
- package/dist/{chunk-CQQQ436N.js → chunk-MATFO4ZW.js} +186 -200
- package/dist/{chunk-WZT5FFN4.js → chunk-NB4NJGMY.js} +634 -807
- package/dist/{chunk-IFCV5MY4.js → chunk-OCQGHQED.js} +5 -11
- package/dist/chunk-ORL3LJOT.js +470 -0
- package/dist/chunk-PSYS5XVH.js +335 -0
- package/dist/{chunk-Q7ACZDDT.js → chunk-QOPTDDIH.js} +5 -12
- package/dist/chunk-QTAIWPLH.js +78 -0
- package/dist/{chunk-35LAJN5S.js → chunk-RP2N6UXA.js} +23 -29
- package/dist/chunk-RQFGRXJI.js +174 -0
- package/dist/{chunk-QBK5XTJE.js → chunk-RR6BKMNO.js} +3 -9
- package/dist/{chunk-ILJRJJ3S.js → chunk-RTGQXNX6.js} +3 -9
- package/dist/chunk-SKRR5WT4.js +76 -0
- package/dist/chunk-TM3ETZES.js +153 -0
- package/dist/{chunk-KPUNMK5W.js → chunk-TWPTG4XS.js} +5 -12
- package/dist/{chunk-6QFE3AWR.js → chunk-UP6FVCDK.js} +6 -13
- package/dist/{chunk-YKUZUAXA.js → chunk-V3ZMNXZC.js} +16 -23
- package/dist/chunk-WLPX3672.js +365 -0
- package/dist/chunk-WNH2ACJS.js +122 -0
- package/dist/{chunk-X6XGFLEF.js → chunk-YZVZCC3I.js} +25 -30
- package/dist/commands/DbCommand.js +3 -4
- package/dist/commands/DbDrop.js +9 -9
- package/dist/commands/DbExecute.js +7 -8
- package/dist/commands/DbPull.js +18 -19
- package/dist/commands/DbPush.js +12 -13
- package/dist/commands/DbSeed.js +4 -5
- package/dist/commands/MigrateCommand.js +3 -4
- package/dist/commands/MigrateDeploy.js +13 -14
- package/dist/commands/MigrateDev.js +17 -18
- package/dist/commands/MigrateDiff.js +8 -9
- package/dist/commands/MigrateReset.js +15 -16
- package/dist/commands/MigrateResolve.js +11 -12
- package/dist/commands/MigrateStatus.js +11 -12
- package/dist/index.js +60 -77
- package/dist/migrate/src/commands/MigrateDev.d.ts +1 -1
- package/dist/{multipart-parser-73VM3J4A.js → multipart-parser-NDLECNMN.js} +527 -561
- package/dist/utils/byline.js +5 -6
- package/dist/utils/captureStdout.js +2 -3
- package/dist/utils/countModelsAndTypes.js +2 -3
- package/dist/utils/ensureDatabaseExists.js +8 -9
- package/dist/utils/errors.js +8 -9
- package/dist/utils/flagErrors.js +5 -5
- package/dist/utils/getDatabaseVersionSafe.js +6 -7
- package/dist/utils/getSchemaPathAndPrint.js +4 -5
- package/dist/utils/handleEvaluateDataloss.js +3 -4
- package/dist/utils/introspectSql.js +6 -6
- package/dist/utils/isSchemaEmpty.js +2 -3
- package/dist/utils/printDatasource.js +3 -4
- package/dist/utils/printDatasources.js +3 -4
- package/dist/utils/printFiles.js +5 -6
- package/dist/utils/printIntrospectedSchema.js +2 -3
- package/dist/utils/printMigrationId.js +4 -5
- package/dist/utils/promptForMigrationName.js +2 -3
- package/dist/utils/removeSchemaFiles.js +2 -3
- package/dist/utils/replaceOrAddDatasource.js +2 -3
- package/dist/utils/replaceOrAddDatasource.test.js +7 -8
- package/dist/utils/saveSchemaFiles.js +2 -3
- package/dist/utils/seed.js +6 -7
- package/dist/utils/setupMSSQL.js +13 -13
- package/dist/utils/setupMongo.js +3 -3
- package/dist/utils/spinner.js +2 -3
- package/dist/utils/unixSocket.js +2 -3
- package/dist/views/handleViewsIO.js +2 -3
- package/package.json +7 -7
- package/dist/chunk-26XQQ4AG.js +0 -386
- package/dist/chunk-2RSEPJFX.js +0 -165
- package/dist/chunk-4B2LXK4R.js +0 -207
- package/dist/chunk-4UJBOCZJ.js +0 -130
- package/dist/chunk-5HZLCY6X.js +0 -161
- package/dist/chunk-6TE2RIPN.js +0 -80
- package/dist/chunk-7S3Q4MCN.js +0 -480
- package/dist/chunk-AOX7CJAS.js +0 -234
- package/dist/chunk-FF3526PX.js +0 -279
- package/dist/chunk-FUSFURVP.js +0 -86
- package/dist/chunk-GCTCQLOF.js +0 -365
- package/dist/chunk-K44VNAFW.js +0 -189
- package/dist/chunk-O4BT6W33.js +0 -104
- package/dist/chunk-TKAGMA5K.js +0 -72
- package/dist/chunk-U374EXYQ.js +0 -106
package/dist/chunk-GCTCQLOF.js
DELETED
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var chunk_GCTCQLOF_exports = {};
|
|
30
|
-
__export(chunk_GCTCQLOF_exports, {
|
|
31
|
-
MigrateDev: () => MigrateDev,
|
|
32
|
-
init_MigrateDev: () => init_MigrateDev
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(chunk_GCTCQLOF_exports);
|
|
35
|
-
var import_chunk_IFCV5MY4 = require("./chunk-IFCV5MY4.js");
|
|
36
|
-
var import_chunk_SGCF5OHF = require("./chunk-SGCF5OHF.js");
|
|
37
|
-
var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
|
|
38
|
-
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
|
39
|
-
var import_chunk_6QFE3AWR = require("./chunk-6QFE3AWR.js");
|
|
40
|
-
var import_chunk_UVNSK22K = require("./chunk-UVNSK22K.js");
|
|
41
|
-
var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
|
|
42
|
-
var import_chunk_M5YNQ2NP = require("./chunk-M5YNQ2NP.js");
|
|
43
|
-
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
44
|
-
var import_chunk_XJQP3B4W = require("./chunk-XJQP3B4W.js");
|
|
45
|
-
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
46
|
-
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
47
|
-
var import_debug = __toESM(require("@prisma/debug"));
|
|
48
|
-
var import_internals = require("@prisma/internals");
|
|
49
|
-
var import_prompts = __toESM(require("prompts"));
|
|
50
|
-
var debug, _MigrateDev, MigrateDev;
|
|
51
|
-
var init_MigrateDev = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
52
|
-
"src/commands/MigrateDev.ts"() {
|
|
53
|
-
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
54
|
-
(0, import_chunk_UVNSK22K.init_Migrate)();
|
|
55
|
-
(0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
|
|
56
|
-
(0, import_chunk_U374EXYQ.init_errors)();
|
|
57
|
-
(0, import_chunk_M5YNQ2NP.init_getSchemaPathAndPrint)();
|
|
58
|
-
(0, import_chunk_SGCF5OHF.init_handleEvaluateDataloss)();
|
|
59
|
-
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
|
60
|
-
(0, import_chunk_WOOPRG54.init_printFiles)();
|
|
61
|
-
(0, import_chunk_6QFE3AWR.init_printMigrationId)();
|
|
62
|
-
(0, import_chunk_IFCV5MY4.init_promptForMigrationName)();
|
|
63
|
-
(0, import_chunk_YKUZUAXA.init_seed)();
|
|
64
|
-
debug = (0, import_debug.default)("prisma:migrate:dev");
|
|
65
|
-
_MigrateDev = class _MigrateDev2 {
|
|
66
|
-
static new() {
|
|
67
|
-
return new _MigrateDev2();
|
|
68
|
-
}
|
|
69
|
-
async parse(argv, config) {
|
|
70
|
-
const args = (0, import_internals.arg)(argv, {
|
|
71
|
-
"--help": Boolean,
|
|
72
|
-
"-h": "--help",
|
|
73
|
-
"--name": String,
|
|
74
|
-
"-n": "--name",
|
|
75
|
-
// '--force': Boolean,
|
|
76
|
-
// '-f': '--force',
|
|
77
|
-
"--create-only": Boolean,
|
|
78
|
-
"--schema": String,
|
|
79
|
-
"--config": String,
|
|
80
|
-
"--skip-generate": Boolean,
|
|
81
|
-
"--skip-seed": Boolean,
|
|
82
|
-
"--telemetry-information": String
|
|
83
|
-
});
|
|
84
|
-
if ((0, import_internals.isError)(args)) {
|
|
85
|
-
return this.help(args.message);
|
|
86
|
-
}
|
|
87
|
-
await (0, import_internals.checkUnsupportedDataProxy)("migrate dev", args, config.schema, true);
|
|
88
|
-
if (args["--help"]) {
|
|
89
|
-
return this.help();
|
|
90
|
-
}
|
|
91
|
-
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
92
|
-
const { schemaPath, schemas } = await (0, import_chunk_M5YNQ2NP.getSchemaPathAndPrint)(args["--schema"], config.schema);
|
|
93
|
-
const datasourceInfo = await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath });
|
|
94
|
-
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
|
|
95
|
-
process.stdout.write("\n");
|
|
96
|
-
(0, import_internals.validate)({
|
|
97
|
-
schemas
|
|
98
|
-
});
|
|
99
|
-
await (0, import_internals.getConfig)({
|
|
100
|
-
datamodel: schemas,
|
|
101
|
-
ignoreEnvVarErrors: false
|
|
102
|
-
});
|
|
103
|
-
const wasDbCreated = await (0, import_chunk_XJQP3B4W.ensureDatabaseExists)("create", schemaPath);
|
|
104
|
-
if (wasDbCreated) {
|
|
105
|
-
process.stdout.write(wasDbCreated + "\n\n");
|
|
106
|
-
}
|
|
107
|
-
const migrate = new import_chunk_UVNSK22K.Migrate(schemaPath);
|
|
108
|
-
let devDiagnostic;
|
|
109
|
-
try {
|
|
110
|
-
devDiagnostic = await migrate.devDiagnostic();
|
|
111
|
-
debug({ devDiagnostic: JSON.stringify(devDiagnostic, null, 2) });
|
|
112
|
-
} catch (e) {
|
|
113
|
-
migrate.stop();
|
|
114
|
-
throw e;
|
|
115
|
-
}
|
|
116
|
-
const migrationIdsApplied = [];
|
|
117
|
-
if (devDiagnostic.action.tag === "reset") {
|
|
118
|
-
if (!args["--force"]) {
|
|
119
|
-
if (!(0, import_internals.canPrompt)()) {
|
|
120
|
-
migrate.stop();
|
|
121
|
-
throw new import_chunk_U374EXYQ.MigrateDevEnvNonInteractiveError();
|
|
122
|
-
}
|
|
123
|
-
const confirmedReset = await this.confirmReset({
|
|
124
|
-
datasourceInfo,
|
|
125
|
-
reason: devDiagnostic.action.reason
|
|
126
|
-
});
|
|
127
|
-
process.stdout.write("\n");
|
|
128
|
-
if (!confirmedReset) {
|
|
129
|
-
process.stdout.write("Reset cancelled.\n");
|
|
130
|
-
migrate.stop();
|
|
131
|
-
process.exit(130);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
try {
|
|
135
|
-
await migrate.reset();
|
|
136
|
-
} catch (e) {
|
|
137
|
-
migrate.stop();
|
|
138
|
-
throw e;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
try {
|
|
142
|
-
const { appliedMigrationNames } = await migrate.applyMigrations();
|
|
143
|
-
migrationIdsApplied.push(...appliedMigrationNames);
|
|
144
|
-
if (appliedMigrationNames.length > 0) {
|
|
145
|
-
process.stdout.write(
|
|
146
|
-
`
|
|
147
|
-
The following migration(s) have been applied:
|
|
148
|
-
|
|
149
|
-
${(0, import_chunk_WOOPRG54.printFilesFromMigrationIds)(
|
|
150
|
-
"migrations",
|
|
151
|
-
appliedMigrationNames,
|
|
152
|
-
{
|
|
153
|
-
"migration.sql": ""
|
|
154
|
-
}
|
|
155
|
-
)}
|
|
156
|
-
`
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
} catch (e) {
|
|
160
|
-
migrate.stop();
|
|
161
|
-
throw e;
|
|
162
|
-
}
|
|
163
|
-
let evaluateDataLossResult;
|
|
164
|
-
try {
|
|
165
|
-
evaluateDataLossResult = await migrate.evaluateDataLoss();
|
|
166
|
-
debug({ evaluateDataLossResult });
|
|
167
|
-
} catch (e) {
|
|
168
|
-
migrate.stop();
|
|
169
|
-
throw e;
|
|
170
|
-
}
|
|
171
|
-
const unexecutableStepsError = (0, import_chunk_SGCF5OHF.handleUnexecutableSteps)(
|
|
172
|
-
evaluateDataLossResult.unexecutableSteps,
|
|
173
|
-
args["--create-only"]
|
|
174
|
-
);
|
|
175
|
-
if (unexecutableStepsError) {
|
|
176
|
-
migrate.stop();
|
|
177
|
-
throw new Error(unexecutableStepsError);
|
|
178
|
-
}
|
|
179
|
-
if (evaluateDataLossResult.warnings && evaluateDataLossResult.warnings.length > 0) {
|
|
180
|
-
process.stdout.write((0, import_chunk_6TE2RIPN.bold)(`
|
|
181
|
-
\u26A0\uFE0F Warnings for the current datasource:
|
|
182
|
-
|
|
183
|
-
`));
|
|
184
|
-
for (const warning of evaluateDataLossResult.warnings) {
|
|
185
|
-
process.stdout.write(` \u2022 ${warning.message}
|
|
186
|
-
`);
|
|
187
|
-
}
|
|
188
|
-
process.stdout.write("\n");
|
|
189
|
-
if (!args["--force"]) {
|
|
190
|
-
if (!(0, import_internals.canPrompt)()) {
|
|
191
|
-
migrate.stop();
|
|
192
|
-
throw new import_chunk_U374EXYQ.MigrateDevEnvNonInteractiveError();
|
|
193
|
-
}
|
|
194
|
-
const message = args["--create-only"] ? "Are you sure you want to create this migration?" : "Are you sure you want to create and apply this migration?";
|
|
195
|
-
const confirmation = await (0, import_prompts.default)({
|
|
196
|
-
type: "confirm",
|
|
197
|
-
name: "value",
|
|
198
|
-
message
|
|
199
|
-
});
|
|
200
|
-
if (!confirmation.value) {
|
|
201
|
-
process.stdout.write("Migration cancelled.\n");
|
|
202
|
-
migrate.stop();
|
|
203
|
-
process.exit(130);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
let migrationName = void 0;
|
|
208
|
-
if (evaluateDataLossResult.migrationSteps > 0 || args["--create-only"]) {
|
|
209
|
-
const getMigrationNameResult = await (0, import_chunk_IFCV5MY4.getMigrationName)(args["--name"]);
|
|
210
|
-
if (getMigrationNameResult.userCancelled) {
|
|
211
|
-
process.stdout.write(getMigrationNameResult.userCancelled + "\n");
|
|
212
|
-
migrate.stop();
|
|
213
|
-
process.exit(130);
|
|
214
|
-
} else {
|
|
215
|
-
migrationName = getMigrationNameResult.name;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
let migrationIds;
|
|
219
|
-
try {
|
|
220
|
-
const createMigrationResult = await migrate.createMigration({
|
|
221
|
-
migrationsDirectoryPath: migrate.migrationsDirectoryPath,
|
|
222
|
-
migrationName: migrationName || "",
|
|
223
|
-
draft: args["--create-only"] ? true : false,
|
|
224
|
-
schema: (0, import_internals.toSchemasContainer)((await migrate.getPrismaSchema()).schemas)
|
|
225
|
-
});
|
|
226
|
-
debug({ createMigrationResult });
|
|
227
|
-
if (args["--create-only"]) {
|
|
228
|
-
migrate.stop();
|
|
229
|
-
return `Prisma Migrate created the following migration without applying it ${(0, import_chunk_6QFE3AWR.printMigrationId)(
|
|
230
|
-
createMigrationResult.generatedMigrationName
|
|
231
|
-
)}
|
|
232
|
-
|
|
233
|
-
You can now edit it and apply it by running ${(0, import_chunk_6TE2RIPN.green)((0, import_internals.getCommandWithExecutor)("prisma migrate dev"))}.`;
|
|
234
|
-
}
|
|
235
|
-
const { appliedMigrationNames } = await migrate.applyMigrations();
|
|
236
|
-
migrationIds = appliedMigrationNames;
|
|
237
|
-
} finally {
|
|
238
|
-
migrate.stop();
|
|
239
|
-
}
|
|
240
|
-
migrationIdsApplied.length > 0 && process.stdout.write("\n");
|
|
241
|
-
if (migrationIds.length === 0) {
|
|
242
|
-
if (migrationIdsApplied.length > 0) {
|
|
243
|
-
process.stdout.write(`${(0, import_chunk_6TE2RIPN.green)("Your database is now in sync with your schema.")}
|
|
244
|
-
`);
|
|
245
|
-
} else {
|
|
246
|
-
process.stdout.write(`Already in sync, no schema change or pending migration was found.
|
|
247
|
-
`);
|
|
248
|
-
}
|
|
249
|
-
} else {
|
|
250
|
-
process.stdout.write(
|
|
251
|
-
`
|
|
252
|
-
The following migration(s) have been created and applied from new schema changes:
|
|
253
|
-
|
|
254
|
-
${(0, import_chunk_WOOPRG54.printFilesFromMigrationIds)(
|
|
255
|
-
"migrations",
|
|
256
|
-
migrationIds,
|
|
257
|
-
{
|
|
258
|
-
"migration.sql": ""
|
|
259
|
-
}
|
|
260
|
-
)}
|
|
261
|
-
|
|
262
|
-
${(0, import_chunk_6TE2RIPN.green)("Your database is now in sync with your schema.")}
|
|
263
|
-
`
|
|
264
|
-
);
|
|
265
|
-
}
|
|
266
|
-
if (!process.env.PRISMA_MIGRATE_SKIP_GENERATE && !args["--skip-generate"]) {
|
|
267
|
-
await migrate.tryToRunGenerate(datasourceInfo);
|
|
268
|
-
process.stdout.write("\n");
|
|
269
|
-
}
|
|
270
|
-
if ((wasDbCreated || devDiagnostic.action.tag === "reset") && !process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
|
|
271
|
-
try {
|
|
272
|
-
const seedCommandFromPkgJson = await (0, import_chunk_YKUZUAXA.getSeedCommandFromPackageJson)(process.cwd());
|
|
273
|
-
if (seedCommandFromPkgJson) {
|
|
274
|
-
process.stdout.write("\n");
|
|
275
|
-
const successfulSeeding = await (0, import_chunk_YKUZUAXA.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
|
|
276
|
-
if (successfulSeeding) {
|
|
277
|
-
process.stdout.write(`
|
|
278
|
-
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
|
|
279
|
-
`);
|
|
280
|
-
} else {
|
|
281
|
-
process.exit(1);
|
|
282
|
-
}
|
|
283
|
-
} else {
|
|
284
|
-
const { schemaPath: schemaPath2 } = await (0, import_internals.getSchemaWithPath)(args["--schema"], config.schema);
|
|
285
|
-
await (0, import_chunk_YKUZUAXA.verifySeedConfigAndReturnMessage)(schemaPath2);
|
|
286
|
-
}
|
|
287
|
-
} catch (e) {
|
|
288
|
-
console.error(e);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
return "";
|
|
292
|
-
}
|
|
293
|
-
async confirmReset({
|
|
294
|
-
datasourceInfo,
|
|
295
|
-
reason
|
|
296
|
-
}) {
|
|
297
|
-
process.stdout.write(reason + "\n");
|
|
298
|
-
let messageFirstLine = "";
|
|
299
|
-
if (["PostgreSQL", "SQL Server"].includes(datasourceInfo.prettyProvider)) {
|
|
300
|
-
if (datasourceInfo.schemas?.length) {
|
|
301
|
-
messageFirstLine = `We need to reset the following schemas: "${datasourceInfo.schemas.join(", ")}"`;
|
|
302
|
-
} else if (datasourceInfo.schema) {
|
|
303
|
-
messageFirstLine = `We need to reset the "${datasourceInfo.schema}" schema`;
|
|
304
|
-
} else {
|
|
305
|
-
messageFirstLine = `We need to reset the database schema`;
|
|
306
|
-
}
|
|
307
|
-
} else {
|
|
308
|
-
messageFirstLine = `We need to reset the ${datasourceInfo.prettyProvider} database "${datasourceInfo.dbName}"`;
|
|
309
|
-
}
|
|
310
|
-
if (datasourceInfo.dbLocation) {
|
|
311
|
-
messageFirstLine += ` at "${datasourceInfo.dbLocation}"`;
|
|
312
|
-
}
|
|
313
|
-
const messageForPrompt = `${messageFirstLine}
|
|
314
|
-
Do you want to continue? ${(0, import_chunk_6TE2RIPN.red)("All data will be lost")}.`;
|
|
315
|
-
if (Boolean(import_prompts.default._injected?.length) === true) {
|
|
316
|
-
process.stdout.write(messageForPrompt + "\n");
|
|
317
|
-
}
|
|
318
|
-
const confirmation = await (0, import_prompts.default)({
|
|
319
|
-
type: "confirm",
|
|
320
|
-
name: "value",
|
|
321
|
-
message: messageForPrompt
|
|
322
|
-
});
|
|
323
|
-
return confirmation.value;
|
|
324
|
-
}
|
|
325
|
-
help(error) {
|
|
326
|
-
if (error) {
|
|
327
|
-
return new import_internals.HelpError(`
|
|
328
|
-
${(0, import_chunk_6TE2RIPN.bold)((0, import_chunk_6TE2RIPN.red)(`!`))} ${error}
|
|
329
|
-
${_MigrateDev2.help}`);
|
|
330
|
-
}
|
|
331
|
-
return _MigrateDev2.help;
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
_MigrateDev.help = (0, import_internals.format)(`
|
|
335
|
-
${process.platform === "win32" ? "" : "\u{1F3CB}\uFE0F "}Create a migration from changes in Prisma schema, apply it to the database, trigger generators (e.g. Prisma Client)
|
|
336
|
-
|
|
337
|
-
${(0, import_chunk_6TE2RIPN.bold)("Usage")}
|
|
338
|
-
|
|
339
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma migrate dev [options]
|
|
340
|
-
|
|
341
|
-
${(0, import_chunk_6TE2RIPN.bold)("Options")}
|
|
342
|
-
|
|
343
|
-
-h, --help Display this help message
|
|
344
|
-
--config Custom path to your Prisma config file
|
|
345
|
-
--schema Custom path to your Prisma schema
|
|
346
|
-
-n, --name Name the migration
|
|
347
|
-
--create-only Create a new migration but do not apply it
|
|
348
|
-
The migration will be empty if there are no changes in Prisma schema
|
|
349
|
-
--skip-generate Skip triggering generators (e.g. Prisma Client)
|
|
350
|
-
--skip-seed Skip triggering seed
|
|
351
|
-
|
|
352
|
-
${(0, import_chunk_6TE2RIPN.bold)("Examples")}
|
|
353
|
-
|
|
354
|
-
Create a migration from changes in Prisma schema, apply it to the database, trigger generators (e.g. Prisma Client)
|
|
355
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma migrate dev
|
|
356
|
-
|
|
357
|
-
Specify a schema
|
|
358
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma migrate dev --schema=./schema.prisma
|
|
359
|
-
|
|
360
|
-
Create a migration without applying it
|
|
361
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma migrate dev --create-only
|
|
362
|
-
`);
|
|
363
|
-
MigrateDev = _MigrateDev;
|
|
364
|
-
}
|
|
365
|
-
});
|
package/dist/chunk-K44VNAFW.js
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var chunk_K44VNAFW_exports = {};
|
|
30
|
-
__export(chunk_K44VNAFW_exports, {
|
|
31
|
-
MigrateReset: () => MigrateReset,
|
|
32
|
-
init_MigrateReset: () => init_MigrateReset
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(chunk_K44VNAFW_exports);
|
|
35
|
-
var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
|
|
36
|
-
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
|
37
|
-
var import_chunk_UVNSK22K = require("./chunk-UVNSK22K.js");
|
|
38
|
-
var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
|
|
39
|
-
var import_chunk_M5YNQ2NP = require("./chunk-M5YNQ2NP.js");
|
|
40
|
-
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
41
|
-
var import_chunk_XJQP3B4W = require("./chunk-XJQP3B4W.js");
|
|
42
|
-
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
43
|
-
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
44
|
-
var import_internals = require("@prisma/internals");
|
|
45
|
-
var import_prompts = __toESM(require("prompts"));
|
|
46
|
-
var _MigrateReset, MigrateReset;
|
|
47
|
-
var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
48
|
-
"src/commands/MigrateReset.ts"() {
|
|
49
|
-
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
50
|
-
(0, import_chunk_UVNSK22K.init_Migrate)();
|
|
51
|
-
(0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
|
|
52
|
-
(0, import_chunk_U374EXYQ.init_errors)();
|
|
53
|
-
(0, import_chunk_M5YNQ2NP.init_getSchemaPathAndPrint)();
|
|
54
|
-
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
|
55
|
-
(0, import_chunk_WOOPRG54.init_printFiles)();
|
|
56
|
-
(0, import_chunk_YKUZUAXA.init_seed)();
|
|
57
|
-
_MigrateReset = class _MigrateReset2 {
|
|
58
|
-
static new() {
|
|
59
|
-
return new _MigrateReset2();
|
|
60
|
-
}
|
|
61
|
-
async parse(argv, config) {
|
|
62
|
-
const args = (0, import_internals.arg)(argv, {
|
|
63
|
-
"--help": Boolean,
|
|
64
|
-
"-h": "--help",
|
|
65
|
-
"--force": Boolean,
|
|
66
|
-
"-f": "--force",
|
|
67
|
-
"--skip-generate": Boolean,
|
|
68
|
-
"--skip-seed": Boolean,
|
|
69
|
-
"--schema": String,
|
|
70
|
-
"--config": String,
|
|
71
|
-
"--telemetry-information": String
|
|
72
|
-
});
|
|
73
|
-
if ((0, import_internals.isError)(args)) {
|
|
74
|
-
return this.help(args.message);
|
|
75
|
-
}
|
|
76
|
-
await (0, import_internals.checkUnsupportedDataProxy)("migrate reset", args, config.schema, true);
|
|
77
|
-
if (args["--help"]) {
|
|
78
|
-
return this.help();
|
|
79
|
-
}
|
|
80
|
-
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
81
|
-
const { schemaPath } = await (0, import_chunk_M5YNQ2NP.getSchemaPathAndPrint)(args["--schema"], config.schema);
|
|
82
|
-
const datasourceInfo = await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath });
|
|
83
|
-
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
|
|
84
|
-
const wasDbCreated = await (0, import_chunk_XJQP3B4W.ensureDatabaseExists)("create", schemaPath);
|
|
85
|
-
if (wasDbCreated) {
|
|
86
|
-
process.stdout.write("\n" + wasDbCreated + "\n");
|
|
87
|
-
}
|
|
88
|
-
process.stdout.write("\n");
|
|
89
|
-
if (!args["--force"]) {
|
|
90
|
-
if (!(0, import_internals.canPrompt)()) {
|
|
91
|
-
throw new import_chunk_U374EXYQ.MigrateResetEnvNonInteractiveError();
|
|
92
|
-
}
|
|
93
|
-
const confirmation = await (0, import_prompts.default)({
|
|
94
|
-
type: "confirm",
|
|
95
|
-
name: "value",
|
|
96
|
-
message: `Are you sure you want to reset your database? ${(0, import_chunk_6TE2RIPN.red)("All data will be lost")}.`
|
|
97
|
-
});
|
|
98
|
-
process.stdout.write("\n");
|
|
99
|
-
if (!confirmation.value) {
|
|
100
|
-
process.stdout.write("Reset cancelled.\n");
|
|
101
|
-
process.exit(130);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
const migrate = new import_chunk_UVNSK22K.Migrate(schemaPath);
|
|
105
|
-
let migrationIds;
|
|
106
|
-
try {
|
|
107
|
-
await migrate.reset();
|
|
108
|
-
const { appliedMigrationNames } = await migrate.applyMigrations();
|
|
109
|
-
migrationIds = appliedMigrationNames;
|
|
110
|
-
} finally {
|
|
111
|
-
migrate.stop();
|
|
112
|
-
}
|
|
113
|
-
if (migrationIds.length === 0) {
|
|
114
|
-
process.stdout.write(`${(0, import_chunk_6TE2RIPN.green)("Database reset successful\n")}
|
|
115
|
-
`);
|
|
116
|
-
} else {
|
|
117
|
-
process.stdout.write("\n");
|
|
118
|
-
process.stdout.write(
|
|
119
|
-
`${(0, import_chunk_6TE2RIPN.green)("Database reset successful")}
|
|
120
|
-
|
|
121
|
-
The following migration(s) have been applied:
|
|
122
|
-
|
|
123
|
-
${(0, import_chunk_WOOPRG54.printFilesFromMigrationIds)("migrations", migrationIds, {
|
|
124
|
-
"migration.sql": ""
|
|
125
|
-
})}
|
|
126
|
-
`
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
if (!process.env.PRISMA_MIGRATE_SKIP_GENERATE && !args["--skip-generate"]) {
|
|
130
|
-
await migrate.tryToRunGenerate(datasourceInfo);
|
|
131
|
-
}
|
|
132
|
-
if (!process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
|
|
133
|
-
const seedCommandFromPkgJson = await (0, import_chunk_YKUZUAXA.getSeedCommandFromPackageJson)(process.cwd());
|
|
134
|
-
if (seedCommandFromPkgJson) {
|
|
135
|
-
process.stdout.write("\n");
|
|
136
|
-
const successfulSeeding = await (0, import_chunk_YKUZUAXA.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
|
|
137
|
-
if (successfulSeeding) {
|
|
138
|
-
process.stdout.write(`
|
|
139
|
-
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
|
|
140
|
-
`);
|
|
141
|
-
} else {
|
|
142
|
-
process.exit(1);
|
|
143
|
-
}
|
|
144
|
-
} else {
|
|
145
|
-
const { schemaPath: schemaPath2 } = await (0, import_internals.getSchemaWithPath)(args["--schema"], config.schema);
|
|
146
|
-
await (0, import_chunk_YKUZUAXA.verifySeedConfigAndReturnMessage)(schemaPath2);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
return ``;
|
|
150
|
-
}
|
|
151
|
-
help(error) {
|
|
152
|
-
if (error) {
|
|
153
|
-
return new import_internals.HelpError(`
|
|
154
|
-
${(0, import_chunk_6TE2RIPN.bold)((0, import_chunk_6TE2RIPN.red)(`!`))} ${error}
|
|
155
|
-
${_MigrateReset2.help}`);
|
|
156
|
-
}
|
|
157
|
-
return _MigrateReset2.help;
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
_MigrateReset.help = (0, import_internals.format)(`
|
|
161
|
-
Reset your database and apply all migrations, all data will be lost
|
|
162
|
-
|
|
163
|
-
${(0, import_chunk_6TE2RIPN.bold)("Usage")}
|
|
164
|
-
|
|
165
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma migrate reset [options]
|
|
166
|
-
|
|
167
|
-
${(0, import_chunk_6TE2RIPN.bold)("Options")}
|
|
168
|
-
|
|
169
|
-
-h, --help Display this help message
|
|
170
|
-
--config Custom path to your Prisma config file
|
|
171
|
-
--schema Custom path to your Prisma schema
|
|
172
|
-
--skip-generate Skip triggering generators (e.g. Prisma Client)
|
|
173
|
-
--skip-seed Skip triggering seed
|
|
174
|
-
-f, --force Skip the confirmation prompt
|
|
175
|
-
|
|
176
|
-
${(0, import_chunk_6TE2RIPN.bold)("Examples")}
|
|
177
|
-
|
|
178
|
-
Reset your database and apply all migrations, all data will be lost
|
|
179
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma migrate reset
|
|
180
|
-
|
|
181
|
-
Specify a schema
|
|
182
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma migrate reset --schema=./schema.prisma
|
|
183
|
-
|
|
184
|
-
Use --force to skip the confirmation prompt
|
|
185
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma migrate reset --force
|
|
186
|
-
`);
|
|
187
|
-
MigrateReset = _MigrateReset;
|
|
188
|
-
}
|
|
189
|
-
});
|
package/dist/chunk-O4BT6W33.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var chunk_O4BT6W33_exports = {};
|
|
20
|
-
__export(chunk_O4BT6W33_exports, {
|
|
21
|
-
DbCommand: () => DbCommand,
|
|
22
|
-
init_DbCommand: () => init_DbCommand
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(chunk_O4BT6W33_exports);
|
|
25
|
-
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
26
|
-
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
27
|
-
var import_internals = require("@prisma/internals");
|
|
28
|
-
var _DbCommand, DbCommand;
|
|
29
|
-
var init_DbCommand = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
30
|
-
"src/commands/DbCommand.ts"() {
|
|
31
|
-
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
32
|
-
_DbCommand = class _DbCommand2 {
|
|
33
|
-
constructor(cmds) {
|
|
34
|
-
this.cmds = cmds;
|
|
35
|
-
}
|
|
36
|
-
static new(cmds) {
|
|
37
|
-
return new _DbCommand2(cmds);
|
|
38
|
-
}
|
|
39
|
-
async parse(argv, config) {
|
|
40
|
-
const args = (0, import_internals.arg)(argv, {
|
|
41
|
-
"--help": Boolean,
|
|
42
|
-
"-h": "--help",
|
|
43
|
-
"--config": String,
|
|
44
|
-
"--preview-feature": Boolean,
|
|
45
|
-
"--telemetry-information": String
|
|
46
|
-
});
|
|
47
|
-
if ((0, import_internals.isError)(args)) {
|
|
48
|
-
return this.help(args.message);
|
|
49
|
-
}
|
|
50
|
-
if (args._.length === 0 || args["--help"]) {
|
|
51
|
-
return this.help();
|
|
52
|
-
}
|
|
53
|
-
const cmd = this.cmds[args._[0]];
|
|
54
|
-
if (cmd) {
|
|
55
|
-
const argsForCmd = args["--preview-feature"] ? [...args._.slice(1), `--preview-feature`] : args._.slice(1);
|
|
56
|
-
return cmd.parse(argsForCmd, config);
|
|
57
|
-
}
|
|
58
|
-
return (0, import_internals.unknownCommand)(_DbCommand2.help, args._[0]);
|
|
59
|
-
}
|
|
60
|
-
help(error) {
|
|
61
|
-
if (error) {
|
|
62
|
-
return new import_internals.HelpError(`
|
|
63
|
-
${(0, import_chunk_6TE2RIPN.bold)((0, import_chunk_6TE2RIPN.red)(`!`))} ${error}
|
|
64
|
-
${_DbCommand2.help}`);
|
|
65
|
-
}
|
|
66
|
-
return _DbCommand2.help;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
_DbCommand.help = (0, import_internals.format)(`
|
|
70
|
-
${process.platform === "win32" ? "" : "\u{1F3CB}\uFE0F "}Manage your database schema and lifecycle during development.
|
|
71
|
-
|
|
72
|
-
${(0, import_chunk_6TE2RIPN.bold)("Usage")}
|
|
73
|
-
|
|
74
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma db [command] [options]
|
|
75
|
-
|
|
76
|
-
${(0, import_chunk_6TE2RIPN.bold)("Options")}
|
|
77
|
-
|
|
78
|
-
-h, --help Display this help message
|
|
79
|
-
--config Custom path to your Prisma config file
|
|
80
|
-
--schema Custom path to your Prisma schema
|
|
81
|
-
|
|
82
|
-
${(0, import_chunk_6TE2RIPN.bold)("Commands")}
|
|
83
|
-
pull Pull the state from the database to the Prisma schema using introspection
|
|
84
|
-
push Push the state from Prisma schema to the database during prototyping
|
|
85
|
-
seed Seed your database
|
|
86
|
-
execute Execute native commands to your database
|
|
87
|
-
|
|
88
|
-
${(0, import_chunk_6TE2RIPN.bold)("Examples")}
|
|
89
|
-
|
|
90
|
-
Run \`prisma db pull\`
|
|
91
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma db pull
|
|
92
|
-
|
|
93
|
-
Run \`prisma db push\`
|
|
94
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma db push
|
|
95
|
-
|
|
96
|
-
Run \`prisma db seed\`
|
|
97
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma db seed
|
|
98
|
-
|
|
99
|
-
Run \`prisma db execute\`
|
|
100
|
-
${(0, import_chunk_6TE2RIPN.dim)("$")} prisma db execute
|
|
101
|
-
`);
|
|
102
|
-
DbCommand = _DbCommand;
|
|
103
|
-
}
|
|
104
|
-
});
|