Skip to content

Commit 005b5ba

Browse files
wedamijamarkstory
andauthored
Update develop-docs/api-server/application-domains/database-migrations/index.mdx
Co-authored-by: Mark Story <[email protected]>
1 parent d87df44 commit 005b5ba

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

develop-docs/api-server/application-domains/database-migrations/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ To avoid this, follow these steps:
151151
- If the column is a foreign key, remove the database level foreign key constraint it by setting `db_constraint=False`.
152152
- Remove the column and in the generated migration use `SafeRemoveField(..., deletion_action=DeletionAction.MOVE_TO_PENDING)` to replace `RemoveField(...)`. This only marks the state for the column as removed.
153153
- Combine these migrations together to save making multiple deploys
154-
- Deploy. It's important that all previous prs are in production before we remove the actual column from the table.
154+
- Deploy your migration changes. It's important that all previous pull requests are in production before we remove the actual column from the table.
155155
- Make a PR that create a new migration that has the same `SafeRemoveField` operation as before, but set `deletion_action=DeletionAction.DELETE` instead. This deletes the actual column from the table in Postgres.
156156
- Deploy
157157

0 commit comments

Comments
 (0)