Commit 2595891b authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Migration fix

parent 6ae2798c
......@@ -6,13 +6,13 @@ from south.v2 import SchemaMigration
class Migration(SchemaMigration):
def forwards(self, orm):
return
# Adding unique constraint on 'AstakosUser', fields ['third_party_identifier', 'provider']
db.create_unique(
'im_astakosuser', ['third_party_identifier', 'provider'])
def backwards(self, orm):
return
# Removing unique constraint on 'AstakosUser', fields ['third_party_identifier', 'provider']
db.delete_unique(
'im_astakosuser', ['third_party_identifier', 'provider'])
......
......@@ -7,9 +7,12 @@ from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Removing unique constraint on 'AstakosUser', fields ['third_party_identifier', 'provider']
db.delete_unique('im_astakosuser', ['third_party_identifier', 'provider'])
try:
db.delete_unique('im_astakosuser', ['third_party_identifier', 'provider'])
except:
pass
# Adding model 'Chain'
db.create_table('im_chain', (
......@@ -219,7 +222,7 @@ class Migration(SchemaMigration):
def backwards(self, orm):
# Removing index on 'Service', fields ['name']
db.delete_index('im_service', ['name'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment