Opened 5 years ago

Closed 5 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 Mariusz Felisiak, 5 years ago

Component: UncategorizedMigrations
Resolution: duplicate
Status: newclosed
Type: UncategorizedNew feature
Version: 1.11master

Duplicate of #23048. Please do not add duplicates of wontfix tickets and follow triaging guidelines with regards to wontfix tickets.

Note: See TracTickets for help on using tickets.
Back to Top