@prisma/migrate 6.4.0-dev.5 → 6.4.0-dev.51
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 -3
- package/dist/Migrate.js +4 -4
- package/dist/SchemaEngine.js +4 -4
- package/dist/bin.js +61 -47
- package/dist/{chunk-XVXYNQ6H.js → chunk-6MPIO773.js} +40 -36
- package/dist/{chunk-AMRGQNRR.js → chunk-75EIHNAH.js} +6 -6
- package/dist/{chunk-Q3SQU7C6.js → chunk-7S3Q4MCN.js} +4 -4
- package/dist/{chunk-NKQGJ3AE.js → chunk-A6PMXMMT.js} +29 -15
- package/dist/{chunk-7S3QTEWV.js → chunk-B7HCYFRO.js} +41 -37
- package/dist/{chunk-GRGGAY6L.js → chunk-CUDKD32S.js} +159 -5
- package/dist/{chunk-7QAR4NT3.js → chunk-EDQWDMXR.js} +9 -8
- package/dist/{chunk-43RWRQLU.js → chunk-FM4XJBEM.js} +9 -8
- package/dist/{chunk-JESW2ENL.js → chunk-JYXY3OJ6.js} +9 -8
- package/dist/{chunk-77RYI3ZW.js → chunk-KW5YM5ZK.js} +9 -8
- package/dist/{chunk-NJUAN6V2.js → chunk-L5WSTNST.js} +6 -6
- package/dist/{chunk-HAJNCOW7.js → chunk-LPSZG4BL.js} +22 -21
- package/dist/{chunk-JZ6FKTWG.js → chunk-MWDR5RWF.js} +5 -6
- package/dist/{chunk-G66QFMM5.js → chunk-N3AT4GUM.js} +11 -10
- package/dist/{chunk-CK5VLKFM.js → chunk-NGDFNKHZ.js} +6 -6
- package/dist/{chunk-E2XKFV2C.js → chunk-QV7SOU3V.js} +6 -5
- package/dist/{chunk-CSUAUCRR.js → chunk-REKABZBY.js} +9 -8
- package/dist/{chunk-I63N54YI.js → chunk-T6Y2635A.js} +10 -9
- package/dist/{chunk-ZKWJDQMB.js → chunk-UVNSK22K.js} +7 -7
- package/dist/{chunk-WJT3IOMB.js → chunk-VGYN2FAS.js} +6 -5
- package/dist/{chunk-JTNVQIRB.js → chunk-YWWOSXMY.js} +6 -6
- package/dist/commands/DbCommand.js +3 -3
- package/dist/commands/DbDrop.js +2 -2
- package/dist/commands/DbExecute.js +5 -5
- package/dist/commands/DbPull.js +5 -5
- package/dist/commands/DbPush.js +5 -5
- package/dist/commands/DbSeed.js +3 -3
- package/dist/commands/MigrateCommand.js +3 -3
- package/dist/commands/MigrateDeploy.js +5 -5
- package/dist/commands/MigrateDev.js +5 -5
- package/dist/commands/MigrateDiff.js +6 -6
- package/dist/commands/MigrateReset.js +5 -5
- package/dist/commands/MigrateResolve.js +5 -5
- package/dist/commands/MigrateStatus.js +5 -5
- package/dist/index.js +51 -51
- package/dist/internals/src/cli/getSchema.d.ts +1 -39
- package/dist/internals/src/cli/types.d.ts +2 -1
- package/dist/internals/src/index.d.ts +2 -1
- package/dist/internals/src/utils/loadEnvFile.d.ts +4 -2
- package/dist/internals/src/utils/toSchemasContainer.d.ts +1 -1
- package/dist/migrate/src/CLI.d.ts +2 -1
- package/dist/migrate/src/commands/DbCommand.d.ts +2 -1
- package/dist/migrate/src/commands/DbDrop.d.ts +2 -1
- package/dist/migrate/src/commands/DbExecute.d.ts +2 -1
- package/dist/migrate/src/commands/DbPull.d.ts +2 -1
- package/dist/migrate/src/commands/DbPush.d.ts +2 -1
- package/dist/migrate/src/commands/DbSeed.d.ts +2 -1
- package/dist/migrate/src/commands/MigrateCommand.d.ts +2 -1
- package/dist/migrate/src/commands/MigrateDeploy.d.ts +2 -1
- package/dist/migrate/src/commands/MigrateDev.d.ts +2 -1
- package/dist/migrate/src/commands/MigrateDiff.d.ts +2 -1
- package/dist/migrate/src/commands/MigrateReset.d.ts +2 -1
- package/dist/migrate/src/commands/MigrateResolve.d.ts +2 -1
- package/dist/migrate/src/commands/MigrateStatus.d.ts +2 -1
- package/dist/migrate/src/utils/setupPostgres.d.ts +1 -1
- package/dist/utils/getDatabaseVersionSafe.js +4 -4
- package/dist/utils/introspectSql.js +3 -3
- package/dist/utils/setupMSSQL.js +72 -73
- package/dist/utils/setupPostgres.js +4 -8
- package/dist/utils/spinner.js +3 -3
- package/package.json +7 -6
|
@@ -26,16 +26,16 @@ 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_B7HCYFRO_exports = {};
|
|
30
|
+
__export(chunk_B7HCYFRO_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff,
|
|
32
32
|
init_MigrateDiff: () => init_MigrateDiff
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_B7HCYFRO_exports);
|
|
35
|
+
var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
|
|
36
36
|
var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
|
|
37
37
|
var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_UVNSK22K = require("./chunk-UVNSK22K.js");
|
|
39
39
|
var import_chunk_CQQQ436N = require("./chunk-CQQQ436N.js");
|
|
40
40
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
41
41
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
@@ -6164,6 +6164,7 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6164
6164
|
__export2(index_exports, {
|
|
6165
6165
|
CompositeFilesResolver: () => CompositeFilesResolver,
|
|
6166
6166
|
InMemoryFilesResolver: () => InMemoryFilesResolver,
|
|
6167
|
+
ensureType: () => ensureType2,
|
|
6167
6168
|
loadRelatedSchemaFiles: () => loadRelatedSchemaFiles,
|
|
6168
6169
|
loadSchemaFiles: () => loadSchemaFiles2,
|
|
6169
6170
|
realFsResolver: () => realFsResolver,
|
|
@@ -6394,6 +6395,24 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6394
6395
|
}
|
|
6395
6396
|
return void 0;
|
|
6396
6397
|
}
|
|
6398
|
+
var import_promises3 = __toESM22((0, import_chunk_WWAWV7DQ.__require)("node:fs/promises"));
|
|
6399
|
+
async function ensureType2(entryPath, expectedType) {
|
|
6400
|
+
try {
|
|
6401
|
+
const pathStat = await import_promises3.default.stat(entryPath);
|
|
6402
|
+
if (expectedType === "file" && pathStat.isFile()) {
|
|
6403
|
+
return void 0;
|
|
6404
|
+
}
|
|
6405
|
+
if (expectedType === "directory" && pathStat.isDirectory()) {
|
|
6406
|
+
return void 0;
|
|
6407
|
+
}
|
|
6408
|
+
return { kind: "WrongType", path: entryPath, expectedTypes: [expectedType] };
|
|
6409
|
+
} catch (e) {
|
|
6410
|
+
if (e.code === "ENOENT") {
|
|
6411
|
+
return { kind: "NotFound", path: entryPath, expectedType };
|
|
6412
|
+
}
|
|
6413
|
+
throw e;
|
|
6414
|
+
}
|
|
6415
|
+
}
|
|
6397
6416
|
}
|
|
6398
6417
|
});
|
|
6399
6418
|
async function findUp(name, {
|
|
@@ -10706,8 +10725,8 @@ var require_typos = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10706
10725
|
var require_fixer = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
10707
10726
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/fixer.js"(exports, module2) {
|
|
10708
10727
|
"use strict";
|
|
10709
|
-
var isValidSemver = (0,
|
|
10710
|
-
var cleanSemver = (0,
|
|
10728
|
+
var isValidSemver = (0, import_chunk_A6PMXMMT.require_valid)();
|
|
10729
|
+
var cleanSemver = (0, import_chunk_A6PMXMMT.require_clean)();
|
|
10711
10730
|
var validateLicense = require_validate_npm_package_license();
|
|
10712
10731
|
var hostedGitInfo = require_lib5();
|
|
10713
10732
|
var isBuiltinModule = require_is_core_module();
|
|
@@ -11543,7 +11562,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
11543
11562
|
"../internals/package.json"(exports, module2) {
|
|
11544
11563
|
module2.exports = {
|
|
11545
11564
|
name: "@prisma/internals",
|
|
11546
|
-
version: "6.4.0-dev.
|
|
11565
|
+
version: "6.4.0-dev.51",
|
|
11547
11566
|
description: "This package is intended for Prisma's internal use",
|
|
11548
11567
|
main: "dist/index.js",
|
|
11549
11568
|
types: "dist/index.d.ts",
|
|
@@ -11623,12 +11642,13 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
11623
11642
|
yarn: "1.22.22"
|
|
11624
11643
|
},
|
|
11625
11644
|
dependencies: {
|
|
11645
|
+
"@prisma/config": "workspace:*",
|
|
11626
11646
|
"@prisma/debug": "workspace:*",
|
|
11627
11647
|
"@prisma/engines": "workspace:*",
|
|
11628
11648
|
"@prisma/fetch-engine": "workspace:*",
|
|
11629
11649
|
"@prisma/generator-helper": "workspace:*",
|
|
11630
11650
|
"@prisma/get-platform": "workspace:*",
|
|
11631
|
-
"@prisma/prisma-schema-wasm": "6.4.0-
|
|
11651
|
+
"@prisma/prisma-schema-wasm": "6.4.0-24.b06b231b59f731b5063a26ba21c36320ce2feb4b",
|
|
11632
11652
|
"@prisma/schema-files-loader": "workspace:*",
|
|
11633
11653
|
arg: "5.0.2",
|
|
11634
11654
|
prompts: "2.4.2"
|
|
@@ -11919,7 +11939,7 @@ async function getSchemaWithPath(schemaPathFromArgs, { cwd = process.cwd(), argu
|
|
|
11919
11939
|
}
|
|
11920
11940
|
async function readSchemaFromSingleFile(schemaPath) {
|
|
11921
11941
|
debug2("Reading schema from single file", schemaPath);
|
|
11922
|
-
const typeError = await ensureType(schemaPath, "file");
|
|
11942
|
+
const typeError = await (0, import_schema_files_loader.ensureType)(schemaPath, "file");
|
|
11923
11943
|
if (typeError) {
|
|
11924
11944
|
return { ok: false, error: typeError };
|
|
11925
11945
|
}
|
|
@@ -11932,7 +11952,7 @@ async function readSchemaFromSingleFile(schemaPath) {
|
|
|
11932
11952
|
}
|
|
11933
11953
|
async function readSchemaFromDirectory(schemaPath) {
|
|
11934
11954
|
debug2("Reading schema from multiple files", schemaPath);
|
|
11935
|
-
const typeError = await ensureType(schemaPath, "directory");
|
|
11955
|
+
const typeError = await (0, import_schema_files_loader.ensureType)(schemaPath, "directory");
|
|
11936
11956
|
if (typeError) {
|
|
11937
11957
|
return { ok: false, error: typeError };
|
|
11938
11958
|
}
|
|
@@ -11948,23 +11968,6 @@ async function readSchemaFromDirectory(schemaPath) {
|
|
|
11948
11968
|
}
|
|
11949
11969
|
return { ok: true, schema: { schemaPath, schemaRootDir: schemaPath, schemas: files } };
|
|
11950
11970
|
}
|
|
11951
|
-
async function ensureType(entryPath, expectedType) {
|
|
11952
|
-
try {
|
|
11953
|
-
const pathStat = await stat(entryPath);
|
|
11954
|
-
if (expectedType === "file" && pathStat.isFile()) {
|
|
11955
|
-
return void 0;
|
|
11956
|
-
}
|
|
11957
|
-
if (expectedType === "directory" && pathStat.isDirectory()) {
|
|
11958
|
-
return void 0;
|
|
11959
|
-
}
|
|
11960
|
-
return { kind: "WrongType", path: entryPath, expectedTypes: [expectedType] };
|
|
11961
|
-
} catch (e) {
|
|
11962
|
-
if (e.code === "ENOENT") {
|
|
11963
|
-
return { kind: "NotFound", path: entryPath, expectedType };
|
|
11964
|
-
}
|
|
11965
|
-
throw e;
|
|
11966
|
-
}
|
|
11967
|
-
}
|
|
11968
11971
|
async function readSchemaFromFileOrDirectory(schemaPath) {
|
|
11969
11972
|
let stats;
|
|
11970
11973
|
try {
|
|
@@ -12165,7 +12168,7 @@ var init_MigrateDiff = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
12165
12168
|
import_fs_jetpack = (0, import_chunk_WWAWV7DQ.__toESM)(require_main());
|
|
12166
12169
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
12167
12170
|
init_getSchema();
|
|
12168
|
-
(0,
|
|
12171
|
+
(0, import_chunk_UVNSK22K.init_Migrate)();
|
|
12169
12172
|
(0, import_chunk_TKAGMA5K.init_captureStdout)();
|
|
12170
12173
|
debug3 = (0, import_debug3.default)("prisma:migrate:diff");
|
|
12171
12174
|
helpOptions = (0, import_internals.format)(
|
|
@@ -12176,6 +12179,7 @@ var init_MigrateDiff = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
12176
12179
|
${(0, import_chunk_6TE2RIPN.bold)("Options")}
|
|
12177
12180
|
|
|
12178
12181
|
-h, --help Display this help message
|
|
12182
|
+
--config Custom path to your Prisma config file
|
|
12179
12183
|
-o, --output Writes to a file instead of stdout
|
|
12180
12184
|
|
|
12181
12185
|
${(0, import_chunk_6TE2RIPN.italic)("From and To inputs (1 `--from-...` and 1 `--to-...` must be provided):")}
|
|
@@ -12209,7 +12213,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Flags")}
|
|
|
12209
12213
|
static new() {
|
|
12210
12214
|
return new _MigrateDiff2();
|
|
12211
12215
|
}
|
|
12212
|
-
async parse(argv) {
|
|
12216
|
+
async parse(argv, config) {
|
|
12213
12217
|
const args = (0, import_internals.arg)(
|
|
12214
12218
|
argv,
|
|
12215
12219
|
{
|
|
@@ -12269,14 +12273,14 @@ ${(0, import_chunk_6TE2RIPN.bold)("Flags")}
|
|
|
12269
12273
|
tag: "empty"
|
|
12270
12274
|
};
|
|
12271
12275
|
} else if (args["--from-schema-datasource"]) {
|
|
12272
|
-
await (0, import_internals.loadEnvFile)({ schemaPath: args["--from-schema-datasource"], printMessage: false });
|
|
12276
|
+
await (0, import_internals.loadEnvFile)({ schemaPath: args["--from-schema-datasource"], printMessage: false, config });
|
|
12273
12277
|
const schema = await getSchemaWithPath(import_path2.default.resolve(args["--from-schema-datasource"]), {
|
|
12274
12278
|
argumentName: "--from-schema-datasource"
|
|
12275
12279
|
});
|
|
12276
|
-
const
|
|
12280
|
+
const engineConfig = await (0, import_internals.getConfig)({ datamodel: schema.schemas });
|
|
12277
12281
|
from = {
|
|
12278
12282
|
tag: "schemaDatasource",
|
|
12279
|
-
...(0, import_internals.toSchemasWithConfigDir)(schema,
|
|
12283
|
+
...(0, import_internals.toSchemasWithConfigDir)(schema, engineConfig)
|
|
12280
12284
|
};
|
|
12281
12285
|
} else if (args["--from-schema-datamodel"]) {
|
|
12282
12286
|
const schema = await getSchemaWithPath(import_path2.default.resolve(args["--from-schema-datamodel"]), {
|
|
@@ -12309,14 +12313,14 @@ ${(0, import_chunk_6TE2RIPN.bold)("Flags")}
|
|
|
12309
12313
|
tag: "empty"
|
|
12310
12314
|
};
|
|
12311
12315
|
} else if (args["--to-schema-datasource"]) {
|
|
12312
|
-
await (0, import_internals.loadEnvFile)({ schemaPath: args["--to-schema-datasource"], printMessage: false });
|
|
12316
|
+
await (0, import_internals.loadEnvFile)({ schemaPath: args["--to-schema-datasource"], printMessage: false, config });
|
|
12313
12317
|
const schema = await getSchemaWithPath(import_path2.default.resolve(args["--to-schema-datasource"]), {
|
|
12314
12318
|
argumentName: "--to-schema-datasource"
|
|
12315
12319
|
});
|
|
12316
|
-
const
|
|
12320
|
+
const engineConfig = await (0, import_internals.getConfig)({ datamodel: schema.schemas });
|
|
12317
12321
|
to = {
|
|
12318
12322
|
tag: "schemaDatasource",
|
|
12319
|
-
...(0, import_internals.toSchemasWithConfigDir)(schema,
|
|
12323
|
+
...(0, import_internals.toSchemasWithConfigDir)(schema, engineConfig)
|
|
12320
12324
|
};
|
|
12321
12325
|
} else if (args["--to-schema-datamodel"]) {
|
|
12322
12326
|
const schema = await getSchemaWithPath(import_path2.default.resolve(args["--to-schema-datamodel"]), {
|
|
@@ -12343,7 +12347,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Flags")}
|
|
|
12343
12347
|
url: `file:${d1Database}`
|
|
12344
12348
|
};
|
|
12345
12349
|
}
|
|
12346
|
-
const migrate = new
|
|
12350
|
+
const migrate = new import_chunk_UVNSK22K.Migrate();
|
|
12347
12351
|
const captureStdout = new import_chunk_TKAGMA5K.CaptureStdout();
|
|
12348
12352
|
const outputPath = args["--output"];
|
|
12349
12353
|
const isOutputDefined = Boolean(outputPath);
|
|
@@ -16,12 +16,12 @@ 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_CUDKD32S_exports = {};
|
|
20
|
+
__export(chunk_CUDKD32S_exports, {
|
|
21
21
|
createSpinner: () => createSpinner,
|
|
22
22
|
init_spinner: () => init_spinner
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(chunk_CUDKD32S_exports);
|
|
25
25
|
var import_chunk_YUCPBDWV = require("./chunk-YUCPBDWV.js");
|
|
26
26
|
var import_chunk_RM5LJIEV = require("./chunk-RM5LJIEV.js");
|
|
27
27
|
var import_chunk_6C7ESGWY = require("./chunk-6C7ESGWY.js");
|
|
@@ -452,7 +452,7 @@ var require_source = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
452
452
|
}
|
|
453
453
|
});
|
|
454
454
|
var require_spinners = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
455
|
-
"../../node_modules/.pnpm/cli-spinners@2.
|
|
455
|
+
"../../node_modules/.pnpm/cli-spinners@2.9.2/node_modules/cli-spinners/spinners.json"(exports, module2) {
|
|
456
456
|
module2.exports = {
|
|
457
457
|
dots: {
|
|
458
458
|
interval: 80,
|
|
@@ -1240,6 +1240,21 @@ var require_spinners = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1240
1240
|
"\u25E5"
|
|
1241
1241
|
]
|
|
1242
1242
|
},
|
|
1243
|
+
binary: {
|
|
1244
|
+
interval: 80,
|
|
1245
|
+
frames: [
|
|
1246
|
+
"010010",
|
|
1247
|
+
"001100",
|
|
1248
|
+
"100101",
|
|
1249
|
+
"111010",
|
|
1250
|
+
"111101",
|
|
1251
|
+
"010111",
|
|
1252
|
+
"101011",
|
|
1253
|
+
"111000",
|
|
1254
|
+
"110011",
|
|
1255
|
+
"110101"
|
|
1256
|
+
]
|
|
1257
|
+
},
|
|
1243
1258
|
arc: {
|
|
1244
1259
|
interval: 100,
|
|
1245
1260
|
frames: [
|
|
@@ -1432,6 +1447,7 @@ var require_spinners = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1432
1447
|
"[= ]",
|
|
1433
1448
|
"[== ]",
|
|
1434
1449
|
"[=== ]",
|
|
1450
|
+
"[====]",
|
|
1435
1451
|
"[ ===]",
|
|
1436
1452
|
"[ ==]",
|
|
1437
1453
|
"[ =]",
|
|
@@ -1919,12 +1935,150 @@ var require_spinners = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1919
1935
|
"\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0",
|
|
1920
1936
|
"\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"
|
|
1921
1937
|
]
|
|
1938
|
+
},
|
|
1939
|
+
dwarfFortress: {
|
|
1940
|
+
interval: 80,
|
|
1941
|
+
frames: [
|
|
1942
|
+
" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1943
|
+
"\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1944
|
+
"\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1945
|
+
"\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1946
|
+
"\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1947
|
+
"\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1948
|
+
"\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1949
|
+
"\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1950
|
+
"\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1951
|
+
"\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1952
|
+
" \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1953
|
+
" \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1954
|
+
" \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1955
|
+
" \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1956
|
+
" \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1957
|
+
" \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1958
|
+
" \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1959
|
+
" \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1960
|
+
" \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1961
|
+
" \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1962
|
+
" \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1963
|
+
" \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1964
|
+
" \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1965
|
+
" \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1966
|
+
" \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1967
|
+
" \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1968
|
+
" \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1969
|
+
" \u263A \u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1970
|
+
" \u263A\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1971
|
+
" \u263A\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
1972
|
+
" \u263A\u2593\u2588\u2588\xA3\xA3\xA3 ",
|
|
1973
|
+
" \u263A\u2593\u2588\u2588\xA3\xA3\xA3 ",
|
|
1974
|
+
" \u263A\u2592\u2588\u2588\xA3\xA3\xA3 ",
|
|
1975
|
+
" \u263A\u2592\u2588\u2588\xA3\xA3\xA3 ",
|
|
1976
|
+
" \u263A\u2591\u2588\u2588\xA3\xA3\xA3 ",
|
|
1977
|
+
" \u263A\u2591\u2588\u2588\xA3\xA3\xA3 ",
|
|
1978
|
+
" \u263A \u2588\u2588\xA3\xA3\xA3 ",
|
|
1979
|
+
" \u263A\u2588\u2588\xA3\xA3\xA3 ",
|
|
1980
|
+
" \u263A\u2588\u2588\xA3\xA3\xA3 ",
|
|
1981
|
+
" \u263A\u2593\u2588\xA3\xA3\xA3 ",
|
|
1982
|
+
" \u263A\u2593\u2588\xA3\xA3\xA3 ",
|
|
1983
|
+
" \u263A\u2592\u2588\xA3\xA3\xA3 ",
|
|
1984
|
+
" \u263A\u2592\u2588\xA3\xA3\xA3 ",
|
|
1985
|
+
" \u263A\u2591\u2588\xA3\xA3\xA3 ",
|
|
1986
|
+
" \u263A\u2591\u2588\xA3\xA3\xA3 ",
|
|
1987
|
+
" \u263A \u2588\xA3\xA3\xA3 ",
|
|
1988
|
+
" \u263A\u2588\xA3\xA3\xA3 ",
|
|
1989
|
+
" \u263A\u2588\xA3\xA3\xA3 ",
|
|
1990
|
+
" \u263A\u2593\xA3\xA3\xA3 ",
|
|
1991
|
+
" \u263A\u2593\xA3\xA3\xA3 ",
|
|
1992
|
+
" \u263A\u2592\xA3\xA3\xA3 ",
|
|
1993
|
+
" \u263A\u2592\xA3\xA3\xA3 ",
|
|
1994
|
+
" \u263A\u2591\xA3\xA3\xA3 ",
|
|
1995
|
+
" \u263A\u2591\xA3\xA3\xA3 ",
|
|
1996
|
+
" \u263A \xA3\xA3\xA3 ",
|
|
1997
|
+
" \u263A\xA3\xA3\xA3 ",
|
|
1998
|
+
" \u263A\xA3\xA3\xA3 ",
|
|
1999
|
+
" \u263A\u2593\xA3\xA3 ",
|
|
2000
|
+
" \u263A\u2593\xA3\xA3 ",
|
|
2001
|
+
" \u263A\u2592\xA3\xA3 ",
|
|
2002
|
+
" \u263A\u2592\xA3\xA3 ",
|
|
2003
|
+
" \u263A\u2591\xA3\xA3 ",
|
|
2004
|
+
" \u263A\u2591\xA3\xA3 ",
|
|
2005
|
+
" \u263A \xA3\xA3 ",
|
|
2006
|
+
" \u263A\xA3\xA3 ",
|
|
2007
|
+
" \u263A\xA3\xA3 ",
|
|
2008
|
+
" \u263A\u2593\xA3 ",
|
|
2009
|
+
" \u263A\u2593\xA3 ",
|
|
2010
|
+
" \u263A\u2592\xA3 ",
|
|
2011
|
+
" \u263A\u2592\xA3 ",
|
|
2012
|
+
" \u263A\u2591\xA3 ",
|
|
2013
|
+
" \u263A\u2591\xA3 ",
|
|
2014
|
+
" \u263A \xA3 ",
|
|
2015
|
+
" \u263A\xA3 ",
|
|
2016
|
+
" \u263A\xA3 ",
|
|
2017
|
+
" \u263A\u2593 ",
|
|
2018
|
+
" \u263A\u2593 ",
|
|
2019
|
+
" \u263A\u2592 ",
|
|
2020
|
+
" \u263A\u2592 ",
|
|
2021
|
+
" \u263A\u2591 ",
|
|
2022
|
+
" \u263A\u2591 ",
|
|
2023
|
+
" \u263A ",
|
|
2024
|
+
" \u263A &",
|
|
2025
|
+
" \u263A \u263C&",
|
|
2026
|
+
" \u263A \u263C &",
|
|
2027
|
+
" \u263A\u263C &",
|
|
2028
|
+
" \u263A\u263C & ",
|
|
2029
|
+
" \u203C & ",
|
|
2030
|
+
" \u263A & ",
|
|
2031
|
+
" \u203C & ",
|
|
2032
|
+
" \u263A & ",
|
|
2033
|
+
" \u203C & ",
|
|
2034
|
+
" \u263A & ",
|
|
2035
|
+
"\u203C & ",
|
|
2036
|
+
" & ",
|
|
2037
|
+
" & ",
|
|
2038
|
+
" & \u2591 ",
|
|
2039
|
+
" & \u2592 ",
|
|
2040
|
+
" & \u2593 ",
|
|
2041
|
+
" & \xA3 ",
|
|
2042
|
+
" & \u2591\xA3 ",
|
|
2043
|
+
" & \u2592\xA3 ",
|
|
2044
|
+
" & \u2593\xA3 ",
|
|
2045
|
+
" & \xA3\xA3 ",
|
|
2046
|
+
" & \u2591\xA3\xA3 ",
|
|
2047
|
+
" & \u2592\xA3\xA3 ",
|
|
2048
|
+
"& \u2593\xA3\xA3 ",
|
|
2049
|
+
"& \xA3\xA3\xA3 ",
|
|
2050
|
+
" \u2591\xA3\xA3\xA3 ",
|
|
2051
|
+
" \u2592\xA3\xA3\xA3 ",
|
|
2052
|
+
" \u2593\xA3\xA3\xA3 ",
|
|
2053
|
+
" \u2588\xA3\xA3\xA3 ",
|
|
2054
|
+
" \u2591\u2588\xA3\xA3\xA3 ",
|
|
2055
|
+
" \u2592\u2588\xA3\xA3\xA3 ",
|
|
2056
|
+
" \u2593\u2588\xA3\xA3\xA3 ",
|
|
2057
|
+
" \u2588\u2588\xA3\xA3\xA3 ",
|
|
2058
|
+
" \u2591\u2588\u2588\xA3\xA3\xA3 ",
|
|
2059
|
+
" \u2592\u2588\u2588\xA3\xA3\xA3 ",
|
|
2060
|
+
" \u2593\u2588\u2588\xA3\xA3\xA3 ",
|
|
2061
|
+
" \u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2062
|
+
" \u2591\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2063
|
+
" \u2592\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2064
|
+
" \u2593\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2065
|
+
" \u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2066
|
+
" \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2067
|
+
" \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2068
|
+
" \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2069
|
+
" \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2070
|
+
" \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2071
|
+
" \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2072
|
+
" \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2073
|
+
" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
|
|
2074
|
+
" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "
|
|
2075
|
+
]
|
|
1922
2076
|
}
|
|
1923
2077
|
};
|
|
1924
2078
|
}
|
|
1925
2079
|
});
|
|
1926
2080
|
var require_cli_spinners = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1927
|
-
"../../node_modules/.pnpm/cli-spinners@2.
|
|
2081
|
+
"../../node_modules/.pnpm/cli-spinners@2.9.2/node_modules/cli-spinners/index.js"(exports, module2) {
|
|
1928
2082
|
"use strict";
|
|
1929
2083
|
var spinners = Object.assign({}, require_spinners());
|
|
1930
2084
|
var spinnersList = Object.keys(spinners);
|
|
@@ -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_EDQWDMXR_exports = {};
|
|
30
|
+
__export(chunk_EDQWDMXR_exports, {
|
|
31
31
|
MigrateReset: () => MigrateReset,
|
|
32
32
|
init_MigrateReset: () => init_MigrateReset
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_EDQWDMXR_exports);
|
|
35
35
|
var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
|
|
36
36
|
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_UVNSK22K = require("./chunk-UVNSK22K.js");
|
|
38
38
|
var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
|
|
39
39
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
|
40
40
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
@@ -47,7 +47,7 @@ var _MigrateReset, MigrateReset;
|
|
|
47
47
|
var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
48
48
|
"src/commands/MigrateReset.ts"() {
|
|
49
49
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
50
|
-
(0,
|
|
50
|
+
(0, import_chunk_UVNSK22K.init_Migrate)();
|
|
51
51
|
(0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
|
|
52
52
|
(0, import_chunk_U374EXYQ.init_errors)();
|
|
53
53
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
@@ -58,7 +58,7 @@ var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
58
58
|
static new() {
|
|
59
59
|
return new _MigrateReset2();
|
|
60
60
|
}
|
|
61
|
-
async parse(argv) {
|
|
61
|
+
async parse(argv, config) {
|
|
62
62
|
const args = (0, import_internals.arg)(argv, {
|
|
63
63
|
"--help": Boolean,
|
|
64
64
|
"-h": "--help",
|
|
@@ -76,7 +76,7 @@ var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
76
76
|
if (args["--help"]) {
|
|
77
77
|
return this.help();
|
|
78
78
|
}
|
|
79
|
-
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
|
|
79
|
+
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
80
80
|
const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
|
|
81
81
|
const datasourceInfo = await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath });
|
|
82
82
|
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
|
|
@@ -100,7 +100,7 @@ var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
100
100
|
process.exit(130);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
const migrate = new
|
|
103
|
+
const migrate = new import_chunk_UVNSK22K.Migrate(schemaPath);
|
|
104
104
|
let migrationIds;
|
|
105
105
|
try {
|
|
106
106
|
await migrate.reset();
|
|
@@ -166,6 +166,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Usage")}
|
|
|
166
166
|
${(0, import_chunk_6TE2RIPN.bold)("Options")}
|
|
167
167
|
|
|
168
168
|
-h, --help Display this help message
|
|
169
|
+
--config Custom path to your Prisma config file
|
|
169
170
|
--schema Custom path to your Prisma schema
|
|
170
171
|
--skip-generate Skip triggering generators (e.g. Prisma Client)
|
|
171
172
|
--skip-seed Skip triggering seed
|
|
@@ -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_FM4XJBEM_exports = {};
|
|
30
|
+
__export(chunk_FM4XJBEM_exports, {
|
|
31
31
|
MigrateDeploy: () => MigrateDeploy,
|
|
32
32
|
init_MigrateDeploy: () => init_MigrateDeploy
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_FM4XJBEM_exports);
|
|
35
35
|
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_UVNSK22K = require("./chunk-UVNSK22K.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_XJQP3B4W = require("./chunk-XJQP3B4W.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_UVNSK22K.init_Migrate)();
|
|
49
49
|
(0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
|
|
50
50
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
51
51
|
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
|
@@ -55,7 +55,7 @@ var init_MigrateDeploy = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
55
55
|
static new() {
|
|
56
56
|
return new _MigrateDeploy2();
|
|
57
57
|
}
|
|
58
|
-
async parse(argv) {
|
|
58
|
+
async parse(argv, config) {
|
|
59
59
|
const args = (0, import_internals.arg)(
|
|
60
60
|
argv,
|
|
61
61
|
{
|
|
@@ -73,10 +73,10 @@ var init_MigrateDeploy = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
73
73
|
if (args["--help"]) {
|
|
74
74
|
return this.help();
|
|
75
75
|
}
|
|
76
|
-
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
|
|
76
|
+
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
77
77
|
const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
|
|
78
78
|
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath }) });
|
|
79
|
-
const migrate = new
|
|
79
|
+
const migrate = new import_chunk_UVNSK22K.Migrate(schemaPath);
|
|
80
80
|
try {
|
|
81
81
|
const wasDbCreated = await (0, import_chunk_XJQP3B4W.ensureDatabaseExists)("apply", schemaPath);
|
|
82
82
|
if (wasDbCreated) {
|
|
@@ -143,6 +143,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Usage")}
|
|
|
143
143
|
${(0, import_chunk_6TE2RIPN.bold)("Options")}
|
|
144
144
|
|
|
145
145
|
-h, --help Display this help message
|
|
146
|
+
--config Custom path to your Prisma config file
|
|
146
147
|
--schema Custom path to your Prisma schema
|
|
147
148
|
|
|
148
149
|
${(0, import_chunk_6TE2RIPN.bold)("Examples")}
|
|
@@ -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_JYXY3OJ6_exports = {};
|
|
30
|
+
__export(chunk_JYXY3OJ6_exports, {
|
|
31
31
|
DbPush: () => DbPush,
|
|
32
32
|
init_DbPush: () => init_DbPush
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_JYXY3OJ6_exports);
|
|
35
|
+
var import_chunk_UVNSK22K = require("./chunk-UVNSK22K.js");
|
|
36
36
|
var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
|
|
37
37
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
|
38
38
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
@@ -45,7 +45,7 @@ var _DbPush, DbPush;
|
|
|
45
45
|
var init_DbPush = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
46
46
|
"src/commands/DbPush.ts"() {
|
|
47
47
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
48
|
-
(0,
|
|
48
|
+
(0, import_chunk_UVNSK22K.init_Migrate)();
|
|
49
49
|
(0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
|
|
50
50
|
(0, import_chunk_U374EXYQ.init_errors)();
|
|
51
51
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
@@ -54,7 +54,7 @@ var init_DbPush = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
54
54
|
static new() {
|
|
55
55
|
return new _DbPush2();
|
|
56
56
|
}
|
|
57
|
-
async parse(argv) {
|
|
57
|
+
async parse(argv, config) {
|
|
58
58
|
const args = (0, import_internals.arg)(
|
|
59
59
|
argv,
|
|
60
60
|
{
|
|
@@ -75,11 +75,11 @@ var init_DbPush = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
75
75
|
if (args["--help"]) {
|
|
76
76
|
return this.help();
|
|
77
77
|
}
|
|
78
|
-
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
|
|
78
|
+
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
79
79
|
const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
|
|
80
80
|
const datasourceInfo = await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath });
|
|
81
81
|
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
|
|
82
|
-
const migrate = new
|
|
82
|
+
const migrate = new import_chunk_UVNSK22K.Migrate(schemaPath);
|
|
83
83
|
try {
|
|
84
84
|
const wasDbCreated = await (0, import_chunk_XJQP3B4W.ensureDatabaseExists)("push", schemaPath);
|
|
85
85
|
if (wasDbCreated) {
|
|
@@ -256,6 +256,7 @@ ${(0, import_chunk_6TE2RIPN.bold)("Usage")}
|
|
|
256
256
|
${(0, import_chunk_6TE2RIPN.bold)("Options")}
|
|
257
257
|
|
|
258
258
|
-h, --help Display this help message
|
|
259
|
+
--config Custom path to your Prisma config file
|
|
259
260
|
--schema Custom path to your Prisma schema
|
|
260
261
|
--accept-data-loss Ignore data loss warnings
|
|
261
262
|
--force-reset Force a reset of the database before push
|
|
@@ -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_KW5YM5ZK_exports = {};
|
|
30
|
+
__export(chunk_KW5YM5ZK_exports, {
|
|
31
31
|
MigrateStatus: () => MigrateStatus,
|
|
32
32
|
init_MigrateStatus: () => init_MigrateStatus
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_KW5YM5ZK_exports);
|
|
35
|
+
var import_chunk_UVNSK22K = require("./chunk-UVNSK22K.js");
|
|
36
36
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
|
37
37
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
38
38
|
var import_chunk_XJQP3B4W = require("./chunk-XJQP3B4W.js");
|
|
@@ -44,7 +44,7 @@ var debug, _MigrateStatus, MigrateStatus;
|
|
|
44
44
|
var init_MigrateStatus = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
45
45
|
"src/commands/MigrateStatus.ts"() {
|
|
46
46
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
47
|
-
(0,
|
|
47
|
+
(0, import_chunk_UVNSK22K.init_Migrate)();
|
|
48
48
|
(0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
|
|
49
49
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
50
50
|
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
|
@@ -53,7 +53,7 @@ var init_MigrateStatus = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
53
53
|
static new() {
|
|
54
54
|
return new _MigrateStatus2();
|
|
55
55
|
}
|
|
56
|
-
async parse(argv) {
|
|
56
|
+
async parse(argv, config) {
|
|
57
57
|
const args = (0, import_internals.arg)(
|
|
58
58
|
argv,
|
|
59
59
|
{
|
|
@@ -71,10 +71,10 @@ var init_MigrateStatus = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
|
71
71
|
if (args["--help"]) {
|
|
72
72
|
return this.help();
|
|
73
73
|
}
|
|
74
|
-
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
|
|
74
|
+
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
75
75
|
const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
|
|
76
76
|
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo: await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath }) });
|
|
77
|
-
const migrate = new
|
|
77
|
+
const migrate = new import_chunk_UVNSK22K.Migrate(schemaPath);
|
|
78
78
|
await (0, import_chunk_XJQP3B4W.ensureCanConnectToDatabase)(schemaPath);
|
|
79
79
|
let diagnoseResult;
|
|
80
80
|
let listMigrationDirectoriesResult;
|
|
@@ -190,6 +190,7 @@ Check the status of your database migrations
|
|
|
190
190
|
${(0, import_chunk_6TE2RIPN.bold)("Options")}
|
|
191
191
|
|
|
192
192
|
-h, --help Display this help message
|
|
193
|
+
--config Custom path to your Prisma config file
|
|
193
194
|
--schema Custom path to your Prisma schema
|
|
194
195
|
|
|
195
196
|
${(0, import_chunk_6TE2RIPN.bold)("Examples")}
|