@prisma-next/target-postgres 0.3.0-dev.52 → 0.3.0-dev.54
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.d.mts +1 -1
- package/dist/control.d.mts.map +1 -1
- package/dist/control.mjs +515 -161
- package/dist/control.mjs.map +1 -1
- package/package.json +16 -16
- package/src/core/migrations/planner-reconciliation.ts +602 -0
- package/src/core/migrations/planner.ts +187 -224
- package/src/core/migrations/runner.ts +4 -16
|
@@ -434,22 +434,10 @@ class PostgresMigrationRunner implements SqlMigrationRunner<PostgresPlanTargetDe
|
|
|
434
434
|
): Result<void, SqlMigrationRunnerFailure> {
|
|
435
435
|
const origin = plan.origin ?? null;
|
|
436
436
|
if (!origin) {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
return okVoid();
|
|
442
|
-
}
|
|
443
|
-
return runnerFailure(
|
|
444
|
-
'MARKER_ORIGIN_MISMATCH',
|
|
445
|
-
`Existing contract marker (${marker.storageHash}) does not match plan origin (no marker expected).`,
|
|
446
|
-
{
|
|
447
|
-
meta: {
|
|
448
|
-
markerStorageHash: marker.storageHash,
|
|
449
|
-
expectedOrigin: null,
|
|
450
|
-
},
|
|
451
|
-
},
|
|
452
|
-
);
|
|
437
|
+
// No origin assertion on the plan — the caller does not want origin validation.
|
|
438
|
+
// This is the case for `db update`, which introspects the live schema and does not
|
|
439
|
+
// rely on marker continuity. `db init` handles its own marker checks before the runner.
|
|
440
|
+
return okVoid();
|
|
453
441
|
}
|
|
454
442
|
|
|
455
443
|
if (!marker) {
|