omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

Django Migrations Broken #991

Closed clintonb closed 8 years ago

clintonb commented 8 years ago

916 changed the app name from "default" to "social_auth". Users running the app prior this change will have migrations registered under the old name, resulting in Django thinking it should apply migrations from scratch.

These existing migrations should be faked with the following command:

python manage.py migrate social_auth 0004 --fake
clintonb commented 8 years ago

It may also be possible to use the replaces functionality normally reserved for squashed migrations.

clintonb commented 8 years ago

FYI @omab @cclay

rlucioni commented 8 years ago

@omab would you mind releasing v0.2.21 with this change?

omab commented 8 years ago

@rlucioni , v0.2.21 released

rlucioni commented 8 years ago

@omab thank you!

beaugunderson commented 8 years ago

Noting that fixtures with "default.usersocialauth" need to be manually updated to "social_auth.usersocialauth" as well.