Skip to content

Commit cb35f76

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

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ operations = [
238238
```
239239

240240
Then we deploy this and we're done. So to recap the steps here:
241-
- Remove all references to the column in the code in a separate PR and merge. Doesn't matter if this deploys before the next step or not.
242-
- If the column has an fk constraint them remove it. If it's not null and has no db_default then mark it as nullable. Then delete the column using SafeRemoveField(..., deletion_action=DeletionAction.MOVE_TO_PENDING). These operations can be in the same migration to save time.
241+
- Remove all references to the column in the code in a separate pull request and merge. Doesn't matter if this deploys before the next step or not.
242+
- If the column has an foreign key constraint them remove it. If it's not null and has no db_default then mark it as nullable. Then delete the column using `SafeRemoveField(..., deletion_action=DeletionAction.MOVE_TO_PENDING)`. These operations can be in the same migration to save time.
243243
- Deploy all previous before continuing.
244-
- Remove the column from the table in from Postgres using SafeRemoveField(..., deletion_action=DeletionAction.DELETE),
244+
- Remove the column from the table in from Postgres using `SafeRemoveField(..., deletion_action=DeletionAction.DELETE),`
245245

246246
### Deleting Tables
247247

0 commit comments

Comments
 (0)