@prisma/migrate 6.3.0-integration-simpler-typeinfo-query.1 → 6.3.0-integration-fix-subcommands-esm-projects.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/Migrate.js +5 -5
- package/dist/SchemaEngine.js +5 -5
- package/dist/bin.js +41 -42
- package/dist/{chunk-BAVMZZAR.js → chunk-4RGXNW3L.js} +12 -12
- package/dist/{chunk-XLLUFIQK.js → chunk-7MUF3HLX.js} +9 -8
- package/dist/{chunk-GJN3CSXW.js → chunk-AOCCG7RR.js} +6 -6
- package/dist/{chunk-ZBOJAYON.js → chunk-BMHH2WUY.js} +6 -6
- package/dist/{chunk-55NRLWME.js → chunk-CGIS3FNO.js} +1029 -339
- package/dist/{chunk-ZLGLVUFD.js → chunk-E2XKFV2C.js} +8 -8
- package/dist/{chunk-LVFPGUOH.js → chunk-E3UZYEGF.js} +92 -87
- package/dist/{chunk-MWEO3VUS.js → chunk-H3UYLUNG.js} +11 -9
- package/dist/{chunk-BAFPAACN.js → chunk-ILJRJJ3S.js} +4 -4
- package/dist/{chunk-E3KHFUFQ.js → chunk-J77IRNPE.js} +9 -124
- package/dist/{chunk-EXUBPCXZ.js → chunk-MOTXHF3A.js} +18 -18
- package/dist/{chunk-VWV2NY26.js → chunk-NKQGJ3AE.js} +7 -3
- package/dist/{chunk-XVL5RF2T.js → chunk-Q5KENGJU.js} +17 -16
- package/dist/{chunk-UJWMQPUH.js → chunk-Q7P4QXBI.js} +10 -10
- package/dist/{chunk-LLGEQ76N.js → chunk-SR3XX66X.js} +16 -16
- package/dist/{chunk-W3ROQKBN.js → chunk-V7DE6JTG.js} +4 -4
- package/dist/{chunk-SV5GANSI.js → chunk-VYDT2HGZ.js} +10 -10
- package/dist/{chunk-76XWADEV.js → chunk-VZBP3FDY.js} +11 -11
- package/dist/{chunk-5VYRCIVT.js → chunk-WEF5VDTU.js} +100 -182
- package/dist/{chunk-RYWEOVLN.js → chunk-WJT3IOMB.js} +6 -6
- package/dist/{chunk-KEBB7UIB.js → chunk-XJQP3B4W.js} +5 -3
- package/dist/{chunk-YOW3VBYS.js → chunk-XQJTDY7A.js} +6 -6
- package/dist/{chunk-WIZM7TFT.js → chunk-YKUZUAXA.js} +443 -55
- package/dist/commands/DbDrop.js +3 -3
- package/dist/commands/DbExecute.js +6 -6
- package/dist/commands/DbPull.js +8 -8
- package/dist/commands/DbPush.js +7 -7
- package/dist/commands/DbSeed.js +4 -5
- package/dist/commands/MigrateDeploy.js +7 -7
- package/dist/commands/MigrateDev.js +8 -9
- package/dist/commands/MigrateDiff.js +7 -8
- package/dist/commands/MigrateReset.js +8 -9
- package/dist/commands/MigrateResolve.js +7 -7
- package/dist/commands/MigrateStatus.js +7 -7
- package/dist/index.js +52 -53
- package/dist/internals/src/cli/getTypescriptVersion.d.ts +1 -0
- package/dist/internals/src/client/getClientEngineType.d.ts +2 -1
- package/dist/internals/src/index.d.ts +2 -0
- package/dist/internals/src/tracing/types.d.ts +26 -16
- package/dist/internals/src/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
- package/dist/internals/src/utils/prismaPostgres.d.ts +3 -0
- package/dist/migrate/src/Migrate.d.ts +2 -1
- package/dist/migrate/src/utils/ensureDatabaseExists.d.ts +1 -1
- package/dist/migrate/src/utils/printDatasources.d.ts +2 -1
- package/dist/{multipart-parser-KKECAI5D.js → multipart-parser-73VM3J4A.js} +10 -7
- package/dist/{multipart-parser-47FFAP42-P3F6TPHJ.js → multipart-parser-ITART6UP-FFJAMHWE.js} +25 -22
- package/dist/typescript-AILDXN3I.js +205230 -0
- package/dist/typescript-WN4QH2CP.js +205192 -0
- package/dist/utils/ensureDatabaseExists.js +7 -7
- package/dist/utils/getDatabaseVersionSafe.js +5 -5
- package/dist/utils/introspectSql.js +4 -4
- package/dist/utils/removeSchemaFiles.js +3 -3
- package/dist/utils/saveSchemaFiles.js +3 -3
- package/dist/utils/seed.js +6 -7
- package/dist/utils/setupMSSQL.js +62 -59
- package/dist/utils/setupMongo.js +17608 -14119
- package/dist/utils/setupMysql.js +45 -0
- package/dist/views/handleViewsIO.js +3 -3
- package/package.json +14 -15
- package/dist/chunk-EFPE3Q7J.js +0 -424
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +0 -9
|
@@ -26,21 +26,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_WJT3IOMB_exports = {};
|
|
30
|
+
__export(chunk_WJT3IOMB_exports, {
|
|
31
31
|
DbDrop: () => DbDrop
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_WJT3IOMB_exports);
|
|
34
34
|
var import_chunk_WLJHGKMK = require("./chunk-WLJHGKMK.js");
|
|
35
35
|
var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
|
|
36
36
|
var import_chunk_EYA6AFSF = require("./chunk-EYA6AFSF.js");
|
|
37
37
|
var import_chunk_Q7ACZDDT = require("./chunk-Q7ACZDDT.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_XJQP3B4W = require("./chunk-XJQP3B4W.js");
|
|
39
39
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
40
40
|
var import_internals = require("@prisma/internals");
|
|
41
41
|
var import_prompts = __toESM(require("prompts"));
|
|
42
42
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
43
|
-
(0,
|
|
43
|
+
(0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
|
|
44
44
|
(0, import_chunk_U374EXYQ.init_errors)();
|
|
45
45
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
|
46
46
|
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
|
@@ -70,7 +70,7 @@ var _DbDrop = class _DbDrop2 {
|
|
|
70
70
|
}
|
|
71
71
|
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
|
|
72
72
|
const { schemaPath } = await (0, import_chunk_EYA6AFSF.getSchemaPathAndPrint)(args["--schema"]);
|
|
73
|
-
const datasourceInfo = await (0,
|
|
73
|
+
const datasourceInfo = await (0, import_chunk_XJQP3B4W.getDatasourceInfo)({ schemaPath, throwIfEnvError: true });
|
|
74
74
|
(0, import_chunk_Q7ACZDDT.printDatasource)({ datasourceInfo });
|
|
75
75
|
process.stdout.write("\n");
|
|
76
76
|
if (!args["--force"]) {
|
|
@@ -16,8 +16,8 @@ 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_XJQP3B4W_exports = {};
|
|
20
|
+
__export(chunk_XJQP3B4W_exports, {
|
|
21
21
|
ensureCanConnectToDatabase: () => ensureCanConnectToDatabase,
|
|
22
22
|
ensureDatabaseExists: () => ensureDatabaseExists,
|
|
23
23
|
getDatasourceInfo: () => getDatasourceInfo,
|
|
@@ -25,7 +25,7 @@ __export(chunk_KEBB7UIB_exports, {
|
|
|
25
25
|
init_ensureDatabaseExists: () => init_ensureDatabaseExists,
|
|
26
26
|
prettifyProvider: () => prettifyProvider
|
|
27
27
|
});
|
|
28
|
-
module.exports = __toCommonJS(
|
|
28
|
+
module.exports = __toCommonJS(chunk_XJQP3B4W_exports);
|
|
29
29
|
var import_chunk_KPUNMK5W = require("./chunk-KPUNMK5W.js");
|
|
30
30
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
|
31
31
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
@@ -183,6 +183,8 @@ function prettifyProvider(provider) {
|
|
|
183
183
|
case "postgres":
|
|
184
184
|
case "postgresql":
|
|
185
185
|
return `PostgreSQL`;
|
|
186
|
+
case import_internals.PRISMA_POSTGRES_PROVIDER:
|
|
187
|
+
return `Prisma Postgres`;
|
|
186
188
|
case "sqlite":
|
|
187
189
|
return `SQLite`;
|
|
188
190
|
case "cockroachdb":
|
|
@@ -16,14 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_XQJTDY7A_exports = {};
|
|
20
|
+
__export(chunk_XQJTDY7A_exports, {
|
|
21
21
|
introspectSql: () => introspectSql
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_XQJTDY7A_exports);
|
|
24
|
+
var import_chunk_7MUF3HLX = require("./chunk-7MUF3HLX.js");
|
|
25
25
|
var import_internals = require("@prisma/internals");
|
|
26
|
-
(0,
|
|
26
|
+
(0, import_chunk_7MUF3HLX.init_SchemaEngine)();
|
|
27
27
|
var supportedProviders = ["postgresql", "cockroachdb", "mysql", "sqlite"];
|
|
28
28
|
async function introspectSql(schemaPath, queries) {
|
|
29
29
|
const schema = await (0, import_internals.getSchemaWithPath)(schemaPath);
|
|
@@ -42,7 +42,7 @@ async function introspectSql(schemaPath, queries) {
|
|
|
42
42
|
if (!url) {
|
|
43
43
|
throw new Error(`Could not get url from datasource ${firstDatasource.name} in ${schema.schemaPath}`);
|
|
44
44
|
}
|
|
45
|
-
const schemaEngine = new
|
|
45
|
+
const schemaEngine = new import_chunk_7MUF3HLX.SchemaEngine({ schemaPath: schema.schemaPath });
|
|
46
46
|
const results = [];
|
|
47
47
|
const errors = [];
|
|
48
48
|
try {
|