Revision 6f979a1a snf-astakos-app/astakos/im/migrations/0015_auto__add_chain__add_project__add_projectmembership__add_unique_projec.py

b/snf-astakos-app/astakos/im/migrations/0015_auto__add_chain__add_project__add_projectmembership__add_unique_projec.py
7 7
class Migration(SchemaMigration):
8 8

  
9 9
    def forwards(self, orm):
10
        
10

  
11 11
        # Removing unique constraint on 'AstakosUser', fields ['third_party_identifier', 'provider']
12
        db.delete_unique('im_astakosuser', ['third_party_identifier', 'provider'])
12
        try:
13
            db.delete_unique('im_astakosuser', ['third_party_identifier', 'provider'])
14
        except:
15
            pass
13 16

  
14 17
        # Adding model 'Chain'
15 18
        db.create_table('im_chain', (
......
219 222

  
220 223

  
221 224
    def backwards(self, orm):
222
        
225

  
223 226
        # Removing index on 'Service', fields ['name']
224 227
        db.delete_index('im_service', ['name'])
225 228

  

Also available in: Unified diff