Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / migrations / 0002_auto__add_field_astakosuser_third_party_identifier.py @ 304acb60

History | View | Annotate | Download (6 kB)

1 805c6378 Sofia Papagiannaki
# encoding: utf-8
2 805c6378 Sofia Papagiannaki
import datetime
3 805c6378 Sofia Papagiannaki
from south.db import db
4 805c6378 Sofia Papagiannaki
from south.v2 import SchemaMigration
5 805c6378 Sofia Papagiannaki
from django.db import models
6 805c6378 Sofia Papagiannaki
7 805c6378 Sofia Papagiannaki
class Migration(SchemaMigration):
8 805c6378 Sofia Papagiannaki
9 805c6378 Sofia Papagiannaki
    def forwards(self, orm):
10 805c6378 Sofia Papagiannaki
        
11 805c6378 Sofia Papagiannaki
        # Adding field 'AstakosUser.third_party_identifier'
12 805c6378 Sofia Papagiannaki
        db.add_column('im_astakosuser', 'third_party_identifier', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True), keep_default=False)
13 805c6378 Sofia Papagiannaki
14 805c6378 Sofia Papagiannaki
15 805c6378 Sofia Papagiannaki
    def backwards(self, orm):
16 805c6378 Sofia Papagiannaki
        
17 805c6378 Sofia Papagiannaki
        # Deleting field 'AstakosUser.third_party_identifier'
18 805c6378 Sofia Papagiannaki
        db.delete_column('im_astakosuser', 'third_party_identifier')
19 805c6378 Sofia Papagiannaki
20 805c6378 Sofia Papagiannaki
21 805c6378 Sofia Papagiannaki
    models = {
22 805c6378 Sofia Papagiannaki
        'auth.group': {
23 805c6378 Sofia Papagiannaki
            'Meta': {'object_name': 'Group'},
24 805c6378 Sofia Papagiannaki
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25 805c6378 Sofia Papagiannaki
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
26 805c6378 Sofia Papagiannaki
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
27 805c6378 Sofia Papagiannaki
        },
28 805c6378 Sofia Papagiannaki
        'auth.permission': {
29 805c6378 Sofia Papagiannaki
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
30 805c6378 Sofia Papagiannaki
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
31 805c6378 Sofia Papagiannaki
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
32 805c6378 Sofia Papagiannaki
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33 805c6378 Sofia Papagiannaki
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
34 805c6378 Sofia Papagiannaki
        },
35 805c6378 Sofia Papagiannaki
        'auth.user': {
36 805c6378 Sofia Papagiannaki
            'Meta': {'object_name': 'User'},
37 805c6378 Sofia Papagiannaki
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
38 805c6378 Sofia Papagiannaki
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
39 805c6378 Sofia Papagiannaki
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
40 805c6378 Sofia Papagiannaki
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
41 805c6378 Sofia Papagiannaki
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42 805c6378 Sofia Papagiannaki
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
43 805c6378 Sofia Papagiannaki
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
44 805c6378 Sofia Papagiannaki
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
45 805c6378 Sofia Papagiannaki
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
46 805c6378 Sofia Papagiannaki
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
47 805c6378 Sofia Papagiannaki
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
48 805c6378 Sofia Papagiannaki
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
49 805c6378 Sofia Papagiannaki
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
50 805c6378 Sofia Papagiannaki
        },
51 805c6378 Sofia Papagiannaki
        'contenttypes.contenttype': {
52 805c6378 Sofia Papagiannaki
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
53 805c6378 Sofia Papagiannaki
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
54 805c6378 Sofia Papagiannaki
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
55 805c6378 Sofia Papagiannaki
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
56 805c6378 Sofia Papagiannaki
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
57 805c6378 Sofia Papagiannaki
        },
58 805c6378 Sofia Papagiannaki
        'im.astakosuser': {
59 805c6378 Sofia Papagiannaki
            'Meta': {'object_name': 'AstakosUser', '_ormbases': ['auth.User']},
60 805c6378 Sofia Papagiannaki
            'affiliation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
61 805c6378 Sofia Papagiannaki
            'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
62 805c6378 Sofia Papagiannaki
            'auth_token_created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
63 805c6378 Sofia Papagiannaki
            'auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
64 805c6378 Sofia Papagiannaki
            'invitations': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
65 805c6378 Sofia Papagiannaki
            'is_verified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
66 805c6378 Sofia Papagiannaki
            'level': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
67 805c6378 Sofia Papagiannaki
            'provider': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
68 805c6378 Sofia Papagiannaki
            'third_party_identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
69 805c6378 Sofia Papagiannaki
            'updated': ('django.db.models.fields.DateTimeField', [], {}),
70 805c6378 Sofia Papagiannaki
            'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'})
71 805c6378 Sofia Papagiannaki
        },
72 805c6378 Sofia Papagiannaki
        'im.invitation': {
73 805c6378 Sofia Papagiannaki
            'Meta': {'object_name': 'Invitation'},
74 805c6378 Sofia Papagiannaki
            'accepted': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
75 805c6378 Sofia Papagiannaki
            'code': ('django.db.models.fields.BigIntegerField', [], {'db_index': 'True'}),
76 805c6378 Sofia Papagiannaki
            'consumed': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
77 805c6378 Sofia Papagiannaki
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
78 805c6378 Sofia Papagiannaki
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79 805c6378 Sofia Papagiannaki
            'inviter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invitations_sent'", 'null': 'True', 'to': "orm['im.AstakosUser']"}),
80 805c6378 Sofia Papagiannaki
            'is_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81 805c6378 Sofia Papagiannaki
            'is_consumed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
82 805c6378 Sofia Papagiannaki
            'realname': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
83 805c6378 Sofia Papagiannaki
            'username': ('django.db.models.fields.CharField', [], {'max_length': '255'})
84 805c6378 Sofia Papagiannaki
        }
85 805c6378 Sofia Papagiannaki
    }
86 805c6378 Sofia Papagiannaki
87 805c6378 Sofia Papagiannaki
    complete_apps = ['im']