#36565: Control column order in migrations
-------------------------+-------------------------------------------
Reporter: Rinshan | Type: New feature
Status: new | Component: Migrations
Version: 5.2 | Severity: Release blocker
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------+-------------------------------------------
When I add a new field in Django, the migration always puts the column at
the end of the table.
Sometimes I need the column in a specific place (for example, to match a
legacy database or schema).
Right now, the only way is to write custom SQL.
Can Django give an option to control column order in migrations, or keep
the model field order?
--
Ticket URL: <https://code.djangoproject.com/ticket/36565>
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 visit
https://groups.google.com/d/msgid/django-updates/01070198ca5d861e-47af2788-1a49-432f-bfc3-34057c2a164b-000000%40eu-central-1.amazonses.com.