Open andreav opened 8 years ago
I just tried the same commands with django 1.9 and the migration successfully terminates!
However at the moment I cannot update to Django1.9 due to lack of support from other applications, so I'm still looking for a solution.
At the moment I can get the complete migration splitting the migration by steps:
./manage.py migrate contenttypes ./manage.py migrate auth ./manage.py migrate sites ./manage.py migrate my_custom_auth_app ./manage.py migrate
and this will complete my migrations.
I got errors during migration but everything seems to work in the end.
By the way, I could not run just:
manage.py migrate contenttypes && manage.py migrate
because contenttypes depends on auth_permission, but auth_permission depends on sites, and sites depends on my_custom_auth_app (maybe related to https://code.djangoproject.com/ticket/24075 but I'm not sure)
Hi, I just migrated to django 1.8
My operations are:
However I get this error after "manage.py migrate" command:
django.db.utils.ProgrammingError: relation "django_content_type" does not exist
The sql command causing the error is:
u'ALTER TABLE "djangoratings_vote" ADD CONSTRAINT "djan_content_type_id_34170de97babd8e2_fk_django_content_type_id" FOREIGN KEY ("content_type_id") REFERENCES "django_content_type" ("id") DEFERRABLE INITIALLY DEFERRED'
If a comment out djangoratings from INSTALLED_APPS, the migrations finishes without problems.
If I issue a "./manage.py showmigrations" I get empty migrations for django ratings.
The exception is raised when running deferred SQL.
I will continue investigating but maybe you know/have a solution.
Thank you.