@prisma/migrate 6.16.0-integration-push-prynymnkvlrn.3 → 6.16.0-integration-feat-prisma-client-default-runtime.2
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 +3 -3
- package/dist/{chunk-IKB544RB.js → chunk-UQEITMMV.js} +4 -17
- package/dist/commands/DbPull.js +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/setupMysql.js +2527 -1451
- package/package.json +11 -13
package/dist/bin.js
CHANGED
@@ -34,7 +34,7 @@ var import_chunk_YEUENY2G = require("./chunk-YEUENY2G.js");
|
|
34
34
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
35
35
|
var import_chunk_EJG7GKM7 = require("./chunk-EJG7GKM7.js");
|
36
36
|
var import_chunk_U62JTEME = require("./chunk-U62JTEME.js");
|
37
|
-
var
|
37
|
+
var import_chunk_UQEITMMV = require("./chunk-UQEITMMV.js");
|
38
38
|
var import_chunk_IINN7QUV = require("./chunk-IINN7QUV.js");
|
39
39
|
var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
|
40
40
|
var import_chunk_RR6BKMNO = require("./chunk-RR6BKMNO.js");
|
@@ -71,7 +71,7 @@ var import_config = require("@prisma/config");
|
|
71
71
|
var import_debug = __toESM(require("@prisma/debug"));
|
72
72
|
var import_engines_version = require("@prisma/engines-version");
|
73
73
|
var import_internals = require("@prisma/internals");
|
74
|
-
var version = "6.16.0-integration-
|
74
|
+
var version = "6.16.0-integration-feat-prisma-client-default-runtime.2";
|
75
75
|
process.on("uncaughtException", (e) => {
|
76
76
|
console.log(e);
|
77
77
|
});
|
@@ -102,7 +102,7 @@ async function main() {
|
|
102
102
|
}),
|
103
103
|
db: import_chunk_EJG7GKM7.DbCommand.new({
|
104
104
|
execute: import_chunk_U62JTEME.DbExecute.new(),
|
105
|
-
pull:
|
105
|
+
pull: import_chunk_UQEITMMV.DbPull.new(),
|
106
106
|
push: import_chunk_WXE3X4AN.DbPush.new(),
|
107
107
|
// drop: DbDrop.new(),
|
108
108
|
seed: import_chunk_DYXEUKV3.DbSeed.new()
|
@@ -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_UQEITMMV_exports = {};
|
30
|
+
__export(chunk_UQEITMMV_exports, {
|
31
31
|
DbPull: () => DbPull
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
33
|
+
module.exports = __toCommonJS(chunk_UQEITMMV_exports);
|
34
34
|
var import_chunk_IINN7QUV = require("./chunk-IINN7QUV.js");
|
35
35
|
var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
|
36
36
|
var import_chunk_RR6BKMNO = require("./chunk-RR6BKMNO.js");
|
@@ -157,7 +157,6 @@ Set composite types introspection depth to 2 levels
|
|
157
157
|
const { firstDatasource, schema, validationWarning } = await (0, import_chunk_AXR7LS2N.z)({ url, schemaContext, fromD1 }).when(
|
158
158
|
(input) => input.schemaContext !== null,
|
159
159
|
async (input) => {
|
160
|
-
const previewFeatures = input.schemaContext.generators.find(({ name }) => name === "client")?.previewFeatures;
|
161
160
|
const firstDatasource2 = input.schemaContext.primaryDatasource ? input.schemaContext.primaryDatasource : void 0;
|
162
161
|
if (input.url) {
|
163
162
|
let providerFromSchema = firstDatasource2?.provider;
|
@@ -185,18 +184,7 @@ Set composite types introspection depth to 2 levels
|
|
185
184
|
datamodel: schema2,
|
186
185
|
ignoreEnvVarErrors: true
|
187
186
|
});
|
188
|
-
|
189
|
-
const hasDriverAdaptersPreviewFeature = (previewFeatures || []).includes("driverAdapters");
|
190
|
-
const validationWarning2 = `Without the ${(0, import_chunk_SKRR5WT4.bold)(
|
191
|
-
"driverAdapters"
|
192
|
-
)} preview feature, the schema introspected via the ${(0, import_chunk_SKRR5WT4.bold)("--local-d1")} flag will not work with ${(0, import_chunk_SKRR5WT4.bold)(
|
193
|
-
"@prisma/client"
|
194
|
-
)}.`;
|
195
|
-
if (hasDriverAdaptersPreviewFeature) {
|
196
|
-
return result;
|
197
|
-
} else {
|
198
|
-
return { ...result, validationWarning: validationWarning2 };
|
199
|
-
}
|
187
|
+
return { firstDatasource: config2.datasources[0], schema: schema2, validationWarning: void 0 };
|
200
188
|
} else {
|
201
189
|
await (0, import_internals.getConfig)({
|
202
190
|
datamodel: input.schemaContext.schemaFiles,
|
@@ -212,7 +200,6 @@ Set composite types introspection depth to 2 levels
|
|
212
200
|
const pathToSQLiteFile = import_path.default.relative(process.cwd(), d1Database);
|
213
201
|
const schemaContent = `generator client {
|
214
202
|
provider = "prisma-client-js"
|
215
|
-
previewFeatures = ["driverAdapters"]
|
216
203
|
}
|
217
204
|
${this.urlToDatasource(`file:${pathToSQLiteFile}`, "sqlite")}`;
|
218
205
|
const schema2 = [["schema.prisma", schemaContent]];
|
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_UQEITMMV.DbPull
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(DbPull_exports);
|
24
|
-
var
|
24
|
+
var import_chunk_UQEITMMV = require("../chunk-UQEITMMV.js");
|
25
25
|
var import_chunk_IINN7QUV = require("../chunk-IINN7QUV.js");
|
26
26
|
var import_chunk_JZ75RIMZ = require("../chunk-JZ75RIMZ.js");
|
27
27
|
var import_chunk_RR6BKMNO = require("../chunk-RR6BKMNO.js");
|
package/dist/index.js
CHANGED
@@ -21,7 +21,7 @@ __export(index_exports, {
|
|
21
21
|
DbCommand: () => import_chunk_EJG7GKM7.DbCommand,
|
22
22
|
DbDrop: () => import_chunk_CXSHCKU6.DbDrop,
|
23
23
|
DbExecute: () => import_chunk_U62JTEME.DbExecute,
|
24
|
-
DbPull: () =>
|
24
|
+
DbPull: () => import_chunk_UQEITMMV.DbPull,
|
25
25
|
DbPush: () => import_chunk_WXE3X4AN.DbPush,
|
26
26
|
DbSeed: () => import_chunk_DYXEUKV3.DbSeed,
|
27
27
|
EngineResults: () => import_chunk_LVR7W5DD.EngineResults,
|
@@ -54,7 +54,7 @@ var import_chunk_YEUENY2G = require("./chunk-YEUENY2G.js");
|
|
54
54
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
55
55
|
var import_chunk_EJG7GKM7 = require("./chunk-EJG7GKM7.js");
|
56
56
|
var import_chunk_U62JTEME = require("./chunk-U62JTEME.js");
|
57
|
-
var
|
57
|
+
var import_chunk_UQEITMMV = require("./chunk-UQEITMMV.js");
|
58
58
|
var import_chunk_IINN7QUV = require("./chunk-IINN7QUV.js");
|
59
59
|
var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
|
60
60
|
var import_chunk_RR6BKMNO = require("./chunk-RR6BKMNO.js");
|