Revision 5ce3ce4f snf-astakos-app/astakos/im/migrations/0014_auto__add_unique_astakosuser_third_party_identifier_provider.py

b/snf-astakos-app/astakos/im/migrations/0014_auto__add_unique_astakosuser_third_party_identifier_provider.py
2 2
from south.db import db
3 3
from south.v2 import SchemaMigration
4 4

  
5

  
5 6
class Migration(SchemaMigration):
6 7

  
7 8
    def forwards(self, orm):
8
        
9
        # Adding unique constraint on 'AstakosUser', fields ['third_party_identifier', 'provider']
10
        db.create_unique('im_astakosuser', ['third_party_identifier', 'provider'])
11 9

  
10
        # Adding unique constraint on 'AstakosUser', fields ['third_party_identifier', 'provider']
11
        db.create_unique(
12
            'im_astakosuser', ['third_party_identifier', 'provider'])
12 13

  
13 14
    def backwards(self, orm):
14
        
15
        # Removing unique constraint on 'AstakosUser', fields ['third_party_identifier', 'provider']
16
        db.delete_unique('im_astakosuser', ['third_party_identifier', 'provider'])
17 15

  
16
        # Removing unique constraint on 'AstakosUser', fields ['third_party_identifier', 'provider']
17
        db.delete_unique(
18
            'im_astakosuser', ['third_party_identifier', 'provider'])
18 19

  
19 20
    models = {
20 21
        'auth.group': {

Also available in: Unified diff