Skip to content

Commit 8d228fa

Browse files
committed
docs(#226): note the expected-only refusal's residual under-refuse gap (#241)
1 parent 5d80d9b commit 8d228fa

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎docs/features/migrations-and-drift.md‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,14 @@ generation time** when a change would rebuild a table that another table's forei
6969
references. Apply such a change by hand-writing the migration: rebuild the referencing
7070
table to temporarily drop its foreign key, rebuild the referenced table, then restore
7171
the foreign key — or make the change on an unreferenced table. (Auto-generating this
72-
cascade is tracked as a follow-up.)
72+
cascade is tracked as a follow-up, [#241](https://github.com/metaobjectsdev/metaobjects/issues/241).)
73+
74+
**Known limitation of the current refusal:** it is computed from the *target* schema's
75+
foreign keys. A single migration that **both** rebuilds a referenced table **and** drops
76+
the referencing foreign key in the same run is therefore not detected, and can still fail
77+
on remote D1 (the parent's `DROP TABLE` can be emitted before the referencing table is
78+
rebuilt). Split such a change into two migrations, or hand-write it. Closing this gap
79+
requires the actual-schema foreign-key graph and rides the same follow-up (#241).
7380

7481
### Java
7582

0 commit comments

Comments
 (0)