@prisma-next/target-postgres 0.4.0-dev.5 → 0.4.0-dev.6
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/control.mjs
CHANGED
|
@@ -2407,7 +2407,7 @@ function planDescriptors(options) {
|
|
|
2407
2407
|
const columnOps = defaultOps.filter((op) => op.kind === "addColumn");
|
|
2408
2408
|
const alterOps = defaultOps.filter((op) => op.kind === "alterColumnType" || op.kind === "setNotNull" || op.kind === "dropNotNull" || op.kind === "setDefault");
|
|
2409
2409
|
const constraintOps = defaultOps.filter((op) => op.kind === "addPrimaryKey" || op.kind === "addUnique" || op.kind === "createIndex" || op.kind === "addForeignKey");
|
|
2410
|
-
|
|
2410
|
+
return ok({ descriptors: [
|
|
2411
2411
|
...depOps,
|
|
2412
2412
|
...dropOps,
|
|
2413
2413
|
...tableOps,
|
|
@@ -2415,11 +2415,7 @@ function planDescriptors(options) {
|
|
|
2415
2415
|
...patternOps,
|
|
2416
2416
|
...alterOps,
|
|
2417
2417
|
...constraintOps
|
|
2418
|
-
];
|
|
2419
|
-
return ok({
|
|
2420
|
-
descriptors,
|
|
2421
|
-
needsDataMigration: descriptors.some((op) => op.kind === "dataTransform")
|
|
2422
|
-
});
|
|
2418
|
+
] });
|
|
2423
2419
|
}
|
|
2424
2420
|
|
|
2425
2421
|
//#endregion
|
|
@@ -5316,8 +5312,7 @@ const postgresTargetDescriptor = {
|
|
|
5316
5312
|
};
|
|
5317
5313
|
return {
|
|
5318
5314
|
ok: true,
|
|
5319
|
-
descriptors: planResult.value.descriptors
|
|
5320
|
-
needsDataMigration: planResult.value.needsDataMigration
|
|
5315
|
+
descriptors: planResult.value.descriptors
|
|
5321
5316
|
};
|
|
5322
5317
|
},
|
|
5323
5318
|
resolveDescriptors(descriptors, context) {
|