Fix the migration

This commit is contained in:
2011-05-01 02:02:24 +01:00
parent 3a534490ce
commit 61d2ff9a1b

View File

@@ -9,6 +9,7 @@ class Migration(SchemaMigration):
def forwards(self, orm):
# Purge existing records
if not db.dry_run:
orm['sso.SSOUserIPAddress'].objects.all().delete()
# Adding unique constraint on 'SSOUserIPAddress', fields ['ip_address']