Opened 6 years ago
Closed 6 years ago
#30611 closed New feature (duplicate)
Add reversal options object to django migration constructs/class constructors
| Reported by: | Rico Rodriguez | Owned by: | nobody |
|---|---|---|---|
| Component: | Migrations | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
See https://code.djangoproject.com/ticket/23048#comment:4
To redress the unfortunate situation where one has to try to reverse the deletion of a non-null field with no specified defaults:
Code highlighting:
migrations.RemoveField(model_name="child", name="age_at_birth", reversal_options={"null": True}),
A reversal object as such could be added to many of the migrations constructs. Let me know if this needs clarification.
Change History (1)
comment:1 by , 6 years ago
| Component: | Uncategorized → Migrations |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
| Type: | Uncategorized → New feature |
| Version: | 1.11 → master |
Note:
See TracTickets
for help on using tickets.
Duplicate of #23048. Please do not add duplicates of wontfix tickets and follow triaging guidelines with regards to wontfix tickets.