swampdragon-notifications icon indicating copy to clipboard operation
swampdragon-notifications copied to clipboard

Migration issue on 1.8

Open bufke opened this issue 9 years ago • 0 comments

Running migrate on django 1.8 produces relation "auth_user" does not exist

Proposed fix would be just to add django 1.7+ migrations. This fixes it outright. If this sounds good I can send a pull request.

I believe the reason for this is that in 1.8 auth has migrations and notifications does not. Django creates the tables for non migration tables first. But notifications has references to auth which don't exist.

With migrations - it will follow the order of INSTALLED_APPS which most people place auth towards the top.

More discussion about the same issue:

https://github.com/evonove/django-oauth-toolkit/issues/204 http://stackoverflow.com/questions/29689365/auth-user-error-with-django-1-8-and-syncdb-migrate

bufke avatar May 17 '15 15:05 bufke