@prisma/migrate 6.6.0-dev.21 → 6.6.0-dev.23
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 +10 -10
- package/dist/{chunk-WG2SP5KE.js → chunk-3WTXX6CQ.js} +15 -332
- package/dist/{chunk-CLANLLK4.js → chunk-7X4MPZIO.js} +4 -4
- package/dist/{chunk-UKVQP5ES.js → chunk-F62CN63F.js} +7 -14
- package/dist/{chunk-2VSCT73F.js → chunk-J4DAOTRR.js} +6 -9
- package/dist/{chunk-DNOOU7FC.js → chunk-ODH7XYW7.js} +6 -9
- package/dist/{chunk-B3XQ3BCN.js → chunk-ZYT5KWQF.js} +5 -5
- package/dist/commands/DbSeed.js +3 -3
- package/dist/commands/MigrateDev.js +3 -3
- package/dist/commands/MigrateDiff.js +2 -2
- package/dist/commands/MigrateReset.js +3 -3
- package/dist/index.js +9 -9
- package/dist/migrate/src/utils/seed.d.ts +0 -2
- package/dist/utils/seed.js +3 -5
- package/package.json +7 -7
package/dist/bin.js
CHANGED
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
));
|
|
25
25
|
var import_chunk_VZ23KD5C = require("./chunk-VZ23KD5C.js");
|
|
26
26
|
var import_chunk_MKK3GSDF = require("./chunk-MKK3GSDF.js");
|
|
27
|
-
var
|
|
27
|
+
var import_chunk_J4DAOTRR = require("./chunk-J4DAOTRR.js");
|
|
28
28
|
var import_chunk_3OQIC7NW = require("./chunk-3OQIC7NW.js");
|
|
29
29
|
var import_chunk_NAXFX7K7 = require("./chunk-NAXFX7K7.js");
|
|
30
30
|
var import_chunk_MREGRQDD = require("./chunk-MREGRQDD.js");
|
|
@@ -38,17 +38,17 @@ var import_chunk_RR6BKMNO = require("./chunk-RR6BKMNO.js");
|
|
|
38
38
|
var import_chunk_JFKDSUIE = require("./chunk-JFKDSUIE.js");
|
|
39
39
|
var import_chunk_LGYRZ6CV = require("./chunk-LGYRZ6CV.js");
|
|
40
40
|
var import_chunk_DAYMMAJB = require("./chunk-DAYMMAJB.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_F62CN63F = require("./chunk-F62CN63F.js");
|
|
42
42
|
var import_chunk_VVKOFN3Y = require("./chunk-VVKOFN3Y.js");
|
|
43
43
|
var import_chunk_PW3LNSDM = require("./chunk-PW3LNSDM.js");
|
|
44
|
-
var
|
|
44
|
+
var import_chunk_ODH7XYW7 = require("./chunk-ODH7XYW7.js");
|
|
45
45
|
var import_chunk_OCQGHQED = require("./chunk-OCQGHQED.js");
|
|
46
46
|
var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
|
|
47
|
-
var
|
|
47
|
+
var import_chunk_3WTXX6CQ = require("./chunk-3WTXX6CQ.js");
|
|
48
48
|
var import_chunk_255BRND3 = require("./chunk-255BRND3.js");
|
|
49
49
|
var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
|
|
50
50
|
var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
|
|
51
|
-
var
|
|
51
|
+
var import_chunk_ZYT5KWQF = require("./chunk-ZYT5KWQF.js");
|
|
52
52
|
var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
|
|
53
53
|
var import_chunk_YYPMC5FN = require("./chunk-YYPMC5FN.js");
|
|
54
54
|
var import_chunk_DLLXDCI2 = require("./chunk-DLLXDCI2.js");
|
|
@@ -69,7 +69,7 @@ var import_config = require("@prisma/config");
|
|
|
69
69
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
70
70
|
var import_engines_version = require("@prisma/engines-version");
|
|
71
71
|
var import_internals = require("@prisma/internals");
|
|
72
|
-
var version = "6.6.0-dev.
|
|
72
|
+
var version = "6.6.0-dev.23";
|
|
73
73
|
process.on("uncaughtException", (e) => {
|
|
74
74
|
console.log(e);
|
|
75
75
|
});
|
|
@@ -91,19 +91,19 @@ var args = (0, import_internals.arg)(
|
|
|
91
91
|
async function main() {
|
|
92
92
|
const cli = import_chunk_VZ23KD5C.CLI.new({
|
|
93
93
|
migrate: import_chunk_VVKOFN3Y.MigrateCommand.new({
|
|
94
|
-
dev:
|
|
94
|
+
dev: import_chunk_ODH7XYW7.MigrateDev.new(),
|
|
95
95
|
status: import_chunk_NAXFX7K7.MigrateStatus.new(),
|
|
96
96
|
resolve: import_chunk_3OQIC7NW.MigrateResolve.new(),
|
|
97
|
-
reset:
|
|
97
|
+
reset: import_chunk_J4DAOTRR.MigrateReset.new(),
|
|
98
98
|
deploy: import_chunk_PW3LNSDM.MigrateDeploy.new(),
|
|
99
|
-
diff:
|
|
99
|
+
diff: import_chunk_ZYT5KWQF.MigrateDiff.new()
|
|
100
100
|
}),
|
|
101
101
|
db: import_chunk_W2SZNLK4.DbCommand.new({
|
|
102
102
|
execute: import_chunk_MREGRQDD.DbExecute.new(),
|
|
103
103
|
pull: import_chunk_IY67YUOD.DbPull.new(),
|
|
104
104
|
push: import_chunk_DAYMMAJB.DbPush.new(),
|
|
105
105
|
// drop: DbDrop.new(),
|
|
106
|
-
seed:
|
|
106
|
+
seed: import_chunk_F62CN63F.DbSeed.new()
|
|
107
107
|
})
|
|
108
108
|
});
|
|
109
109
|
const { config, error } = await (0, import_config.loadConfigFromFile)({ configFile: args["--config"] });
|
|
@@ -26,26 +26,23 @@ 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_3WTXX6CQ_exports = {};
|
|
30
|
+
__export(chunk_3WTXX6CQ_exports, {
|
|
31
31
|
executeSeedCommand: () => executeSeedCommand,
|
|
32
|
-
getSeedCommandFromPackageJson: () => getSeedCommandFromPackageJson
|
|
33
|
-
legacyTsNodeScriptWarning: () => legacyTsNodeScriptWarning,
|
|
34
|
-
verifySeedConfigAndReturnMessage: () => verifySeedConfigAndReturnMessage
|
|
32
|
+
getSeedCommandFromPackageJson: () => getSeedCommandFromPackageJson
|
|
35
33
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_3WTXX6CQ_exports);
|
|
37
35
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
38
36
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
39
37
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
40
38
|
var import_internals = require("@prisma/internals");
|
|
41
|
-
var import_fs = __toESM(require("fs"));
|
|
42
39
|
var import_path = __toESM(require("path"));
|
|
43
40
|
var require_windows = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
44
41
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module2) {
|
|
45
42
|
"use strict";
|
|
46
43
|
module2.exports = isexe;
|
|
47
44
|
isexe.sync = sync;
|
|
48
|
-
var
|
|
45
|
+
var fs = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
|
49
46
|
function checkPathExt(path2, options) {
|
|
50
47
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
51
48
|
if (!pathext) {
|
|
@@ -70,12 +67,12 @@ var require_windows = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
70
67
|
return checkPathExt(path2, options);
|
|
71
68
|
}
|
|
72
69
|
function isexe(path2, options, cb) {
|
|
73
|
-
|
|
70
|
+
fs.stat(path2, function(er, stat) {
|
|
74
71
|
cb(er, er ? false : checkStat(stat, path2, options));
|
|
75
72
|
});
|
|
76
73
|
}
|
|
77
74
|
function sync(path2, options) {
|
|
78
|
-
return checkStat(
|
|
75
|
+
return checkStat(fs.statSync(path2), path2, options);
|
|
79
76
|
}
|
|
80
77
|
}
|
|
81
78
|
});
|
|
@@ -84,14 +81,14 @@ var require_mode = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
84
81
|
"use strict";
|
|
85
82
|
module2.exports = isexe;
|
|
86
83
|
isexe.sync = sync;
|
|
87
|
-
var
|
|
84
|
+
var fs = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
|
88
85
|
function isexe(path2, options, cb) {
|
|
89
|
-
|
|
86
|
+
fs.stat(path2, function(er, stat) {
|
|
90
87
|
cb(er, er ? false : checkStat(stat, options));
|
|
91
88
|
});
|
|
92
89
|
}
|
|
93
90
|
function sync(path2, options) {
|
|
94
|
-
return checkStat(
|
|
91
|
+
return checkStat(fs.statSync(path2), options);
|
|
95
92
|
}
|
|
96
93
|
function checkStat(stat, options) {
|
|
97
94
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -114,7 +111,7 @@ var require_mode = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
114
111
|
var require_isexe = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
115
112
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module2) {
|
|
116
113
|
"use strict";
|
|
117
|
-
var
|
|
114
|
+
var fs = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
|
118
115
|
var core;
|
|
119
116
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
120
117
|
core = require_windows();
|
|
@@ -365,16 +362,16 @@ var require_shebang_command = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
365
362
|
var require_readShebang = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
366
363
|
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
|
|
367
364
|
"use strict";
|
|
368
|
-
var
|
|
365
|
+
var fs = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
|
369
366
|
var shebangCommand = require_shebang_command();
|
|
370
367
|
function readShebang(command) {
|
|
371
368
|
const size = 150;
|
|
372
369
|
const buffer = Buffer.alloc(size);
|
|
373
370
|
let fd;
|
|
374
371
|
try {
|
|
375
|
-
fd =
|
|
376
|
-
|
|
377
|
-
|
|
372
|
+
fd = fs.openSync(command, "r");
|
|
373
|
+
fs.readSync(fd, buffer, 0, size, 0);
|
|
374
|
+
fs.closeSync(fd);
|
|
378
375
|
} catch (e) {
|
|
379
376
|
}
|
|
380
377
|
return shebangCommand(buffer.toString());
|
|
@@ -1934,274 +1931,8 @@ var require_execa = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1934
1931
|
};
|
|
1935
1932
|
}
|
|
1936
1933
|
});
|
|
1937
|
-
var require_path_exists = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1938
|
-
"../../node_modules/.pnpm/path-exists@3.0.0/node_modules/path-exists/index.js"(exports, module2) {
|
|
1939
|
-
"use strict";
|
|
1940
|
-
var fs2 = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
|
1941
|
-
module2.exports = (fp) => new Promise((resolve) => {
|
|
1942
|
-
fs2.access(fp, (err) => {
|
|
1943
|
-
resolve(!err);
|
|
1944
|
-
});
|
|
1945
|
-
});
|
|
1946
|
-
module2.exports.sync = (fp) => {
|
|
1947
|
-
try {
|
|
1948
|
-
fs2.accessSync(fp);
|
|
1949
|
-
return true;
|
|
1950
|
-
} catch (err) {
|
|
1951
|
-
return false;
|
|
1952
|
-
}
|
|
1953
|
-
};
|
|
1954
|
-
}
|
|
1955
|
-
});
|
|
1956
|
-
var require_p_try = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1957
|
-
"../../node_modules/.pnpm/p-try@2.2.0/node_modules/p-try/index.js"(exports, module2) {
|
|
1958
|
-
"use strict";
|
|
1959
|
-
var pTry = (fn, ...arguments_) => new Promise((resolve) => {
|
|
1960
|
-
resolve(fn(...arguments_));
|
|
1961
|
-
});
|
|
1962
|
-
module2.exports = pTry;
|
|
1963
|
-
module2.exports.default = pTry;
|
|
1964
|
-
}
|
|
1965
|
-
});
|
|
1966
|
-
var require_p_limit = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1967
|
-
"../../node_modules/.pnpm/p-limit@2.3.0/node_modules/p-limit/index.js"(exports, module2) {
|
|
1968
|
-
"use strict";
|
|
1969
|
-
var pTry = require_p_try();
|
|
1970
|
-
var pLimit = (concurrency) => {
|
|
1971
|
-
if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
|
|
1972
|
-
return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));
|
|
1973
|
-
}
|
|
1974
|
-
const queue = [];
|
|
1975
|
-
let activeCount = 0;
|
|
1976
|
-
const next = () => {
|
|
1977
|
-
activeCount--;
|
|
1978
|
-
if (queue.length > 0) {
|
|
1979
|
-
queue.shift()();
|
|
1980
|
-
}
|
|
1981
|
-
};
|
|
1982
|
-
const run = (fn, resolve, ...args) => {
|
|
1983
|
-
activeCount++;
|
|
1984
|
-
const result = pTry(fn, ...args);
|
|
1985
|
-
resolve(result);
|
|
1986
|
-
result.then(next, next);
|
|
1987
|
-
};
|
|
1988
|
-
const enqueue = (fn, resolve, ...args) => {
|
|
1989
|
-
if (activeCount < concurrency) {
|
|
1990
|
-
run(fn, resolve, ...args);
|
|
1991
|
-
} else {
|
|
1992
|
-
queue.push(run.bind(null, fn, resolve, ...args));
|
|
1993
|
-
}
|
|
1994
|
-
};
|
|
1995
|
-
const generator = (fn, ...args) => new Promise((resolve) => enqueue(fn, resolve, ...args));
|
|
1996
|
-
Object.defineProperties(generator, {
|
|
1997
|
-
activeCount: {
|
|
1998
|
-
get: () => activeCount
|
|
1999
|
-
},
|
|
2000
|
-
pendingCount: {
|
|
2001
|
-
get: () => queue.length
|
|
2002
|
-
},
|
|
2003
|
-
clearQueue: {
|
|
2004
|
-
value: () => {
|
|
2005
|
-
queue.length = 0;
|
|
2006
|
-
}
|
|
2007
|
-
}
|
|
2008
|
-
});
|
|
2009
|
-
return generator;
|
|
2010
|
-
};
|
|
2011
|
-
module2.exports = pLimit;
|
|
2012
|
-
module2.exports.default = pLimit;
|
|
2013
|
-
}
|
|
2014
|
-
});
|
|
2015
|
-
var require_p_locate = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2016
|
-
"../../node_modules/.pnpm/p-locate@3.0.0/node_modules/p-locate/index.js"(exports, module2) {
|
|
2017
|
-
"use strict";
|
|
2018
|
-
var pLimit = require_p_limit();
|
|
2019
|
-
var EndError = class extends Error {
|
|
2020
|
-
constructor(value) {
|
|
2021
|
-
super();
|
|
2022
|
-
this.value = value;
|
|
2023
|
-
}
|
|
2024
|
-
};
|
|
2025
|
-
var testElement = (el, tester) => Promise.resolve(el).then(tester);
|
|
2026
|
-
var finder = (el) => Promise.all(el).then((val) => val[1] === true && Promise.reject(new EndError(val[0])));
|
|
2027
|
-
module2.exports = (iterable, tester, opts) => {
|
|
2028
|
-
opts = Object.assign({
|
|
2029
|
-
concurrency: Infinity,
|
|
2030
|
-
preserveOrder: true
|
|
2031
|
-
}, opts);
|
|
2032
|
-
const limit = pLimit(opts.concurrency);
|
|
2033
|
-
const items = [...iterable].map((el) => [el, limit(testElement, el, tester)]);
|
|
2034
|
-
const checkLimit = pLimit(opts.preserveOrder ? 1 : Infinity);
|
|
2035
|
-
return Promise.all(items.map((el) => checkLimit(finder, el))).then(() => {
|
|
2036
|
-
}).catch((err) => err instanceof EndError ? err.value : Promise.reject(err));
|
|
2037
|
-
};
|
|
2038
|
-
}
|
|
2039
|
-
});
|
|
2040
|
-
var require_locate_path = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2041
|
-
"../../node_modules/.pnpm/locate-path@3.0.0/node_modules/locate-path/index.js"(exports, module2) {
|
|
2042
|
-
"use strict";
|
|
2043
|
-
var path2 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
2044
|
-
var pathExists = require_path_exists();
|
|
2045
|
-
var pLocate = require_p_locate();
|
|
2046
|
-
module2.exports = (iterable, options) => {
|
|
2047
|
-
options = Object.assign({
|
|
2048
|
-
cwd: process.cwd()
|
|
2049
|
-
}, options);
|
|
2050
|
-
return pLocate(iterable, (el) => pathExists(path2.resolve(options.cwd, el)), options);
|
|
2051
|
-
};
|
|
2052
|
-
module2.exports.sync = (iterable, options) => {
|
|
2053
|
-
options = Object.assign({
|
|
2054
|
-
cwd: process.cwd()
|
|
2055
|
-
}, options);
|
|
2056
|
-
for (const el of iterable) {
|
|
2057
|
-
if (pathExists.sync(path2.resolve(options.cwd, el))) {
|
|
2058
|
-
return el;
|
|
2059
|
-
}
|
|
2060
|
-
}
|
|
2061
|
-
};
|
|
2062
|
-
}
|
|
2063
|
-
});
|
|
2064
|
-
var require_find_up = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2065
|
-
"../../node_modules/.pnpm/find-up@3.0.0/node_modules/find-up/index.js"(exports, module2) {
|
|
2066
|
-
"use strict";
|
|
2067
|
-
var path2 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
2068
|
-
var locatePath = require_locate_path();
|
|
2069
|
-
module2.exports = (filename, opts = {}) => {
|
|
2070
|
-
const startDir = path2.resolve(opts.cwd || "");
|
|
2071
|
-
const { root } = path2.parse(startDir);
|
|
2072
|
-
const filenames = [].concat(filename);
|
|
2073
|
-
return new Promise((resolve) => {
|
|
2074
|
-
(function find(dir) {
|
|
2075
|
-
locatePath(filenames, { cwd: dir }).then((file) => {
|
|
2076
|
-
if (file) {
|
|
2077
|
-
resolve(path2.join(dir, file));
|
|
2078
|
-
} else if (dir === root) {
|
|
2079
|
-
resolve(null);
|
|
2080
|
-
} else {
|
|
2081
|
-
find(path2.dirname(dir));
|
|
2082
|
-
}
|
|
2083
|
-
});
|
|
2084
|
-
})(startDir);
|
|
2085
|
-
});
|
|
2086
|
-
};
|
|
2087
|
-
module2.exports.sync = (filename, opts = {}) => {
|
|
2088
|
-
let dir = path2.resolve(opts.cwd || "");
|
|
2089
|
-
const { root } = path2.parse(dir);
|
|
2090
|
-
const filenames = [].concat(filename);
|
|
2091
|
-
while (true) {
|
|
2092
|
-
const file = locatePath.sync(filenames, { cwd: dir });
|
|
2093
|
-
if (file) {
|
|
2094
|
-
return path2.join(dir, file);
|
|
2095
|
-
}
|
|
2096
|
-
if (dir === root) {
|
|
2097
|
-
return null;
|
|
2098
|
-
}
|
|
2099
|
-
dir = path2.dirname(dir);
|
|
2100
|
-
}
|
|
2101
|
-
};
|
|
2102
|
-
}
|
|
2103
|
-
});
|
|
2104
|
-
var require_pkg_up = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2105
|
-
"../../node_modules/.pnpm/pkg-up@3.1.0/node_modules/pkg-up/index.js"(exports, module2) {
|
|
2106
|
-
"use strict";
|
|
2107
|
-
var findUp = require_find_up();
|
|
2108
|
-
module2.exports = async ({ cwd } = {}) => findUp("package.json", { cwd });
|
|
2109
|
-
module2.exports.sync = ({ cwd } = {}) => findUp.sync("package.json", { cwd });
|
|
2110
|
-
}
|
|
2111
|
-
});
|
|
2112
1934
|
var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)(require_execa());
|
|
2113
|
-
var import_pkg_up = (0, import_chunk_WWAWV7DQ.__toESM)(require_pkg_up());
|
|
2114
1935
|
var debug = (0, import_debug.default)("prisma:migrate:seed");
|
|
2115
|
-
async function verifySeedConfigAndReturnMessage(schemaPath) {
|
|
2116
|
-
const cwd = process.cwd();
|
|
2117
|
-
const detected = detectSeedFiles(cwd, schemaPath);
|
|
2118
|
-
const prismaConfig = await (0, import_internals.getPrismaConfigFromPackageJson)(cwd);
|
|
2119
|
-
if (prismaConfig && prismaConfig.data?.seed) {
|
|
2120
|
-
return void 0;
|
|
2121
|
-
}
|
|
2122
|
-
const packageManager = "npm i -D";
|
|
2123
|
-
let message = `${(0, import_chunk_SKRR5WT4.red)(
|
|
2124
|
-
'To configure seeding in your project you need to add a "prisma.seed" property in your package.json with the command to execute it:'
|
|
2125
|
-
)}
|
|
2126
|
-
|
|
2127
|
-
1. Open the package.json of your project
|
|
2128
|
-
`;
|
|
2129
|
-
if (detected.numberOfSeedFiles) {
|
|
2130
|
-
await legacyTsNodeScriptWarning();
|
|
2131
|
-
message += `2. Add the following example to it:`;
|
|
2132
|
-
if (detected.js) {
|
|
2133
|
-
message += `
|
|
2134
|
-
\`\`\`
|
|
2135
|
-
"prisma": {
|
|
2136
|
-
"seed": "node ${detected.js}"
|
|
2137
|
-
}
|
|
2138
|
-
\`\`\`
|
|
2139
|
-
`;
|
|
2140
|
-
} else if (detected.ts) {
|
|
2141
|
-
message += `
|
|
2142
|
-
\`\`\`
|
|
2143
|
-
"prisma": {
|
|
2144
|
-
"seed": "ts-node ${detected.ts}"
|
|
2145
|
-
}
|
|
2146
|
-
\`\`\`
|
|
2147
|
-
If you are using ESM (ECMAScript modules):
|
|
2148
|
-
\`\`\`
|
|
2149
|
-
"prisma": {
|
|
2150
|
-
"seed": "node --loader ts-node/esm ${detected.ts}"
|
|
2151
|
-
}
|
|
2152
|
-
\`\`\`
|
|
2153
|
-
|
|
2154
|
-
3. Install the required dependencies by running:
|
|
2155
|
-
${(0, import_chunk_SKRR5WT4.green)(`${packageManager} ts-node typescript @types/node`)}
|
|
2156
|
-
`;
|
|
2157
|
-
} else if (detected.sh) {
|
|
2158
|
-
message += `
|
|
2159
|
-
\`\`\`
|
|
2160
|
-
"prisma": {
|
|
2161
|
-
"seed": "${detected.sh}"
|
|
2162
|
-
}
|
|
2163
|
-
\`\`\`
|
|
2164
|
-
And run \`chmod +x ${detected.sh}\` to make it executable.`;
|
|
2165
|
-
}
|
|
2166
|
-
} else {
|
|
2167
|
-
message += `2. Add one of the following examples to your package.json:
|
|
2168
|
-
|
|
2169
|
-
${(0, import_chunk_SKRR5WT4.bold)("TypeScript:")}
|
|
2170
|
-
\`\`\`
|
|
2171
|
-
"prisma": {
|
|
2172
|
-
"seed": "ts-node ./prisma/seed.ts"
|
|
2173
|
-
}
|
|
2174
|
-
\`\`\`
|
|
2175
|
-
If you are using ESM (ECMAScript modules):
|
|
2176
|
-
\`\`\`
|
|
2177
|
-
"prisma": {
|
|
2178
|
-
"seed": "node --loader ts-node/esm ./prisma/seed.ts"
|
|
2179
|
-
}
|
|
2180
|
-
\`\`\`
|
|
2181
|
-
|
|
2182
|
-
And install the required dependencies by running:
|
|
2183
|
-
${packageManager} ts-node typescript @types/node
|
|
2184
|
-
|
|
2185
|
-
${(0, import_chunk_SKRR5WT4.bold)("JavaScript:")}
|
|
2186
|
-
\`\`\`
|
|
2187
|
-
"prisma": {
|
|
2188
|
-
"seed": "node ./prisma/seed.js"
|
|
2189
|
-
}
|
|
2190
|
-
\`\`\`
|
|
2191
|
-
|
|
2192
|
-
${(0, import_chunk_SKRR5WT4.bold)("Bash:")}
|
|
2193
|
-
\`\`\`
|
|
2194
|
-
"prisma": {
|
|
2195
|
-
"seed": "./prisma/seed.sh"
|
|
2196
|
-
}
|
|
2197
|
-
\`\`\`
|
|
2198
|
-
And run \`chmod +x prisma/seed.sh\` to make it executable.`;
|
|
2199
|
-
}
|
|
2200
|
-
message += `
|
|
2201
|
-
More information in our documentation:
|
|
2202
|
-
${(0, import_internals.link)("https://pris.ly/d/seeding")}`;
|
|
2203
|
-
return message;
|
|
2204
|
-
}
|
|
2205
1936
|
async function getSeedCommandFromPackageJson(cwd) {
|
|
2206
1937
|
const prismaConfig = await (0, import_internals.getPrismaConfigFromPackageJson)(cwd);
|
|
2207
1938
|
debug({ prismaConfig });
|
|
@@ -2249,51 +1980,3 @@ An error occurred while running the seed command:`)));
|
|
|
2249
1980
|
}
|
|
2250
1981
|
return true;
|
|
2251
1982
|
}
|
|
2252
|
-
function detectSeedFiles(cwd, schemaPath) {
|
|
2253
|
-
let parentDirectory = import_path.default.relative(cwd, import_path.default.join(cwd, "prisma"));
|
|
2254
|
-
if (schemaPath) {
|
|
2255
|
-
parentDirectory = import_path.default.relative(cwd, import_path.default.dirname(schemaPath));
|
|
2256
|
-
}
|
|
2257
|
-
const seedPath = import_path.default.join(parentDirectory, "seed.");
|
|
2258
|
-
const detected = {
|
|
2259
|
-
seedPath,
|
|
2260
|
-
numberOfSeedFiles: 0,
|
|
2261
|
-
js: "",
|
|
2262
|
-
ts: "",
|
|
2263
|
-
sh: ""
|
|
2264
|
-
};
|
|
2265
|
-
const extensions = ["js", "ts", "sh"];
|
|
2266
|
-
for (const extension of extensions) {
|
|
2267
|
-
const fullPath = seedPath + extension;
|
|
2268
|
-
if (!import_fs.default.existsSync(fullPath)) {
|
|
2269
|
-
continue;
|
|
2270
|
-
}
|
|
2271
|
-
detected[extension] = fullPath;
|
|
2272
|
-
detected.numberOfSeedFiles++;
|
|
2273
|
-
}
|
|
2274
|
-
debug({ detected });
|
|
2275
|
-
return detected;
|
|
2276
|
-
}
|
|
2277
|
-
async function legacyTsNodeScriptWarning() {
|
|
2278
|
-
const scripts = await getScriptsFromPackageJson();
|
|
2279
|
-
if (scripts?.["ts-node"]) {
|
|
2280
|
-
import_internals.logger.warn(
|
|
2281
|
-
(0, import_chunk_SKRR5WT4.yellow)(`The "ts-node" script in the package.json is not used anymore since version 3.0 and can now be removed.`)
|
|
2282
|
-
);
|
|
2283
|
-
}
|
|
2284
|
-
return void 0;
|
|
2285
|
-
}
|
|
2286
|
-
async function getScriptsFromPackageJson(cwd = process.cwd()) {
|
|
2287
|
-
try {
|
|
2288
|
-
const pkgJsonPath = await (0, import_pkg_up.default)({ cwd });
|
|
2289
|
-
if (!pkgJsonPath) {
|
|
2290
|
-
return null;
|
|
2291
|
-
}
|
|
2292
|
-
const pkgJsonString = await import_fs.default.promises.readFile(pkgJsonPath, "utf-8");
|
|
2293
|
-
const pkgJson = JSON.parse(pkgJsonString);
|
|
2294
|
-
const { "ts-node": tsnode } = pkgJson.scripts;
|
|
2295
|
-
return { "ts-node": tsnode };
|
|
2296
|
-
} catch {
|
|
2297
|
-
return null;
|
|
2298
|
-
}
|
|
2299
|
-
}
|
|
@@ -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_7X4MPZIO_exports = {};
|
|
30
|
+
__export(chunk_7X4MPZIO_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_7X4MPZIO_exports);
|
|
34
34
|
var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
|
|
35
35
|
var import_chunk_YYPMC5FN = require("./chunk-YYPMC5FN.js");
|
|
36
36
|
var import_chunk_DLLXDCI2 = require("./chunk-DLLXDCI2.js");
|
|
@@ -10344,7 +10344,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10344
10344
|
"@prisma/fetch-engine": "workspace:*",
|
|
10345
10345
|
"@prisma/generator-helper": "workspace:*",
|
|
10346
10346
|
"@prisma/get-platform": "workspace:*",
|
|
10347
|
-
"@prisma/prisma-schema-wasm": "6.6.0-
|
|
10347
|
+
"@prisma/prisma-schema-wasm": "6.6.0-19.2a9de283c7671593633f6552c90867a3e3b4a657",
|
|
10348
10348
|
"@prisma/schema-files-loader": "workspace:*",
|
|
10349
10349
|
arg: "5.0.2",
|
|
10350
10350
|
prompts: "2.4.2"
|
|
@@ -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_F62CN63F_exports = {};
|
|
20
|
+
__export(chunk_F62CN63F_exports, {
|
|
21
21
|
DbSeed: () => DbSeed
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_F62CN63F_exports);
|
|
24
|
+
var import_chunk_3WTXX6CQ = require("./chunk-3WTXX6CQ.js");
|
|
25
25
|
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
26
26
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
27
27
|
var import_internals = require("@prisma/internals");
|
|
@@ -197,17 +197,10 @@ ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db seed -- --arg1 value1 --arg2 va
|
|
|
197
197
|
return this.help();
|
|
198
198
|
}
|
|
199
199
|
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
200
|
-
const seedCommandFromPkgJson = await (0,
|
|
201
|
-
if (!seedCommandFromPkgJson)
|
|
202
|
-
const schemaResult = await (0, import_internals.getSchemaWithPath)(args["--schema"], config.schema);
|
|
203
|
-
const message = await (0, import_chunk_WG2SP5KE.verifySeedConfigAndReturnMessage)(schemaResult?.schemaPath ?? null);
|
|
204
|
-
if (message) {
|
|
205
|
-
throw new Error(message);
|
|
206
|
-
}
|
|
207
|
-
return ``;
|
|
208
|
-
}
|
|
200
|
+
const seedCommandFromPkgJson = await (0, import_chunk_3WTXX6CQ.getSeedCommandFromPackageJson)(process.cwd());
|
|
201
|
+
if (!seedCommandFromPkgJson) return ``;
|
|
209
202
|
const extraArgs = args._.join(" ");
|
|
210
|
-
const successfulSeeding = await (0,
|
|
203
|
+
const successfulSeeding = await (0, import_chunk_3WTXX6CQ.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson, extraArgs });
|
|
211
204
|
if (successfulSeeding) {
|
|
212
205
|
return `
|
|
213
206
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.`;
|
|
@@ -26,12 +26,12 @@ 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_J4DAOTRR_exports = {};
|
|
30
|
+
__export(chunk_J4DAOTRR_exports, {
|
|
31
31
|
MigrateReset: () => MigrateReset
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_J4DAOTRR_exports);
|
|
34
|
+
var import_chunk_3WTXX6CQ = require("./chunk-3WTXX6CQ.js");
|
|
35
35
|
var import_chunk_255BRND3 = require("./chunk-255BRND3.js");
|
|
36
36
|
var import_chunk_N5UBDQRA = require("./chunk-N5UBDQRA.js");
|
|
37
37
|
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
@@ -118,10 +118,10 @@ ${(0, import_chunk_255BRND3.printFilesFromMigrationIds)("migrations", migrationI
|
|
|
118
118
|
await migrate.tryToRunGenerate(datasourceInfo);
|
|
119
119
|
}
|
|
120
120
|
if (!process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
|
|
121
|
-
const seedCommandFromPkgJson = await (0,
|
|
121
|
+
const seedCommandFromPkgJson = await (0, import_chunk_3WTXX6CQ.getSeedCommandFromPackageJson)(process.cwd());
|
|
122
122
|
if (seedCommandFromPkgJson) {
|
|
123
123
|
process.stdout.write("\n");
|
|
124
|
-
const successfulSeeding = await (0,
|
|
124
|
+
const successfulSeeding = await (0, import_chunk_3WTXX6CQ.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
|
|
125
125
|
if (successfulSeeding) {
|
|
126
126
|
process.stdout.write(`
|
|
127
127
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
|
|
@@ -129,9 +129,6 @@ ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been ex
|
|
|
129
129
|
} else {
|
|
130
130
|
process.exit(1);
|
|
131
131
|
}
|
|
132
|
-
} else {
|
|
133
|
-
const { schemaPath: schemaPath2 } = await (0, import_internals.getSchemaWithPath)(args["--schema"], config.schema);
|
|
134
|
-
await (0, import_chunk_WG2SP5KE.verifySeedConfigAndReturnMessage)(schemaPath2);
|
|
135
132
|
}
|
|
136
133
|
}
|
|
137
134
|
return ``;
|
|
@@ -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_ODH7XYW7_exports = {};
|
|
30
|
+
__export(chunk_ODH7XYW7_exports, {
|
|
31
31
|
MigrateDev: () => MigrateDev
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_ODH7XYW7_exports);
|
|
34
34
|
var import_chunk_OCQGHQED = require("./chunk-OCQGHQED.js");
|
|
35
35
|
var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_3WTXX6CQ = require("./chunk-3WTXX6CQ.js");
|
|
37
37
|
var import_chunk_255BRND3 = require("./chunk-255BRND3.js");
|
|
38
38
|
var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
|
|
39
39
|
var import_chunk_N5UBDQRA = require("./chunk-N5UBDQRA.js");
|
|
@@ -244,10 +244,10 @@ ${(0, import_chunk_SKRR5WT4.green)("Your database is now in sync with your schem
|
|
|
244
244
|
}
|
|
245
245
|
if (wasDbCreated && !process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
|
|
246
246
|
try {
|
|
247
|
-
const seedCommandFromPkgJson = await (0,
|
|
247
|
+
const seedCommandFromPkgJson = await (0, import_chunk_3WTXX6CQ.getSeedCommandFromPackageJson)(process.cwd());
|
|
248
248
|
if (seedCommandFromPkgJson) {
|
|
249
249
|
process.stdout.write("\n");
|
|
250
|
-
const successfulSeeding = await (0,
|
|
250
|
+
const successfulSeeding = await (0, import_chunk_3WTXX6CQ.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
|
|
251
251
|
if (successfulSeeding) {
|
|
252
252
|
process.stdout.write(`
|
|
253
253
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
|
|
@@ -255,9 +255,6 @@ ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been ex
|
|
|
255
255
|
} else {
|
|
256
256
|
process.exit(1);
|
|
257
257
|
}
|
|
258
|
-
} else {
|
|
259
|
-
const { schemaPath: schemaPath2 } = await (0, import_internals.getSchemaWithPath)(args["--schema"], config.schema);
|
|
260
|
-
await (0, import_chunk_WG2SP5KE.verifySeedConfigAndReturnMessage)(schemaPath2);
|
|
261
258
|
}
|
|
262
259
|
} catch (e) {
|
|
263
260
|
console.error(e);
|
|
@@ -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_ZYT5KWQF_exports = {};
|
|
30
|
+
__export(chunk_ZYT5KWQF_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_ZYT5KWQF_exports);
|
|
34
34
|
var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
|
|
35
35
|
var import_chunk_YYPMC5FN = require("./chunk-YYPMC5FN.js");
|
|
36
36
|
var import_chunk_DLLXDCI2 = require("./chunk-DLLXDCI2.js");
|
|
@@ -10259,7 +10259,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10259
10259
|
"../internals/package.json"(exports, module2) {
|
|
10260
10260
|
module2.exports = {
|
|
10261
10261
|
name: "@prisma/internals",
|
|
10262
|
-
version: "6.6.0-dev.
|
|
10262
|
+
version: "6.6.0-dev.23",
|
|
10263
10263
|
description: "This package is intended for Prisma's internal use",
|
|
10264
10264
|
main: "dist/index.js",
|
|
10265
10265
|
types: "dist/index.d.ts",
|
|
@@ -10344,7 +10344,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10344
10344
|
"@prisma/fetch-engine": "workspace:*",
|
|
10345
10345
|
"@prisma/generator-helper": "workspace:*",
|
|
10346
10346
|
"@prisma/get-platform": "workspace:*",
|
|
10347
|
-
"@prisma/prisma-schema-wasm": "6.6.0-
|
|
10347
|
+
"@prisma/prisma-schema-wasm": "6.6.0-19.2a9de283c7671593633f6552c90867a3e3b4a657",
|
|
10348
10348
|
"@prisma/schema-files-loader": "workspace:*",
|
|
10349
10349
|
arg: "5.0.2",
|
|
10350
10350
|
prompts: "2.4.2"
|
package/dist/commands/DbSeed.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 DbSeed_exports = {};
|
|
20
20
|
__export(DbSeed_exports, {
|
|
21
|
-
DbSeed: () =>
|
|
21
|
+
DbSeed: () => import_chunk_F62CN63F.DbSeed
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(DbSeed_exports);
|
|
24
|
-
var
|
|
25
|
-
var
|
|
24
|
+
var import_chunk_F62CN63F = require("../chunk-F62CN63F.js");
|
|
25
|
+
var import_chunk_3WTXX6CQ = require("../chunk-3WTXX6CQ.js");
|
|
26
26
|
var import_chunk_SKRR5WT4 = require("../chunk-SKRR5WT4.js");
|
|
27
27
|
var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
|
|
@@ -18,13 +18,13 @@ 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_ODH7XYW7.MigrateDev
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(MigrateDev_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_ODH7XYW7 = require("../chunk-ODH7XYW7.js");
|
|
25
25
|
var import_chunk_OCQGHQED = require("../chunk-OCQGHQED.js");
|
|
26
26
|
var import_chunk_7CQBDP4H = require("../chunk-7CQBDP4H.js");
|
|
27
|
-
var
|
|
27
|
+
var import_chunk_3WTXX6CQ = require("../chunk-3WTXX6CQ.js");
|
|
28
28
|
var import_chunk_255BRND3 = require("../chunk-255BRND3.js");
|
|
29
29
|
var import_chunk_UP6FVCDK = require("../chunk-UP6FVCDK.js");
|
|
30
30
|
var import_chunk_LKTTJWFT = require("../chunk-LKTTJWFT.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_ZYT5KWQF.MigrateDiff
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(MigrateDiff_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_ZYT5KWQF = require("../chunk-ZYT5KWQF.js");
|
|
25
25
|
var import_chunk_A6PMXMMT = require("../chunk-A6PMXMMT.js");
|
|
26
26
|
var import_chunk_YYPMC5FN = require("../chunk-YYPMC5FN.js");
|
|
27
27
|
var import_chunk_DLLXDCI2 = require("../chunk-DLLXDCI2.js");
|
|
@@ -18,11 +18,11 @@ 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_J4DAOTRR.MigrateReset
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(MigrateReset_exports);
|
|
24
|
-
var
|
|
25
|
-
var
|
|
24
|
+
var import_chunk_J4DAOTRR = require("../chunk-J4DAOTRR.js");
|
|
25
|
+
var import_chunk_3WTXX6CQ = require("../chunk-3WTXX6CQ.js");
|
|
26
26
|
var import_chunk_255BRND3 = require("../chunk-255BRND3.js");
|
|
27
27
|
var import_chunk_UP6FVCDK = require("../chunk-UP6FVCDK.js");
|
|
28
28
|
var import_chunk_LKTTJWFT = require("../chunk-LKTTJWFT.js");
|
package/dist/index.js
CHANGED
|
@@ -23,14 +23,14 @@ __export(index_exports, {
|
|
|
23
23
|
DbExecute: () => import_chunk_MREGRQDD.DbExecute,
|
|
24
24
|
DbPull: () => import_chunk_IY67YUOD.DbPull,
|
|
25
25
|
DbPush: () => import_chunk_DAYMMAJB.DbPush,
|
|
26
|
-
DbSeed: () =>
|
|
26
|
+
DbSeed: () => import_chunk_F62CN63F.DbSeed,
|
|
27
27
|
EngineResults: () => import_chunk_LVR7W5DD.EngineResults,
|
|
28
28
|
Migrate: () => import_chunk_N5UBDQRA.Migrate,
|
|
29
29
|
MigrateCommand: () => import_chunk_VVKOFN3Y.MigrateCommand,
|
|
30
30
|
MigrateDeploy: () => import_chunk_PW3LNSDM.MigrateDeploy,
|
|
31
|
-
MigrateDev: () =>
|
|
32
|
-
MigrateDiff: () =>
|
|
33
|
-
MigrateReset: () =>
|
|
31
|
+
MigrateDev: () => import_chunk_ODH7XYW7.MigrateDev,
|
|
32
|
+
MigrateDiff: () => import_chunk_ZYT5KWQF.MigrateDiff,
|
|
33
|
+
MigrateReset: () => import_chunk_J4DAOTRR.MigrateReset,
|
|
34
34
|
MigrateResolve: () => import_chunk_3OQIC7NW.MigrateResolve,
|
|
35
35
|
MigrateStatus: () => import_chunk_NAXFX7K7.MigrateStatus,
|
|
36
36
|
SchemaEngine: () => import_chunk_ZOEKRXDP.SchemaEngine,
|
|
@@ -43,7 +43,7 @@ __export(index_exports, {
|
|
|
43
43
|
module.exports = __toCommonJS(index_exports);
|
|
44
44
|
var import_chunk_IR55GBON = require("./chunk-IR55GBON.js");
|
|
45
45
|
var import_chunk_MKK3GSDF = require("./chunk-MKK3GSDF.js");
|
|
46
|
-
var
|
|
46
|
+
var import_chunk_J4DAOTRR = require("./chunk-J4DAOTRR.js");
|
|
47
47
|
var import_chunk_3OQIC7NW = require("./chunk-3OQIC7NW.js");
|
|
48
48
|
var import_chunk_NAXFX7K7 = require("./chunk-NAXFX7K7.js");
|
|
49
49
|
var import_chunk_MREGRQDD = require("./chunk-MREGRQDD.js");
|
|
@@ -57,17 +57,17 @@ var import_chunk_RR6BKMNO = require("./chunk-RR6BKMNO.js");
|
|
|
57
57
|
var import_chunk_JFKDSUIE = require("./chunk-JFKDSUIE.js");
|
|
58
58
|
var import_chunk_LGYRZ6CV = require("./chunk-LGYRZ6CV.js");
|
|
59
59
|
var import_chunk_DAYMMAJB = require("./chunk-DAYMMAJB.js");
|
|
60
|
-
var
|
|
60
|
+
var import_chunk_F62CN63F = require("./chunk-F62CN63F.js");
|
|
61
61
|
var import_chunk_VVKOFN3Y = require("./chunk-VVKOFN3Y.js");
|
|
62
62
|
var import_chunk_PW3LNSDM = require("./chunk-PW3LNSDM.js");
|
|
63
|
-
var
|
|
63
|
+
var import_chunk_ODH7XYW7 = require("./chunk-ODH7XYW7.js");
|
|
64
64
|
var import_chunk_OCQGHQED = require("./chunk-OCQGHQED.js");
|
|
65
65
|
var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
|
|
66
|
-
var
|
|
66
|
+
var import_chunk_3WTXX6CQ = require("./chunk-3WTXX6CQ.js");
|
|
67
67
|
var import_chunk_255BRND3 = require("./chunk-255BRND3.js");
|
|
68
68
|
var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
|
|
69
69
|
var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
|
|
70
|
-
var
|
|
70
|
+
var import_chunk_ZYT5KWQF = require("./chunk-ZYT5KWQF.js");
|
|
71
71
|
var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
|
|
72
72
|
var import_chunk_YYPMC5FN = require("./chunk-YYPMC5FN.js");
|
|
73
73
|
var import_chunk_DLLXDCI2 = require("./chunk-DLLXDCI2.js");
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare function verifySeedConfigAndReturnMessage(schemaPath: string | null): Promise<string | undefined>;
|
|
2
1
|
export declare function getSeedCommandFromPackageJson(cwd: string): Promise<string | null>;
|
|
3
2
|
export declare function executeSeedCommand({ commandFromConfig, extraArgs, }: {
|
|
4
3
|
commandFromConfig: string;
|
|
5
4
|
extraArgs?: string;
|
|
6
5
|
}): Promise<boolean>;
|
|
7
|
-
export declare function legacyTsNodeScriptWarning(): Promise<undefined>;
|
package/dist/utils/seed.js
CHANGED
|
@@ -18,12 +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: () =>
|
|
23
|
-
legacyTsNodeScriptWarning: () => import_chunk_WG2SP5KE.legacyTsNodeScriptWarning,
|
|
24
|
-
verifySeedConfigAndReturnMessage: () => import_chunk_WG2SP5KE.verifySeedConfigAndReturnMessage
|
|
21
|
+
executeSeedCommand: () => import_chunk_3WTXX6CQ.executeSeedCommand,
|
|
22
|
+
getSeedCommandFromPackageJson: () => import_chunk_3WTXX6CQ.getSeedCommandFromPackageJson
|
|
25
23
|
});
|
|
26
24
|
module.exports = __toCommonJS(seed_exports);
|
|
27
|
-
var
|
|
25
|
+
var import_chunk_3WTXX6CQ = require("../chunk-3WTXX6CQ.js");
|
|
28
26
|
var import_chunk_SKRR5WT4 = require("../chunk-SKRR5WT4.js");
|
|
29
27
|
var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/migrate",
|
|
3
|
-
"version": "6.6.0-dev.
|
|
3
|
+
"version": "6.6.0-dev.23",
|
|
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",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"@prisma/internals": "*"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@prisma/engines-version": "6.6.0-
|
|
58
|
+
"@prisma/engines-version": "6.6.0-19.2a9de283c7671593633f6552c90867a3e3b4a657",
|
|
59
59
|
"prompts": "2.4.2",
|
|
60
|
-
"@prisma/config": "6.6.0-dev.
|
|
61
|
-
"@prisma/
|
|
62
|
-
"@prisma/
|
|
63
|
-
"@prisma/
|
|
64
|
-
"@prisma/
|
|
60
|
+
"@prisma/config": "6.6.0-dev.23",
|
|
61
|
+
"@prisma/debug": "6.6.0-dev.23",
|
|
62
|
+
"@prisma/generator-helper": "6.6.0-dev.23",
|
|
63
|
+
"@prisma/internals": "6.6.0-dev.23",
|
|
64
|
+
"@prisma/get-platform": "6.6.0-dev.23"
|
|
65
65
|
},
|
|
66
66
|
"files": [
|
|
67
67
|
"README.md",
|