* status: new => closed
* resolution: => needsinfo
Comment:
Thanks for the report, however PostgreSQL silently drops constraints, not
Django itself. Unfortunately when you create migrations manually you must
be aware of database-specific behavior and handle them on your own in most
of cases. As far as I'm aware described use case (removing column to add
it immediately in the same migration) is really unusual and not worth
additional complexity and a performance regression for all users. Noticing
that constraint is missing would require inspecting db constraints which
is always quite expensive.
Is there any reason you cannot handle this automatically with
`AlterField()`?
--
Ticket URL: <https://code.djangoproject.com/ticket/33673#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.