#23392: Django runs all migration operations but only marks 0001 as completed
-------------------------------+----------------------
Reporter: owais | Owner: nobody
Type: Uncategorized | Status: new
Component: Migrations | Version: 1.7-rc-3
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------
I've patched the contrib auth app to add some fields to auth.Group table.
I've created a custom migration module for auth app which has 2
migrations,
0001: The migration supplied by contrib.auth as is.
0002: Migration that adds my custom fields to auth.Group table. ( looks
like this: https://gist.github.com/owais/cabc53a79e7b092457cc)
The problem is that when I run the migrations for auth, django creates the
final schema structure after running 0001 and as a result when django runs
0002, it complains about some fields already being present.
I'm patching the Group model like this:
https://gist.github.com/owais/994e3d2826f225142304
This patch runs right before manage.py calls a command.
--
Ticket URL: <https://code.djangoproject.com/ticket/23392>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.29950acb21ba8598efc4f1aeb044db93%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.