@prisma/migrate 6.18.0 → 6.19.0-integration-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +22 -22
- package/dist/{chunk-Z27SI4AV.js → chunk-43R3GFIU.js} +4 -4
- package/dist/{chunk-F2XCBEZ4.js → chunk-6EUJATSC.js} +7 -9
- package/dist/{chunk-ZTIS675B.js → chunk-B6XUXZTV.js} +5 -40
- package/dist/{chunk-TW22Y3AA.js → chunk-DKIKZTVE.js} +4 -4
- package/dist/{chunk-R4IWP35Z.js → chunk-IW6ZMFN5.js} +4 -4
- package/dist/{chunk-J33EXHZB.js → chunk-JSXDRFVP.js} +7 -9
- package/dist/{chunk-PHXLQVPT.js → chunk-L7EZFBB4.js} +40 -68
- package/dist/{chunk-6ORQRJLP.js → chunk-NN4KNZIO.js} +4 -4
- package/dist/{chunk-D4TRX77Y.js → chunk-W2NKGYXF.js} +7 -9
- package/dist/{chunk-7TVX3D4W.js → chunk-WYJ3CJCO.js} +4 -4
- package/dist/{chunk-3AKRTEIK.js → chunk-X6X2YOMP.js} +4 -4
- package/dist/{chunk-BHJMJSM4.js → chunk-XJTAAJKM.js} +4 -4
- package/dist/commands/DbDrop.js +2 -2
- package/dist/commands/DbExecute.js +2 -2
- package/dist/commands/DbPull.js +2 -2
- package/dist/commands/DbPush.js +2 -2
- package/dist/commands/DbSeed.js +3 -3
- package/dist/commands/MigrateDeploy.js +2 -2
- package/dist/commands/MigrateDev.js +3 -3
- package/dist/commands/MigrateDiff.js +2 -2
- package/dist/commands/MigrateReset.js +3 -3
- package/dist/commands/MigrateResolve.js +2 -2
- package/dist/commands/MigrateStatus.js +2 -2
- package/dist/index.js +23 -23
- package/dist/internals/src/cli/getSchema.d.ts +1 -15
- package/dist/migrate/src/utils/seed.d.ts +0 -6
- package/dist/utils/seed.js +2 -3
- package/package.json +10 -10
package/dist/bin.js
CHANGED
|
@@ -24,20 +24,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
));
|
|
25
25
|
var import_chunk_NGQA5JTN = require("./chunk-NGQA5JTN.js");
|
|
26
26
|
var import_chunk_NB4FRYRQ = require("./chunk-NB4FRYRQ.js");
|
|
27
|
-
var
|
|
28
|
-
var
|
|
27
|
+
var import_chunk_XJTAAJKM = require("./chunk-XJTAAJKM.js");
|
|
28
|
+
var import_chunk_6EUJATSC = require("./chunk-6EUJATSC.js");
|
|
29
29
|
var import_chunk_C3722PDA = require("./chunk-C3722PDA.js");
|
|
30
30
|
var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
|
|
31
|
-
var
|
|
31
|
+
var import_chunk_B6XUXZTV = require("./chunk-B6XUXZTV.js");
|
|
32
32
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
33
|
-
var
|
|
33
|
+
var import_chunk_JSXDRFVP = require("./chunk-JSXDRFVP.js");
|
|
34
34
|
var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
|
|
35
35
|
var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
|
|
36
|
-
var
|
|
37
|
-
var
|
|
36
|
+
var import_chunk_X6X2YOMP = require("./chunk-X6X2YOMP.js");
|
|
37
|
+
var import_chunk_IW6ZMFN5 = require("./chunk-IW6ZMFN5.js");
|
|
38
38
|
var import_chunk_EJG7GKM7 = require("./chunk-EJG7GKM7.js");
|
|
39
|
-
var
|
|
40
|
-
var
|
|
39
|
+
var import_chunk_WYJ3CJCO = require("./chunk-WYJ3CJCO.js");
|
|
40
|
+
var import_chunk_NN4KNZIO = require("./chunk-NN4KNZIO.js");
|
|
41
41
|
var import_chunk_VU5BLQUI = require("./chunk-VU5BLQUI.js");
|
|
42
42
|
var import_chunk_AHJ2N6BJ = require("./chunk-AHJ2N6BJ.js");
|
|
43
43
|
var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
|
|
@@ -47,14 +47,14 @@ var import_chunk_JFKDSUIE = require("./chunk-JFKDSUIE.js");
|
|
|
47
47
|
var import_chunk_AI6DH66U = require("./chunk-AI6DH66U.js");
|
|
48
48
|
var import_chunk_LGYRZ6CV = require("./chunk-LGYRZ6CV.js");
|
|
49
49
|
var import_chunk_2R6DII47 = require("./chunk-2R6DII47.js");
|
|
50
|
-
var
|
|
50
|
+
var import_chunk_DKIKZTVE = require("./chunk-DKIKZTVE.js");
|
|
51
51
|
var import_chunk_FBDQVK4W = require("./chunk-FBDQVK4W.js");
|
|
52
52
|
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
53
53
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
54
54
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
55
55
|
var import_chunk_TWPTG4XS = require("./chunk-TWPTG4XS.js");
|
|
56
|
-
var
|
|
57
|
-
var
|
|
56
|
+
var import_chunk_W2NKGYXF = require("./chunk-W2NKGYXF.js");
|
|
57
|
+
var import_chunk_L7EZFBB4 = require("./chunk-L7EZFBB4.js");
|
|
58
58
|
var import_chunk_LLO7YF56 = require("./chunk-LLO7YF56.js");
|
|
59
59
|
var import_chunk_D6LYHB65 = require("./chunk-D6LYHB65.js");
|
|
60
60
|
var import_chunk_T64SUJ5L = require("./chunk-T64SUJ5L.js");
|
|
@@ -72,7 +72,7 @@ var import_config = require("@prisma/config");
|
|
|
72
72
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
73
73
|
var import_engines_version = require("@prisma/engines-version");
|
|
74
74
|
var import_internals = require("@prisma/internals");
|
|
75
|
-
var version = "6.
|
|
75
|
+
var version = "6.19.0-integration-next.1";
|
|
76
76
|
process.on("uncaughtException", (e) => {
|
|
77
77
|
console.log(e);
|
|
78
78
|
});
|
|
@@ -94,19 +94,19 @@ var args = (0, import_internals.arg)(
|
|
|
94
94
|
async function main() {
|
|
95
95
|
const cli = import_chunk_NGQA5JTN.CLI.new({
|
|
96
96
|
migrate: import_chunk_LLO7YF56.MigrateCommand.new({
|
|
97
|
-
dev:
|
|
98
|
-
status:
|
|
99
|
-
resolve:
|
|
100
|
-
reset:
|
|
101
|
-
deploy:
|
|
102
|
-
diff:
|
|
97
|
+
dev: import_chunk_6EUJATSC.MigrateDev.new(),
|
|
98
|
+
status: import_chunk_IW6ZMFN5.MigrateStatus.new(),
|
|
99
|
+
resolve: import_chunk_X6X2YOMP.MigrateResolve.new(),
|
|
100
|
+
reset: import_chunk_JSXDRFVP.MigrateReset.new(),
|
|
101
|
+
deploy: import_chunk_XJTAAJKM.MigrateDeploy.new(),
|
|
102
|
+
diff: import_chunk_B6XUXZTV.MigrateDiff.new()
|
|
103
103
|
}),
|
|
104
104
|
db: import_chunk_EJG7GKM7.DbCommand.new({
|
|
105
|
-
execute:
|
|
106
|
-
pull:
|
|
107
|
-
push:
|
|
105
|
+
execute: import_chunk_WYJ3CJCO.DbExecute.new(),
|
|
106
|
+
pull: import_chunk_NN4KNZIO.DbPull.new(),
|
|
107
|
+
push: import_chunk_DKIKZTVE.DbPush.new(),
|
|
108
108
|
// drop: DbDrop.new(),
|
|
109
|
-
seed:
|
|
109
|
+
seed: import_chunk_W2NKGYXF.DbSeed.new()
|
|
110
110
|
})
|
|
111
111
|
});
|
|
112
112
|
const { config, error } = await (0, import_config.loadConfigFromFile)({ configFile: args["--config"] });
|
|
@@ -26,11 +26,11 @@ 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_43R3GFIU_exports = {};
|
|
30
|
+
__export(chunk_43R3GFIU_exports, {
|
|
31
31
|
DbDrop: () => DbDrop
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_43R3GFIU_exports);
|
|
34
34
|
var import_chunk_IHDN3L3R = require("./chunk-IHDN3L3R.js");
|
|
35
35
|
var import_chunk_FBDQVK4W = require("./chunk-FBDQVK4W.js");
|
|
36
36
|
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
@@ -94,7 +94,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
94
94
|
if (!args["--preview-feature"]) {
|
|
95
95
|
throw new import_chunk_IHDN3L3R.PreviewFlagError();
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
(0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
98
98
|
const schemaContext = await (0, import_internals.loadSchemaContext)({
|
|
99
99
|
schemaPathFromArg: args["--schema"],
|
|
100
100
|
schemaPathFromConfig: config.schema,
|
|
@@ -26,11 +26,11 @@ 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_6EUJATSC_exports = {};
|
|
30
|
+
__export(chunk_6EUJATSC_exports, {
|
|
31
31
|
MigrateDev: () => MigrateDev
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_6EUJATSC_exports);
|
|
34
34
|
var import_chunk_C3722PDA = require("./chunk-C3722PDA.js");
|
|
35
35
|
var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
|
|
36
36
|
var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
|
|
@@ -38,7 +38,7 @@ var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
|
|
|
38
38
|
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
39
39
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
40
40
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_L7EZFBB4 = require("./chunk-L7EZFBB4.js");
|
|
42
42
|
var import_chunk_D6LYHB65 = require("./chunk-D6LYHB65.js");
|
|
43
43
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
44
44
|
var import_node_path = __toESM(require("node:path"));
|
|
@@ -100,7 +100,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
100
100
|
if (args["--help"]) {
|
|
101
101
|
return this.help();
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
(0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
104
104
|
const schemaContext = await (0, import_internals.loadSchemaContext)({
|
|
105
105
|
schemaPathFromArg: args["--schema"],
|
|
106
106
|
schemaPathFromConfig: config.schema,
|
|
@@ -286,12 +286,10 @@ ${(0, import_chunk_SKRR5WT4.green)("Your database is now in sync with your schem
|
|
|
286
286
|
}
|
|
287
287
|
if (wasDbCreated && !process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
|
|
288
288
|
try {
|
|
289
|
-
const
|
|
290
|
-
const seedCommandFromPkgJson = await (0, import_chunk_PHXLQVPT.getSeedCommandFromPackageJson)(process.cwd());
|
|
291
|
-
const seedCommand = seedCommandFromPrismaConfig ?? seedCommandFromPkgJson;
|
|
289
|
+
const seedCommand = config.migrations?.seed;
|
|
292
290
|
if (seedCommand) {
|
|
293
291
|
process.stdout.write("\n");
|
|
294
|
-
const successfulSeeding = await (0,
|
|
292
|
+
const successfulSeeding = await (0, import_chunk_L7EZFBB4.executeSeedCommand)({ commandFromConfig: seedCommand });
|
|
295
293
|
if (successfulSeeding) {
|
|
296
294
|
process.stdout.write(`
|
|
297
295
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
|
|
@@ -26,11 +26,11 @@ 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_B6XUXZTV_exports = {};
|
|
30
|
+
__export(chunk_B6XUXZTV_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_B6XUXZTV_exports);
|
|
34
34
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
35
35
|
var import_chunk_D6LYHB65 = require("./chunk-D6LYHB65.js");
|
|
36
36
|
var import_chunk_GGA2F64G = require("./chunk-GGA2F64G.js");
|
|
@@ -39,7 +39,6 @@ var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
|
39
39
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
40
40
|
var import_internals = require("@prisma/internals");
|
|
41
41
|
var import_path = __toESM(require("path"));
|
|
42
|
-
var import_config = require("@prisma/config");
|
|
43
42
|
var import_debug2 = require("@prisma/debug");
|
|
44
43
|
var import_fs = __toESM(require("fs"));
|
|
45
44
|
var import_path2 = __toESM(require("path"));
|
|
@@ -5569,10 +5568,6 @@ async function getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfi
|
|
|
5569
5568
|
if (prismaConfigResult.ok) {
|
|
5570
5569
|
return prismaConfigResult;
|
|
5571
5570
|
}
|
|
5572
|
-
const pkgJsonResult = await getSchemaFromPackageJson(cwd);
|
|
5573
|
-
if (pkgJsonResult.ok) {
|
|
5574
|
-
return pkgJsonResult;
|
|
5575
|
-
}
|
|
5576
5571
|
const defaultResult = await getDefaultSchema(cwd);
|
|
5577
5572
|
if (defaultResult.ok) {
|
|
5578
5573
|
return defaultResult;
|
|
@@ -5629,36 +5624,6 @@ async function readSchemaFromPrismaConfigBasedLocation(schemaPathFromConfig) {
|
|
|
5629
5624
|
}
|
|
5630
5625
|
return schemaResult;
|
|
5631
5626
|
}
|
|
5632
|
-
async function getSchemaFromPackageJson(cwd) {
|
|
5633
|
-
const prismaConfig = await (0, import_config.loadConfigFromPackageJson)(cwd);
|
|
5634
|
-
debug("prismaConfig", prismaConfig);
|
|
5635
|
-
if (!prismaConfig || !prismaConfig.config?.schema) {
|
|
5636
|
-
return { ok: false, error: { kind: "PackageJsonNotConfigured" } };
|
|
5637
|
-
}
|
|
5638
|
-
const schemaPathFromPkgJson = prismaConfig.config.schema;
|
|
5639
|
-
if (typeof schemaPathFromPkgJson !== "string") {
|
|
5640
|
-
throw new Error(
|
|
5641
|
-
`Provided schema path \`${schemaPathFromPkgJson}\` from \`${import_path2.default.relative(
|
|
5642
|
-
cwd,
|
|
5643
|
-
prismaConfig.loadedFromFile
|
|
5644
|
-
)}\` must be of type string`
|
|
5645
|
-
);
|
|
5646
|
-
}
|
|
5647
|
-
const absoluteSchemaPath = import_path2.default.isAbsolute(schemaPathFromPkgJson) ? schemaPathFromPkgJson : import_path2.default.resolve(import_path2.default.dirname(prismaConfig.loadedFromFile), schemaPathFromPkgJson);
|
|
5648
|
-
const lookupResult = await readSchemaFromFileOrDirectory(absoluteSchemaPath);
|
|
5649
|
-
if (!lookupResult.ok) {
|
|
5650
|
-
throw new Error(
|
|
5651
|
-
`Could not load schema from \`${import_path2.default.relative(
|
|
5652
|
-
cwd,
|
|
5653
|
-
absoluteSchemaPath
|
|
5654
|
-
)}\` provided by "prisma.schema" config of \`${import_path2.default.relative(
|
|
5655
|
-
cwd,
|
|
5656
|
-
prismaConfig.loadedFromFile
|
|
5657
|
-
)}\`: ${renderLookupError(lookupResult.error)}`
|
|
5658
|
-
);
|
|
5659
|
-
}
|
|
5660
|
-
return lookupResult;
|
|
5661
|
-
}
|
|
5662
5627
|
async function getDefaultSchema(cwd, failures = []) {
|
|
5663
5628
|
const lookupPaths = [import_path2.default.join(cwd, "schema.prisma"), import_path2.default.join(cwd, "prisma", "schema.prisma")];
|
|
5664
5629
|
for (const path3 of lookupPaths) {
|
|
@@ -5873,7 +5838,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
5873
5838
|
tag: "empty"
|
|
5874
5839
|
};
|
|
5875
5840
|
} else if (args["--from-schema-datasource"]) {
|
|
5876
|
-
|
|
5841
|
+
(0, import_internals.loadEnvFile)({ schemaPath: args["--from-schema-datasource"], printMessage: false, config });
|
|
5877
5842
|
const schemaContext = await (0, import_internals.loadSchemaContext)({
|
|
5878
5843
|
schemaPathFromArg: args["--from-schema-datasource"],
|
|
5879
5844
|
schemaPathArgumentName: "--from-schema-datasource",
|
|
@@ -5916,7 +5881,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
5916
5881
|
tag: "empty"
|
|
5917
5882
|
};
|
|
5918
5883
|
} else if (args["--to-schema-datasource"]) {
|
|
5919
|
-
|
|
5884
|
+
(0, import_internals.loadEnvFile)({ schemaPath: args["--to-schema-datasource"], printMessage: false, config });
|
|
5920
5885
|
const schemaContext = await (0, import_internals.loadSchemaContext)({
|
|
5921
5886
|
schemaPathFromArg: args["--to-schema-datasource"],
|
|
5922
5887
|
schemaPathArgumentName: "--to-schema-datasource",
|
|
@@ -26,11 +26,11 @@ 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_DKIKZTVE_exports = {};
|
|
30
|
+
__export(chunk_DKIKZTVE_exports, {
|
|
31
31
|
DbPush: () => DbPush
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_DKIKZTVE_exports);
|
|
34
34
|
var import_chunk_FBDQVK4W = require("./chunk-FBDQVK4W.js");
|
|
35
35
|
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
36
36
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
@@ -91,7 +91,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
91
91
|
if (args["--help"]) {
|
|
92
92
|
return this.help();
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
(0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
95
95
|
const schemaContext = await (0, import_internals.loadSchemaContext)({
|
|
96
96
|
schemaPathFromArg: args["--schema"],
|
|
97
97
|
schemaPathFromConfig: config.schema,
|
|
@@ -26,11 +26,11 @@ 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_IW6ZMFN5_exports = {};
|
|
30
|
+
__export(chunk_IW6ZMFN5_exports, {
|
|
31
31
|
MigrateStatus: () => MigrateStatus
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_IW6ZMFN5_exports);
|
|
34
34
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
35
35
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
36
36
|
var import_chunk_D6LYHB65 = require("./chunk-D6LYHB65.js");
|
|
@@ -81,7 +81,7 @@ Check the status of your database migrations
|
|
|
81
81
|
if (args["--help"]) {
|
|
82
82
|
return this.help();
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
(0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
85
85
|
const schemaContext = await (0, import_internals.loadSchemaContext)({
|
|
86
86
|
schemaPathFromArg: args["--schema"],
|
|
87
87
|
schemaPathFromConfig: config.schema,
|
|
@@ -26,17 +26,17 @@ 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_JSXDRFVP_exports = {};
|
|
30
|
+
__export(chunk_JSXDRFVP_exports, {
|
|
31
31
|
MigrateReset: () => MigrateReset
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_JSXDRFVP_exports);
|
|
34
34
|
var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
|
|
35
35
|
var import_chunk_FBDQVK4W = require("./chunk-FBDQVK4W.js");
|
|
36
36
|
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
37
37
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
38
38
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
39
|
-
var
|
|
39
|
+
var import_chunk_L7EZFBB4 = require("./chunk-L7EZFBB4.js");
|
|
40
40
|
var import_chunk_D6LYHB65 = require("./chunk-D6LYHB65.js");
|
|
41
41
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
42
42
|
var import_internals = require("@prisma/internals");
|
|
@@ -90,7 +90,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
90
90
|
if (args["--help"]) {
|
|
91
91
|
return this.help();
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
(0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
94
94
|
const schemaContext = await (0, import_internals.loadSchemaContext)({
|
|
95
95
|
schemaPathFromArg: args["--schema"],
|
|
96
96
|
schemaPathFromConfig: config.schema,
|
|
@@ -163,12 +163,10 @@ ${(0, import_chunk_KRQEFTDT.printFilesFromMigrationIds)("migrations", migrationI
|
|
|
163
163
|
await migrate.tryToRunGenerate(datasourceInfo);
|
|
164
164
|
}
|
|
165
165
|
if (!process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
|
|
166
|
-
const
|
|
167
|
-
const seedCommandFromPkgJson = await (0, import_chunk_PHXLQVPT.getSeedCommandFromPackageJson)(process.cwd());
|
|
168
|
-
const seedCommand = seedCommandFromPrismaConfig ?? seedCommandFromPkgJson;
|
|
166
|
+
const seedCommand = config.migrations?.seed;
|
|
169
167
|
if (seedCommand) {
|
|
170
168
|
process.stdout.write("\n");
|
|
171
|
-
const successfulSeeding = await (0,
|
|
169
|
+
const successfulSeeding = await (0, import_chunk_L7EZFBB4.executeSeedCommand)({ commandFromConfig: seedCommand });
|
|
172
170
|
if (successfulSeeding) {
|
|
173
171
|
process.stdout.write(`
|
|
174
172
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
|
|
@@ -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(
|
|
31
|
-
executeSeedCommand: () => executeSeedCommand
|
|
32
|
-
getSeedCommandFromPackageJson: () => getSeedCommandFromPackageJson
|
|
29
|
+
var chunk_L7EZFBB4_exports = {};
|
|
30
|
+
__export(chunk_L7EZFBB4_exports, {
|
|
31
|
+
executeSeedCommand: () => executeSeedCommand
|
|
33
32
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_L7EZFBB4_exports);
|
|
35
34
|
var import_chunk_3WDCTXHL = require("./chunk-3WDCTXHL.js");
|
|
36
35
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
37
36
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
38
|
-
var import_node_path = __toESM(require("node:path"));
|
|
39
|
-
var import_config = require("@prisma/config");
|
|
40
37
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
41
38
|
var import_node_buffer = require("node:buffer");
|
|
42
|
-
var
|
|
39
|
+
var import_node_path = __toESM(require("node:path"));
|
|
43
40
|
var import_node_child_process = __toESM(require("node:child_process"));
|
|
44
41
|
var import_node_process = __toESM(require("node:process"));
|
|
45
42
|
var import_node_process2 = __toESM(require("node:process"));
|
|
46
|
-
var
|
|
43
|
+
var import_node_path2 = __toESM(require("node:path"));
|
|
47
44
|
var import_node_url = require("node:url");
|
|
48
45
|
var import_node_process3 = __toESM(require("node:process"));
|
|
49
46
|
var import_node_os = require("node:os");
|
|
@@ -63,7 +60,7 @@ var require_windows = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
63
60
|
module2.exports = isexe;
|
|
64
61
|
isexe.sync = sync;
|
|
65
62
|
var fs = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
66
|
-
function checkPathExt(
|
|
63
|
+
function checkPathExt(path3, options) {
|
|
67
64
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
68
65
|
if (!pathext) {
|
|
69
66
|
return true;
|
|
@@ -74,25 +71,25 @@ var require_windows = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
74
71
|
}
|
|
75
72
|
for (var i = 0; i < pathext.length; i++) {
|
|
76
73
|
var p = pathext[i].toLowerCase();
|
|
77
|
-
if (p &&
|
|
74
|
+
if (p && path3.substr(-p.length).toLowerCase() === p) {
|
|
78
75
|
return true;
|
|
79
76
|
}
|
|
80
77
|
}
|
|
81
78
|
return false;
|
|
82
79
|
}
|
|
83
|
-
function checkStat(stat,
|
|
80
|
+
function checkStat(stat, path3, options) {
|
|
84
81
|
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
85
82
|
return false;
|
|
86
83
|
}
|
|
87
|
-
return checkPathExt(
|
|
84
|
+
return checkPathExt(path3, options);
|
|
88
85
|
}
|
|
89
|
-
function isexe(
|
|
90
|
-
fs.stat(
|
|
91
|
-
cb(er, er ? false : checkStat(stat,
|
|
86
|
+
function isexe(path3, options, cb) {
|
|
87
|
+
fs.stat(path3, function(er, stat) {
|
|
88
|
+
cb(er, er ? false : checkStat(stat, path3, options));
|
|
92
89
|
});
|
|
93
90
|
}
|
|
94
|
-
function sync(
|
|
95
|
-
return checkStat(fs.statSync(
|
|
91
|
+
function sync(path3, options) {
|
|
92
|
+
return checkStat(fs.statSync(path3), path3, options);
|
|
96
93
|
}
|
|
97
94
|
}
|
|
98
95
|
});
|
|
@@ -102,13 +99,13 @@ var require_mode = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
102
99
|
module2.exports = isexe;
|
|
103
100
|
isexe.sync = sync;
|
|
104
101
|
var fs = (0, import_chunk_2ESYSVXG.__require)("fs");
|
|
105
|
-
function isexe(
|
|
106
|
-
fs.stat(
|
|
102
|
+
function isexe(path3, options, cb) {
|
|
103
|
+
fs.stat(path3, function(er, stat) {
|
|
107
104
|
cb(er, er ? false : checkStat(stat, options));
|
|
108
105
|
});
|
|
109
106
|
}
|
|
110
|
-
function sync(
|
|
111
|
-
return checkStat(fs.statSync(
|
|
107
|
+
function sync(path3, options) {
|
|
108
|
+
return checkStat(fs.statSync(path3), options);
|
|
112
109
|
}
|
|
113
110
|
function checkStat(stat, options) {
|
|
114
111
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -140,7 +137,7 @@ var require_isexe = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
140
137
|
}
|
|
141
138
|
module2.exports = isexe;
|
|
142
139
|
isexe.sync = sync;
|
|
143
|
-
function isexe(
|
|
140
|
+
function isexe(path3, options, cb) {
|
|
144
141
|
if (typeof options === "function") {
|
|
145
142
|
cb = options;
|
|
146
143
|
options = {};
|
|
@@ -150,7 +147,7 @@ var require_isexe = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
150
147
|
throw new TypeError("callback not provided");
|
|
151
148
|
}
|
|
152
149
|
return new Promise(function(resolve, reject) {
|
|
153
|
-
isexe(
|
|
150
|
+
isexe(path3, options || {}, function(er, is) {
|
|
154
151
|
if (er) {
|
|
155
152
|
reject(er);
|
|
156
153
|
} else {
|
|
@@ -159,7 +156,7 @@ var require_isexe = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
159
156
|
});
|
|
160
157
|
});
|
|
161
158
|
}
|
|
162
|
-
core(
|
|
159
|
+
core(path3, options || {}, function(er, is) {
|
|
163
160
|
if (er) {
|
|
164
161
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
165
162
|
er = null;
|
|
@@ -169,9 +166,9 @@ var require_isexe = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
169
166
|
cb(er, is);
|
|
170
167
|
});
|
|
171
168
|
}
|
|
172
|
-
function sync(
|
|
169
|
+
function sync(path3, options) {
|
|
173
170
|
try {
|
|
174
|
-
return core.sync(
|
|
171
|
+
return core.sync(path3, options || {});
|
|
175
172
|
} catch (er) {
|
|
176
173
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
177
174
|
return false;
|
|
@@ -186,7 +183,7 @@ var require_which = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
186
183
|
"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module2) {
|
|
187
184
|
"use strict";
|
|
188
185
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
189
|
-
var
|
|
186
|
+
var path3 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
190
187
|
var COLON = isWindows ? ";" : ":";
|
|
191
188
|
var isexe = require_isexe();
|
|
192
189
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -224,7 +221,7 @@ var require_which = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
224
221
|
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
225
222
|
const ppRaw = pathEnv[i];
|
|
226
223
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
227
|
-
const pCmd =
|
|
224
|
+
const pCmd = path3.join(pathPart, cmd);
|
|
228
225
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
229
226
|
resolve(subStep(p, i, 0));
|
|
230
227
|
});
|
|
@@ -251,7 +248,7 @@ var require_which = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
251
248
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
252
249
|
const ppRaw = pathEnv[i];
|
|
253
250
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
254
|
-
const pCmd =
|
|
251
|
+
const pCmd = path3.join(pathPart, cmd);
|
|
255
252
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
256
253
|
for (let j = 0; j < pathExt.length; j++) {
|
|
257
254
|
const cur = p + pathExt[j];
|
|
@@ -295,7 +292,7 @@ var require_path_key = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
295
292
|
var require_resolveCommand = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
296
293
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
|
|
297
294
|
"use strict";
|
|
298
|
-
var
|
|
295
|
+
var path3 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
299
296
|
var which = require_which();
|
|
300
297
|
var getPathKey = require_path_key();
|
|
301
298
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -313,7 +310,7 @@ var require_resolveCommand = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
313
310
|
try {
|
|
314
311
|
resolved = which.sync(parsed.command, {
|
|
315
312
|
path: env[getPathKey({ env })],
|
|
316
|
-
pathExt: withoutPathExt ?
|
|
313
|
+
pathExt: withoutPathExt ? path3.delimiter : void 0
|
|
317
314
|
});
|
|
318
315
|
} catch (e) {
|
|
319
316
|
} finally {
|
|
@@ -322,7 +319,7 @@ var require_resolveCommand = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
322
319
|
}
|
|
323
320
|
}
|
|
324
321
|
if (resolved) {
|
|
325
|
-
resolved =
|
|
322
|
+
resolved = path3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
326
323
|
}
|
|
327
324
|
return resolved;
|
|
328
325
|
}
|
|
@@ -370,8 +367,8 @@ var require_shebang_command = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
370
367
|
if (!match) {
|
|
371
368
|
return null;
|
|
372
369
|
}
|
|
373
|
-
const [
|
|
374
|
-
const binary =
|
|
370
|
+
const [path3, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
371
|
+
const binary = path3.split("/").pop();
|
|
375
372
|
if (binary === "env") {
|
|
376
373
|
return argument;
|
|
377
374
|
}
|
|
@@ -402,7 +399,7 @@ var require_readShebang = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
402
399
|
var require_parse = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
403
400
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
|
|
404
401
|
"use strict";
|
|
405
|
-
var
|
|
402
|
+
var path3 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
406
403
|
var resolveCommand = require_resolveCommand();
|
|
407
404
|
var escape = require_escape();
|
|
408
405
|
var readShebang = require_readShebang();
|
|
@@ -427,7 +424,7 @@ var require_parse = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
427
424
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
428
425
|
if (parsed.options.forceShell || needsShell) {
|
|
429
426
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
430
|
-
parsed.command =
|
|
427
|
+
parsed.command = path3.normalize(parsed.command);
|
|
431
428
|
parsed.command = escape.command(parsed.command);
|
|
432
429
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
433
430
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
@@ -600,7 +597,7 @@ var npmRunPath = ({
|
|
|
600
597
|
addExecPath = true
|
|
601
598
|
} = {}) => {
|
|
602
599
|
const cwdString = cwd instanceof URL ? (0, import_node_url.fileURLToPath)(cwd) : cwd;
|
|
603
|
-
const cwdPath =
|
|
600
|
+
const cwdPath = import_node_path2.default.resolve(cwdString);
|
|
604
601
|
const result = [];
|
|
605
602
|
if (preferLocal) {
|
|
606
603
|
applyPreferLocal(result, cwdPath);
|
|
@@ -608,19 +605,19 @@ var npmRunPath = ({
|
|
|
608
605
|
if (addExecPath) {
|
|
609
606
|
applyExecPath(result, execPath, cwdPath);
|
|
610
607
|
}
|
|
611
|
-
return [...result, pathOption].join(
|
|
608
|
+
return [...result, pathOption].join(import_node_path2.default.delimiter);
|
|
612
609
|
};
|
|
613
610
|
var applyPreferLocal = (result, cwdPath) => {
|
|
614
611
|
let previous;
|
|
615
612
|
while (previous !== cwdPath) {
|
|
616
|
-
result.push(
|
|
613
|
+
result.push(import_node_path2.default.join(cwdPath, "node_modules/.bin"));
|
|
617
614
|
previous = cwdPath;
|
|
618
|
-
cwdPath =
|
|
615
|
+
cwdPath = import_node_path2.default.resolve(cwdPath, "..");
|
|
619
616
|
}
|
|
620
617
|
};
|
|
621
618
|
var applyExecPath = (result, execPath, cwdPath) => {
|
|
622
619
|
const execPathString = execPath instanceof URL ? (0, import_node_url.fileURLToPath)(execPath) : execPath;
|
|
623
|
-
result.push(
|
|
620
|
+
result.push(import_node_path2.default.resolve(cwdPath, execPathString, ".."));
|
|
624
621
|
};
|
|
625
622
|
var npmRunPathEnv = ({ env = import_node_process2.default.env, ...options } = {}) => {
|
|
626
623
|
env = { ...env };
|
|
@@ -1665,7 +1662,7 @@ var handleArguments = (file, args, options = {}) => {
|
|
|
1665
1662
|
};
|
|
1666
1663
|
options.env = getEnv(options);
|
|
1667
1664
|
options.stdio = normalizeStdio(options);
|
|
1668
|
-
if (import_node_process.default.platform === "win32" &&
|
|
1665
|
+
if (import_node_process.default.platform === "win32" && import_node_path.default.basename(file, ".exe") === "cmd") {
|
|
1669
1666
|
args.unshift("/q");
|
|
1670
1667
|
}
|
|
1671
1668
|
return { file, args, options, parsed };
|
|
@@ -1841,31 +1838,6 @@ function execaCommand(command, options) {
|
|
|
1841
1838
|
return execa(file, args, options);
|
|
1842
1839
|
}
|
|
1843
1840
|
var debug = (0, import_debug.default)("prisma:migrate:seed");
|
|
1844
|
-
async function getSeedCommandFromPackageJson(cwd) {
|
|
1845
|
-
const prismaConfig = await (0, import_config.loadConfigFromPackageJson)(cwd);
|
|
1846
|
-
debug({ prismaConfig });
|
|
1847
|
-
if (!prismaConfig?.config?.seed) {
|
|
1848
|
-
return null;
|
|
1849
|
-
}
|
|
1850
|
-
const seedCommandFromPkgJson = prismaConfig.config.seed;
|
|
1851
|
-
if (typeof seedCommandFromPkgJson !== "string") {
|
|
1852
|
-
throw new Error(
|
|
1853
|
-
`Provided seed command \`${seedCommandFromPkgJson}\` from \`${import_node_path.default.relative(
|
|
1854
|
-
cwd,
|
|
1855
|
-
prismaConfig.loadedFromFile
|
|
1856
|
-
)}\` must be of type string`
|
|
1857
|
-
);
|
|
1858
|
-
}
|
|
1859
|
-
if (!seedCommandFromPkgJson) {
|
|
1860
|
-
throw new Error(
|
|
1861
|
-
`Provided seed command \`${seedCommandFromPkgJson}\` from \`${import_node_path.default.relative(
|
|
1862
|
-
cwd,
|
|
1863
|
-
prismaConfig.loadedFromFile
|
|
1864
|
-
)}\` cannot be empty`
|
|
1865
|
-
);
|
|
1866
|
-
}
|
|
1867
|
-
return prismaConfig.config.seed;
|
|
1868
|
-
}
|
|
1869
1841
|
async function executeSeedCommand({
|
|
1870
1842
|
commandFromConfig,
|
|
1871
1843
|
extraArgs
|
|
@@ -26,11 +26,11 @@ 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_NN4KNZIO_exports = {};
|
|
30
|
+
__export(chunk_NN4KNZIO_exports, {
|
|
31
31
|
DbPull: () => DbPull
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_NN4KNZIO_exports);
|
|
34
34
|
var import_chunk_VU5BLQUI = require("./chunk-VU5BLQUI.js");
|
|
35
35
|
var import_chunk_AHJ2N6BJ = require("./chunk-AHJ2N6BJ.js");
|
|
36
36
|
var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
|
|
@@ -126,7 +126,7 @@ Set composite types introspection depth to 2 levels
|
|
|
126
126
|
return this.help();
|
|
127
127
|
}
|
|
128
128
|
const url = args["--url"];
|
|
129
|
-
|
|
129
|
+
(0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: !args["--print"], config });
|
|
130
130
|
const schemaContext = await (0, import_internals.loadSchemaContext)({
|
|
131
131
|
schemaPathFromArg: args["--schema"],
|
|
132
132
|
schemaPathFromConfig: config.schema,
|
|
@@ -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_W2NKGYXF_exports = {};
|
|
20
|
+
__export(chunk_W2NKGYXF_exports, {
|
|
21
21
|
DbSeed: () => DbSeed
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_W2NKGYXF_exports);
|
|
24
|
+
var import_chunk_L7EZFBB4 = require("./chunk-L7EZFBB4.js");
|
|
25
25
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
26
26
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
27
27
|
var import_internals = require("@prisma/internals");
|
|
@@ -213,13 +213,11 @@ ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db seed -- --arg1 value1 --arg2 va
|
|
|
213
213
|
if (args["--help"]) {
|
|
214
214
|
return this.help();
|
|
215
215
|
}
|
|
216
|
-
|
|
217
|
-
const
|
|
218
|
-
const seedCommandFromPkgJson = await (0, import_chunk_PHXLQVPT.getSeedCommandFromPackageJson)(process.cwd());
|
|
219
|
-
const seedCommand = seedCommandFromPrismaConfig ?? seedCommandFromPkgJson;
|
|
216
|
+
(0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
217
|
+
const seedCommand = config.migrations?.seed;
|
|
220
218
|
if (!seedCommand) return ``;
|
|
221
219
|
const extraArgs = args._.join(" ");
|
|
222
|
-
const successfulSeeding = await (0,
|
|
220
|
+
const successfulSeeding = await (0, import_chunk_L7EZFBB4.executeSeedCommand)({ commandFromConfig: seedCommand, extraArgs });
|
|
223
221
|
if (successfulSeeding) {
|
|
224
222
|
return `
|
|
225
223
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.`;
|
|
@@ -26,11 +26,11 @@ 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_WYJ3CJCO_exports = {};
|
|
30
|
+
__export(chunk_WYJ3CJCO_exports, {
|
|
31
31
|
DbExecute: () => DbExecute
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_WYJ3CJCO_exports);
|
|
34
34
|
var import_chunk_D6LYHB65 = require("./chunk-D6LYHB65.js");
|
|
35
35
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
36
36
|
var import_consumers = __toESM(require("node:stream/consumers"));
|
|
@@ -121,7 +121,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
121
121
|
if (args["--help"]) {
|
|
122
122
|
return this.help();
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
(0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: false, config });
|
|
125
125
|
const cmd = "db execute";
|
|
126
126
|
(0, import_internals.checkUnsupportedSchemaEngineWasm)({
|
|
127
127
|
cmd,
|
|
@@ -16,11 +16,11 @@ 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_X6X2YOMP_exports = {};
|
|
20
|
+
__export(chunk_X6X2YOMP_exports, {
|
|
21
21
|
MigrateResolve: () => MigrateResolve
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_X6X2YOMP_exports);
|
|
24
24
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
25
25
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
26
26
|
var import_chunk_D6LYHB65 = require("./chunk-D6LYHB65.js");
|
|
@@ -83,7 +83,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
83
83
|
if (args["--help"]) {
|
|
84
84
|
return this.help();
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
(0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
87
87
|
const schemaContext = await (0, import_internals.loadSchemaContext)({
|
|
88
88
|
schemaPathFromArg: args["--schema"],
|
|
89
89
|
schemaPathFromConfig: config.schema,
|
|
@@ -26,11 +26,11 @@ 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_XJTAAJKM_exports = {};
|
|
30
|
+
__export(chunk_XJTAAJKM_exports, {
|
|
31
31
|
MigrateDeploy: () => MigrateDeploy
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_XJTAAJKM_exports);
|
|
34
34
|
var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
|
|
35
35
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
36
36
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
@@ -83,7 +83,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
|
83
83
|
if (args["--help"]) {
|
|
84
84
|
return this.help();
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
(0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
87
87
|
const schemaContext = await (0, import_internals.loadSchemaContext)({
|
|
88
88
|
schemaPathFromArg: args["--schema"],
|
|
89
89
|
schemaPathFromConfig: config.schema,
|
package/dist/commands/DbDrop.js
CHANGED
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var DbDrop_exports = {};
|
|
20
20
|
__export(DbDrop_exports, {
|
|
21
|
-
DbDrop: () =>
|
|
21
|
+
DbDrop: () => import_chunk_43R3GFIU.DbDrop
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(DbDrop_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_43R3GFIU = require("../chunk-43R3GFIU.js");
|
|
25
25
|
var import_chunk_IHDN3L3R = require("../chunk-IHDN3L3R.js");
|
|
26
26
|
var import_chunk_FBDQVK4W = require("../chunk-FBDQVK4W.js");
|
|
27
27
|
var import_chunk_3WC4XD74 = require("../chunk-3WC4XD74.js");
|
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var DbExecute_exports = {};
|
|
20
20
|
__export(DbExecute_exports, {
|
|
21
|
-
DbExecute: () =>
|
|
21
|
+
DbExecute: () => import_chunk_WYJ3CJCO.DbExecute
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(DbExecute_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_WYJ3CJCO = require("../chunk-WYJ3CJCO.js");
|
|
25
25
|
var import_chunk_D6LYHB65 = require("../chunk-D6LYHB65.js");
|
|
26
26
|
var import_chunk_T64SUJ5L = require("../chunk-T64SUJ5L.js");
|
|
27
27
|
var import_chunk_VV4M6AN7 = require("../chunk-VV4M6AN7.js");
|
package/dist/commands/DbPull.js
CHANGED
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var DbPull_exports = {};
|
|
20
20
|
__export(DbPull_exports, {
|
|
21
|
-
DbPull: () =>
|
|
21
|
+
DbPull: () => import_chunk_NN4KNZIO.DbPull
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(DbPull_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_NN4KNZIO = require("../chunk-NN4KNZIO.js");
|
|
25
25
|
var import_chunk_VU5BLQUI = require("../chunk-VU5BLQUI.js");
|
|
26
26
|
var import_chunk_AHJ2N6BJ = require("../chunk-AHJ2N6BJ.js");
|
|
27
27
|
var import_chunk_JZ75RIMZ = require("../chunk-JZ75RIMZ.js");
|
package/dist/commands/DbPush.js
CHANGED
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var DbPush_exports = {};
|
|
20
20
|
__export(DbPush_exports, {
|
|
21
|
-
DbPush: () =>
|
|
21
|
+
DbPush: () => import_chunk_DKIKZTVE.DbPush
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(DbPush_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_DKIKZTVE = require("../chunk-DKIKZTVE.js");
|
|
25
25
|
var import_chunk_FBDQVK4W = require("../chunk-FBDQVK4W.js");
|
|
26
26
|
var import_chunk_3WC4XD74 = require("../chunk-3WC4XD74.js");
|
|
27
27
|
var import_chunk_2FXU5NZQ = require("../chunk-2FXU5NZQ.js");
|
package/dist/commands/DbSeed.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 DbSeed_exports = {};
|
|
20
20
|
__export(DbSeed_exports, {
|
|
21
|
-
DbSeed: () =>
|
|
21
|
+
DbSeed: () => import_chunk_W2NKGYXF.DbSeed
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(DbSeed_exports);
|
|
24
|
-
var
|
|
25
|
-
var
|
|
24
|
+
var import_chunk_W2NKGYXF = require("../chunk-W2NKGYXF.js");
|
|
25
|
+
var import_chunk_L7EZFBB4 = require("../chunk-L7EZFBB4.js");
|
|
26
26
|
var import_chunk_3WDCTXHL = require("../chunk-3WDCTXHL.js");
|
|
27
27
|
var import_chunk_SKRR5WT4 = require("../chunk-SKRR5WT4.js");
|
|
28
28
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var MigrateDeploy_exports = {};
|
|
20
20
|
__export(MigrateDeploy_exports, {
|
|
21
|
-
MigrateDeploy: () =>
|
|
21
|
+
MigrateDeploy: () => import_chunk_XJTAAJKM.MigrateDeploy
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(MigrateDeploy_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_XJTAAJKM = require("../chunk-XJTAAJKM.js");
|
|
25
25
|
var import_chunk_KRQEFTDT = require("../chunk-KRQEFTDT.js");
|
|
26
26
|
var import_chunk_UP6FVCDK = require("../chunk-UP6FVCDK.js");
|
|
27
27
|
var import_chunk_2R6DII47 = require("../chunk-2R6DII47.js");
|
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var MigrateDev_exports = {};
|
|
20
20
|
__export(MigrateDev_exports, {
|
|
21
|
-
MigrateDev: () =>
|
|
21
|
+
MigrateDev: () => import_chunk_6EUJATSC.MigrateDev
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(MigrateDev_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_6EUJATSC = require("../chunk-6EUJATSC.js");
|
|
25
25
|
var import_chunk_C3722PDA = require("../chunk-C3722PDA.js");
|
|
26
26
|
var import_chunk_7CQBDP4H = require("../chunk-7CQBDP4H.js");
|
|
27
27
|
var import_chunk_KRQEFTDT = require("../chunk-KRQEFTDT.js");
|
|
@@ -31,7 +31,7 @@ var import_chunk_3WC4XD74 = require("../chunk-3WC4XD74.js");
|
|
|
31
31
|
var import_chunk_2FXU5NZQ = require("../chunk-2FXU5NZQ.js");
|
|
32
32
|
var import_chunk_74LUB4XX = require("../chunk-74LUB4XX.js");
|
|
33
33
|
var import_chunk_TWPTG4XS = require("../chunk-TWPTG4XS.js");
|
|
34
|
-
var
|
|
34
|
+
var import_chunk_L7EZFBB4 = require("../chunk-L7EZFBB4.js");
|
|
35
35
|
var import_chunk_D6LYHB65 = require("../chunk-D6LYHB65.js");
|
|
36
36
|
var import_chunk_T64SUJ5L = require("../chunk-T64SUJ5L.js");
|
|
37
37
|
var import_chunk_VV4M6AN7 = require("../chunk-VV4M6AN7.js");
|
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var MigrateDiff_exports = {};
|
|
20
20
|
__export(MigrateDiff_exports, {
|
|
21
|
-
MigrateDiff: () =>
|
|
21
|
+
MigrateDiff: () => import_chunk_B6XUXZTV.MigrateDiff
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(MigrateDiff_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_B6XUXZTV = require("../chunk-B6XUXZTV.js");
|
|
25
25
|
var import_chunk_VAJ4VX67 = require("../chunk-VAJ4VX67.js");
|
|
26
26
|
var import_chunk_D6LYHB65 = require("../chunk-D6LYHB65.js");
|
|
27
27
|
var import_chunk_T64SUJ5L = require("../chunk-T64SUJ5L.js");
|
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var MigrateReset_exports = {};
|
|
20
20
|
__export(MigrateReset_exports, {
|
|
21
|
-
MigrateReset: () =>
|
|
21
|
+
MigrateReset: () => import_chunk_JSXDRFVP.MigrateReset
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(MigrateReset_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_JSXDRFVP = require("../chunk-JSXDRFVP.js");
|
|
25
25
|
var import_chunk_KRQEFTDT = require("../chunk-KRQEFTDT.js");
|
|
26
26
|
var import_chunk_UP6FVCDK = require("../chunk-UP6FVCDK.js");
|
|
27
27
|
var import_chunk_2R6DII47 = require("../chunk-2R6DII47.js");
|
|
@@ -30,7 +30,7 @@ var import_chunk_3WC4XD74 = require("../chunk-3WC4XD74.js");
|
|
|
30
30
|
var import_chunk_2FXU5NZQ = require("../chunk-2FXU5NZQ.js");
|
|
31
31
|
var import_chunk_74LUB4XX = require("../chunk-74LUB4XX.js");
|
|
32
32
|
var import_chunk_TWPTG4XS = require("../chunk-TWPTG4XS.js");
|
|
33
|
-
var
|
|
33
|
+
var import_chunk_L7EZFBB4 = require("../chunk-L7EZFBB4.js");
|
|
34
34
|
var import_chunk_D6LYHB65 = require("../chunk-D6LYHB65.js");
|
|
35
35
|
var import_chunk_T64SUJ5L = require("../chunk-T64SUJ5L.js");
|
|
36
36
|
var import_chunk_VV4M6AN7 = require("../chunk-VV4M6AN7.js");
|
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var MigrateResolve_exports = {};
|
|
20
20
|
__export(MigrateResolve_exports, {
|
|
21
|
-
MigrateResolve: () =>
|
|
21
|
+
MigrateResolve: () => import_chunk_X6X2YOMP.MigrateResolve
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(MigrateResolve_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_X6X2YOMP = require("../chunk-X6X2YOMP.js");
|
|
25
25
|
var import_chunk_2FXU5NZQ = require("../chunk-2FXU5NZQ.js");
|
|
26
26
|
var import_chunk_74LUB4XX = require("../chunk-74LUB4XX.js");
|
|
27
27
|
var import_chunk_TWPTG4XS = require("../chunk-TWPTG4XS.js");
|
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var MigrateStatus_exports = {};
|
|
20
20
|
__export(MigrateStatus_exports, {
|
|
21
|
-
MigrateStatus: () =>
|
|
21
|
+
MigrateStatus: () => import_chunk_IW6ZMFN5.MigrateStatus
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(MigrateStatus_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_IW6ZMFN5 = require("../chunk-IW6ZMFN5.js");
|
|
25
25
|
var import_chunk_2FXU5NZQ = require("../chunk-2FXU5NZQ.js");
|
|
26
26
|
var import_chunk_74LUB4XX = require("../chunk-74LUB4XX.js");
|
|
27
27
|
var import_chunk_TWPTG4XS = require("../chunk-TWPTG4XS.js");
|
package/dist/index.js
CHANGED
|
@@ -19,20 +19,20 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var index_exports = {};
|
|
20
20
|
__export(index_exports, {
|
|
21
21
|
DbCommand: () => import_chunk_EJG7GKM7.DbCommand,
|
|
22
|
-
DbDrop: () =>
|
|
23
|
-
DbExecute: () =>
|
|
24
|
-
DbPull: () =>
|
|
25
|
-
DbPush: () =>
|
|
26
|
-
DbSeed: () =>
|
|
22
|
+
DbDrop: () => import_chunk_43R3GFIU.DbDrop,
|
|
23
|
+
DbExecute: () => import_chunk_WYJ3CJCO.DbExecute,
|
|
24
|
+
DbPull: () => import_chunk_NN4KNZIO.DbPull,
|
|
25
|
+
DbPush: () => import_chunk_DKIKZTVE.DbPush,
|
|
26
|
+
DbSeed: () => import_chunk_W2NKGYXF.DbSeed,
|
|
27
27
|
EngineResults: () => import_chunk_LVR7W5DD.EngineResults,
|
|
28
28
|
Migrate: () => import_chunk_D6LYHB65.Migrate,
|
|
29
29
|
MigrateCommand: () => import_chunk_LLO7YF56.MigrateCommand,
|
|
30
|
-
MigrateDeploy: () =>
|
|
31
|
-
MigrateDev: () =>
|
|
32
|
-
MigrateDiff: () =>
|
|
33
|
-
MigrateReset: () =>
|
|
34
|
-
MigrateResolve: () =>
|
|
35
|
-
MigrateStatus: () =>
|
|
30
|
+
MigrateDeploy: () => import_chunk_XJTAAJKM.MigrateDeploy,
|
|
31
|
+
MigrateDev: () => import_chunk_6EUJATSC.MigrateDev,
|
|
32
|
+
MigrateDiff: () => import_chunk_B6XUXZTV.MigrateDiff,
|
|
33
|
+
MigrateReset: () => import_chunk_JSXDRFVP.MigrateReset,
|
|
34
|
+
MigrateResolve: () => import_chunk_X6X2YOMP.MigrateResolve,
|
|
35
|
+
MigrateStatus: () => import_chunk_IW6ZMFN5.MigrateStatus,
|
|
36
36
|
SchemaEngineCLI: () => import_chunk_GSX25HRL.SchemaEngineCLI,
|
|
37
37
|
SchemaEngineWasm: () => import_chunk_22YP3RXZ.SchemaEngineWasm,
|
|
38
38
|
byline: () => import_chunk_L6KOIJJ5.byline,
|
|
@@ -42,23 +42,23 @@ __export(index_exports, {
|
|
|
42
42
|
module.exports = __toCommonJS(index_exports);
|
|
43
43
|
var import_chunk_O35BTK6Y = require("./chunk-O35BTK6Y.js");
|
|
44
44
|
var import_chunk_LVR7W5DD = require("./chunk-LVR7W5DD.js");
|
|
45
|
-
var
|
|
45
|
+
var import_chunk_43R3GFIU = require("./chunk-43R3GFIU.js");
|
|
46
46
|
var import_chunk_IHDN3L3R = require("./chunk-IHDN3L3R.js");
|
|
47
47
|
var import_chunk_NB4FRYRQ = require("./chunk-NB4FRYRQ.js");
|
|
48
|
-
var
|
|
49
|
-
var
|
|
48
|
+
var import_chunk_XJTAAJKM = require("./chunk-XJTAAJKM.js");
|
|
49
|
+
var import_chunk_6EUJATSC = require("./chunk-6EUJATSC.js");
|
|
50
50
|
var import_chunk_C3722PDA = require("./chunk-C3722PDA.js");
|
|
51
51
|
var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
|
|
52
|
-
var
|
|
52
|
+
var import_chunk_B6XUXZTV = require("./chunk-B6XUXZTV.js");
|
|
53
53
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
54
|
-
var
|
|
54
|
+
var import_chunk_JSXDRFVP = require("./chunk-JSXDRFVP.js");
|
|
55
55
|
var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
|
|
56
56
|
var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
|
|
57
|
-
var
|
|
58
|
-
var
|
|
57
|
+
var import_chunk_X6X2YOMP = require("./chunk-X6X2YOMP.js");
|
|
58
|
+
var import_chunk_IW6ZMFN5 = require("./chunk-IW6ZMFN5.js");
|
|
59
59
|
var import_chunk_EJG7GKM7 = require("./chunk-EJG7GKM7.js");
|
|
60
|
-
var
|
|
61
|
-
var
|
|
60
|
+
var import_chunk_WYJ3CJCO = require("./chunk-WYJ3CJCO.js");
|
|
61
|
+
var import_chunk_NN4KNZIO = require("./chunk-NN4KNZIO.js");
|
|
62
62
|
var import_chunk_VU5BLQUI = require("./chunk-VU5BLQUI.js");
|
|
63
63
|
var import_chunk_AHJ2N6BJ = require("./chunk-AHJ2N6BJ.js");
|
|
64
64
|
var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
|
|
@@ -68,14 +68,14 @@ var import_chunk_JFKDSUIE = require("./chunk-JFKDSUIE.js");
|
|
|
68
68
|
var import_chunk_AI6DH66U = require("./chunk-AI6DH66U.js");
|
|
69
69
|
var import_chunk_LGYRZ6CV = require("./chunk-LGYRZ6CV.js");
|
|
70
70
|
var import_chunk_2R6DII47 = require("./chunk-2R6DII47.js");
|
|
71
|
-
var
|
|
71
|
+
var import_chunk_DKIKZTVE = require("./chunk-DKIKZTVE.js");
|
|
72
72
|
var import_chunk_FBDQVK4W = require("./chunk-FBDQVK4W.js");
|
|
73
73
|
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
74
74
|
var import_chunk_2FXU5NZQ = require("./chunk-2FXU5NZQ.js");
|
|
75
75
|
var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
|
|
76
76
|
var import_chunk_TWPTG4XS = require("./chunk-TWPTG4XS.js");
|
|
77
|
-
var
|
|
78
|
-
var
|
|
77
|
+
var import_chunk_W2NKGYXF = require("./chunk-W2NKGYXF.js");
|
|
78
|
+
var import_chunk_L7EZFBB4 = require("./chunk-L7EZFBB4.js");
|
|
79
79
|
var import_chunk_LLO7YF56 = require("./chunk-LLO7YF56.js");
|
|
80
80
|
var import_chunk_D6LYHB65 = require("./chunk-D6LYHB65.js");
|
|
81
81
|
var import_chunk_T64SUJ5L = require("./chunk-T64SUJ5L.js");
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import type { GetSchemaResult
|
|
2
|
-
type PackageJsonLookupResult = SuccessfulLookupResult | {
|
|
3
|
-
ok: false;
|
|
4
|
-
error: {
|
|
5
|
-
kind: 'PackageJsonNotConfigured';
|
|
6
|
-
};
|
|
7
|
-
};
|
|
1
|
+
import type { GetSchemaResult } from '@prisma/schema-files-loader';
|
|
8
2
|
export type GetSchemaOptions = {
|
|
9
3
|
cwd?: string;
|
|
10
4
|
argumentName?: string;
|
|
@@ -28,11 +22,3 @@ export declare function getSchemaWithPath(schemaPathFromArgs?: string, schemaPat
|
|
|
28
22
|
*/
|
|
29
23
|
export declare function getSchemaWithPathOptional(schemaPathFromArgs?: string, schemaPathFromConfig?: string, { cwd, argumentName }?: GetSchemaOptions): Promise<GetSchemaResult | null>;
|
|
30
24
|
export declare function printSchemaLoadedMessage(schemaPath: string): void;
|
|
31
|
-
/**
|
|
32
|
-
* Trying to access this function results in a deprecation warning.
|
|
33
|
-
* Users should be instructed to use the Prisma config file instead.
|
|
34
|
-
* See: https://pris.ly/prisma-config.
|
|
35
|
-
* @deprecated
|
|
36
|
-
*/
|
|
37
|
-
export declare function getSchemaFromPackageJson(cwd: string): Promise<PackageJsonLookupResult>;
|
|
38
|
-
export {};
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* User's Prisma configuration should live in `prisma.config.ts` instead of `package.json#prisma`.
|
|
3
|
-
* See: https://pris.ly/prisma-config.
|
|
4
|
-
* @deprecated
|
|
5
|
-
*/
|
|
6
|
-
export declare function getSeedCommandFromPackageJson(cwd: string): Promise<string | null>;
|
|
7
1
|
export declare function executeSeedCommand({ commandFromConfig, extraArgs, }: {
|
|
8
2
|
commandFromConfig: string;
|
|
9
3
|
extraArgs?: string;
|
package/dist/utils/seed.js
CHANGED
|
@@ -18,11 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var seed_exports = {};
|
|
20
20
|
__export(seed_exports, {
|
|
21
|
-
executeSeedCommand: () =>
|
|
22
|
-
getSeedCommandFromPackageJson: () => import_chunk_PHXLQVPT.getSeedCommandFromPackageJson
|
|
21
|
+
executeSeedCommand: () => import_chunk_L7EZFBB4.executeSeedCommand
|
|
23
22
|
});
|
|
24
23
|
module.exports = __toCommonJS(seed_exports);
|
|
25
|
-
var
|
|
24
|
+
var import_chunk_L7EZFBB4 = require("../chunk-L7EZFBB4.js");
|
|
26
25
|
var import_chunk_3WDCTXHL = require("../chunk-3WDCTXHL.js");
|
|
27
26
|
var import_chunk_SKRR5WT4 = require("../chunk-SKRR5WT4.js");
|
|
28
27
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/migrate",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.19.0-integration-next.1",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/migrate/src/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@swc/core": "1.11.5",
|
|
22
22
|
"@swc/jest": "0.2.37",
|
|
23
23
|
"@types/jest": "29.5.14",
|
|
24
|
-
"@types/node": "
|
|
24
|
+
"@types/node": "~20.19.0",
|
|
25
25
|
"@types/pg": "8.11.11",
|
|
26
26
|
"@types/prompts": "2.4.9",
|
|
27
27
|
"@types/sqlite3": "3.1.11",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"tempy": "1.0.1",
|
|
45
45
|
"ts-pattern": "5.6.2",
|
|
46
46
|
"typescript": "5.4.5",
|
|
47
|
-
"@prisma/adapter-libsql": "6.
|
|
47
|
+
"@prisma/adapter-libsql": "6.19.0-integration-next.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@prisma/internals": "*"
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@prisma/engines-version": "6.18.0-8.34b5a692b7bd79939a9a2c3ef97d816e749cda2f",
|
|
54
54
|
"prompts": "2.4.2",
|
|
55
|
-
"@prisma/client-generator-registry": "6.
|
|
56
|
-
"@prisma/config": "6.
|
|
57
|
-
"@prisma/
|
|
58
|
-
"@prisma/
|
|
59
|
-
"@prisma/get-platform": "6.
|
|
60
|
-
"@prisma/
|
|
61
|
-
"@prisma/
|
|
55
|
+
"@prisma/client-generator-registry": "6.19.0-integration-next.1",
|
|
56
|
+
"@prisma/config": "6.19.0-integration-next.1",
|
|
57
|
+
"@prisma/debug": "6.19.0-integration-next.1",
|
|
58
|
+
"@prisma/generator": "6.19.0-integration-next.1",
|
|
59
|
+
"@prisma/get-platform": "6.19.0-integration-next.1",
|
|
60
|
+
"@prisma/driver-adapter-utils": "6.19.0-integration-next.1",
|
|
61
|
+
"@prisma/internals": "6.19.0-integration-next.1"
|
|
62
62
|
},
|
|
63
63
|
"files": [
|
|
64
64
|
"README.md",
|