You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/database-migrations.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -483,7 +483,7 @@ return [
483
483
484
484
## Modify Foreign Key
485
485
486
-
Modifies an existing foreign key constraint (e.g. change referenced table, `ON DELETE`/`ON UPDATE` behaviour). Implemented as drop then add with new options.
486
+
Modifies an existing foreign key constraint (e.g. change referenced table, `ON DELETE`/`ON UPDATE` behaviour). Executed as two separate statements: first DROP FOREIGN KEY, then ADD CONSTRAINT (databases do not allow drop and add in a single ALTER TABLE).
0 commit comments