Skip to content

Commit 17e6e48

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

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
@@ -152,7 +152,7 @@ To avoid this, follow these steps:
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
154154
- Deploy your migration changes. It's important that all previous pull requests are in production before we remove the actual column from the table.
155-
- 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.
155+
- Make a pull request 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

158158
Here's an example of removing the `project` column from this model. It is both a foreign key and not null:

0 commit comments

Comments
 (0)