Skip to content

Commit

Permalink
Merge pull request mozilla#1294 from lmorchard/user-migration-fixes
Browse files Browse the repository at this point in the history
Fix order of DB operations in user account cleanup migration
  • Loading branch information
lmorchard authored Aug 26, 2016
2 parents ef66d79 + c65c39f commit f551813
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions testpilot/users/migrations/0003_delete_nonstaff_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RunPython(delete_nonstaff_users_forwards),

# Clean up tables left over from FxA removal...
migrations.RunSQL('DROP TABLE IF EXISTS account_emailaddress'),
migrations.RunSQL('DROP TABLE IF EXISTS account_emailconfirmation'),
migrations.RunSQL('DROP TABLE IF EXISTS socialaccount_socialaccount'),
migrations.RunSQL('DROP TABLE IF EXISTS socialaccount_socialapp'),
migrations.RunSQL('DROP TABLE IF EXISTS account_emailaddress'),
migrations.RunSQL('DROP TABLE IF EXISTS socialaccount_socialtoken'),
migrations.RunSQL('DROP TABLE IF EXISTS socialaccount_socialapp_sites'),
migrations.RunSQL('DROP TABLE IF EXISTS socialaccount_socialtoken')
migrations.RunSQL('DROP TABLE IF EXISTS socialaccount_socialapp'),
migrations.RunSQL('DROP TABLE IF EXISTS socialaccount_socialaccount'),

migrations.RunPython(delete_nonstaff_users_forwards)
]

0 comments on commit f551813

Please sign in to comment.