mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +00:00
Fix the migration
This commit is contained in:
@@ -9,7 +9,8 @@ class Migration(SchemaMigration):
|
|||||||
def forwards(self, orm):
|
def forwards(self, orm):
|
||||||
|
|
||||||
# Purge existing records
|
# Purge existing records
|
||||||
orm['sso.SSOUserIPAddress'].objects.all().delete()
|
if not db.dry_run:
|
||||||
|
orm['sso.SSOUserIPAddress'].objects.all().delete()
|
||||||
|
|
||||||
# Adding unique constraint on 'SSOUserIPAddress', fields ['ip_address']
|
# Adding unique constraint on 'SSOUserIPAddress', fields ['ip_address']
|
||||||
db.create_unique('sso_ssouseripaddress', ['ip_address'])
|
db.create_unique('sso_ssouseripaddress', ['ip_address'])
|
||||||
|
|||||||
Reference in New Issue
Block a user