Skip to content

Commit c6a8c99

Browse files
authored
Clarify FK docs (#13562)
1 parent 5942513 commit c6a8c99

File tree

1 file changed

+1
-1
lines changed
  • develop-docs/backend/application-domains/database-migrations

1 file changed

+1
-1
lines changed

develop-docs/backend/application-domains/database-migrations/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ This second PR will contain only the migration and related boilerplate.
420420

421421
### Foreign Keys
422422

423-
Creating foreign keys is mostly fine, but for some large/busy tables like `Project`, `Group` it can cause problems due to difficulties in acquiring a lock. You can still create a Django level foreign key though, without creating a database constraint. To do so, set `db_constraint=False` when defining the key.
423+
Creating foreign keys is mostly fine, but for some large/busy tables like `Project` and `Group` the migration can fail due to difficulties in acquiring a lock on the table. The general procedure here is to retry the migration until it goes through - The migration framework adds a lock acquisition timeout, so it's safe to do this.
424424

425425
### Renaming Tables
426426

0 commit comments

Comments
 (0)