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: develop-docs/api-server/application-domains/database-migrations/index.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -238,10 +238,10 @@ operations = [
238
238
```
239
239
240
240
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.
243
243
- 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),`
0 commit comments