@prisma/migrate 6.5.0-dev.8 → 6.5.0-dev.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CLI.js +2 -2
- package/dist/Migrate.js +3 -3
- package/dist/SchemaEngine.js +3 -3
- package/dist/bin.js +35 -35
- package/dist/{chunk-J77IRNPE.js → chunk-5VDXAE53.js} +45 -31
- package/dist/{chunk-PSYS5XVH.js → chunk-A4BCLP6K.js} +23 -32
- package/dist/{chunk-CTPONE6G.js → chunk-DLLXDCI2.js} +6 -3
- package/dist/{chunk-4EV2RVXY.js → chunk-E7OXHCDR.js} +31 -37
- package/dist/{chunk-73OPZA7N.js → chunk-EGPJABTW.js} +136 -81
- package/dist/{chunk-TM3ETZES.js → chunk-EX2UWGES.js} +11 -10
- package/dist/{chunk-FRTPDRF2.js → chunk-G2XUUMKH.js} +5 -5
- package/dist/{chunk-6DFJIBJX.js → chunk-GKDFIHM2.js} +3 -3
- package/dist/{chunk-2NMFKGXM.js → chunk-IR55GBON.js} +5 -5
- package/dist/{chunk-D74DU52C.js → chunk-JJAQ337V.js} +464 -1335
- package/dist/{chunk-DDHPSYC4.js → chunk-KXMACMQC.js} +9 -6
- package/dist/{chunk-I4EY55DC.js → chunk-LZOZZRHB.js} +10 -9
- package/dist/{chunk-4JQIX6O7.js → chunk-MKK3GSDF.js} +5 -5
- package/dist/{chunk-DD76OXFG.js → chunk-RGSWHIW7.js} +465 -1336
- package/dist/{chunk-LVLRGTYH.js → chunk-TPJISPJ5.js} +10 -9
- package/dist/{chunk-YZVZCC3I.js → chunk-V5TUSOJX.js} +8 -7
- package/dist/{chunk-WNH2ACJS.js → chunk-VVKOFN3Y.js} +6 -5
- package/dist/{chunk-QTAIWPLH.js → chunk-VZ23KD5C.js} +5 -4
- package/dist/{chunk-HIFVDK2U.js → chunk-W2SZNLK4.js} +6 -5
- package/dist/{chunk-WLPX3672.js → chunk-X5N72JHI.js} +8 -7
- package/dist/{chunk-RQFGRXJI.js → chunk-X6KW7BYP.js} +10 -9
- package/dist/{chunk-XRTNIFND.js → chunk-YYPMC5FN.js} +203 -108
- package/dist/{chunk-ORL3LJOT.js → chunk-ZOEKRXDP.js} +16 -7
- package/dist/{chunk-J5FHVALZ.js → chunk-ZQ3OWSVS.js} +10 -9
- package/dist/commands/DbCommand.js +2 -2
- package/dist/commands/DbDrop.js +3 -3
- package/dist/commands/DbExecute.js +4 -4
- package/dist/commands/DbPull.js +3 -3
- package/dist/commands/DbPush.js +5 -5
- package/dist/commands/DbSeed.js +2 -2
- package/dist/commands/MigrateCommand.js +2 -2
- package/dist/commands/MigrateDeploy.js +5 -5
- package/dist/commands/MigrateDev.js +5 -5
- package/dist/commands/MigrateDiff.js +6 -6
- package/dist/commands/MigrateReset.js +5 -5
- package/dist/commands/MigrateResolve.js +5 -5
- package/dist/commands/MigrateStatus.js +5 -5
- package/dist/index.js +39 -39
- package/dist/internals/src/errorReporting.d.ts +1 -0
- package/dist/utils/captureStdout.js +2 -2
- package/dist/utils/getDatabaseVersionSafe.js +3 -3
- package/dist/utils/getSchemaPathAndPrint.js +3 -3
- package/dist/utils/introspectSql.js +3 -3
- package/dist/utils/setupCockroach.js +2 -2
- package/dist/utils/setupMSSQL.js +13 -13
- package/dist/utils/setupMongo.js +5 -5
- package/dist/utils/setupMysql.js +231 -99
- package/dist/utils/setupPostgres.js +2 -2
- package/package.json +14 -14
|
@@ -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_IR55GBON_exports = {};
|
|
20
|
+
__export(chunk_IR55GBON_exports, {
|
|
21
21
|
introspectSql: () => introspectSql
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_IR55GBON_exports);
|
|
24
|
+
var import_chunk_ZOEKRXDP = require("./chunk-ZOEKRXDP.js");
|
|
25
25
|
var import_internals = require("@prisma/internals");
|
|
26
26
|
var supportedProviders = ["postgresql", "cockroachdb", "mysql", "sqlite"];
|
|
27
27
|
async function introspectSql(schemaPath, queries) {
|
|
@@ -41,7 +41,7 @@ async function introspectSql(schemaPath, queries) {
|
|
|
41
41
|
if (!url) {
|
|
42
42
|
throw new Error(`Could not get url from datasource ${firstDatasource.name} in ${schema.schemaPath}`);
|
|
43
43
|
}
|
|
44
|
-
const schemaEngine = new
|
|
44
|
+
const schemaEngine = new import_chunk_ZOEKRXDP.SchemaEngine({ schemaPath: schema.schemaPath });
|
|
45
45
|
const results = [];
|
|
46
46
|
const errors = [];
|
|
47
47
|
try {
|