#25100: Document how to avoid ""RuntimeError: Error creating new content types."
when upgrading to 1.8 (skipping 1.7)
--------------------------------------+------------------------------------
Reporter: sachinvettithanam | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.8
Severity: Normal | Resolution:
Keywords: contentype migration | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by sachinvettithanam):
No i am not faking it
This is what really happens in 1.8
i try migrate --fake-initial - it didnt work
Response:
It says Your models have changes that are not yet reflected in a
migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run
'manage.py migrate' to apply them.
with the same bunch of contenttype errors
'''Only Solution i really found was Downgrading to 1.7.* and migrating
contenttypes individually'''
migrate contenttypes
Response will be the same
It says Your models have changes that are not yet reflected in a
migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run
'manage.py migrate' to apply them.
but there wont be any errors and issue will be solves temporarily
Note: now we can goback to 1.8 and go on with the developments .
Migrations wont have any issue in 1.8 untill we add a new table(i didnt
find any issues with columns ). If we add new table we should again do the
same procedures .
--
Ticket URL: <https://code.djangoproject.com/ticket/25100#comment:2>
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/075.557f20823a261dcc0a7e99ee28ee469e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.