#33673: PostgreSQL removes constraints when removing columns.
----------------------------+--------------------------------------
Reporter: George | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 3.2
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------
Comment (by Mariusz Felisiak):
Replying to [comment:3 George]:
> Out of curiosity, does django inspect the database at all for migrations
or is it 100% looking at the mdoel's code and comparing it with the code
from all previous migrations?
Django migrations inspects database in many places, but all of them slow
things down and this scenario is so specific that IMO it's not worth
additional guard.
--
Ticket URL: <https://code.djangoproject.com/ticket/33673#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701808a05802a-c83be760-3272-48fe-bf91-5268a40faf95-000000%40eu-central-1.amazonses.com.