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,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']
|
||||
|
||||
Reference in New Issue
Block a user