Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / migrations / 0007_auto__chg_field_astakosuser_email_verified__chg_field_astakosuser_has_.py @ c56cceaf

History | View | Annotate | Download (8.9 kB)

1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

    
7
class Migration(SchemaMigration):
8
    
9
    def forwards(self, orm):
10
        
11
        # Changing field 'AstakosUser.email_verified'
12
        db.alter_column('im_astakosuser', 'email_verified', self.gf('django.db.models.fields.BooleanField')(blank=True))
13

    
14
        # Changing field 'AstakosUser.has_credits'
15
        db.alter_column('im_astakosuser', 'has_credits', self.gf('django.db.models.fields.BooleanField')(blank=True))
16

    
17
        # Changing field 'AstakosUser.date_signed_terms'
18
        db.alter_column('im_astakosuser', 'date_signed_terms', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True))
19

    
20
        # Changing field 'AstakosUser.is_verified'
21
        db.alter_column('im_astakosuser', 'is_verified', self.gf('django.db.models.fields.BooleanField')(blank=True))
22

    
23
        # Changing field 'AstakosUser.has_signed_terms'
24
        db.alter_column('im_astakosuser', 'has_signed_terms', self.gf('django.db.models.fields.BooleanField')(blank=True))
25

    
26
        # Changing field 'Invitation.is_accepted'
27
        db.alter_column('im_invitation', 'is_accepted', self.gf('django.db.models.fields.BooleanField')(blank=True))
28

    
29
        # Changing field 'Invitation.is_consumed'
30
        db.alter_column('im_invitation', 'is_consumed', self.gf('django.db.models.fields.BooleanField')(blank=True))
31
    
32
    
33
    def backwards(self, orm):
34
        
35
        # Changing field 'AstakosUser.email_verified'
36
        db.alter_column('im_astakosuser', 'email_verified', self.gf('django.db.models.fields.BooleanField')())
37

    
38
        # Changing field 'AstakosUser.has_credits'
39
        db.alter_column('im_astakosuser', 'has_credits', self.gf('django.db.models.fields.BooleanField')())
40

    
41
        # Changing field 'AstakosUser.date_signed_terms'
42
        db.alter_column('im_astakosuser', 'date_signed_terms', self.gf('django.db.models.fields.DateTimeField')(null=True))
43

    
44
        # Changing field 'AstakosUser.is_verified'
45
        db.alter_column('im_astakosuser', 'is_verified', self.gf('django.db.models.fields.BooleanField')())
46

    
47
        # Changing field 'AstakosUser.has_signed_terms'
48
        db.alter_column('im_astakosuser', 'has_signed_terms', self.gf('django.db.models.fields.BooleanField')())
49

    
50
        # Changing field 'Invitation.is_accepted'
51
        db.alter_column('im_invitation', 'is_accepted', self.gf('django.db.models.fields.BooleanField')())
52

    
53
        # Changing field 'Invitation.is_consumed'
54
        db.alter_column('im_invitation', 'is_consumed', self.gf('django.db.models.fields.BooleanField')())
55
    
56
    
57
    models = {
58
        'auth.group': {
59
            'Meta': {'object_name': 'Group'},
60
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
61
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
62
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
63
        },
64
        'auth.permission': {
65
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
66
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
67
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
68
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
70
        },
71
        'auth.user': {
72
            'Meta': {'object_name': 'User'},
73
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
74
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
75
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
76
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
77
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
79
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
80
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
81
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
82
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
83
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
84
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
85
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
86
        },
87
        'contenttypes.contenttype': {
88
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
89
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
90
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
91
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
92
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
93
        },
94
        'im.approvalterms': {
95
            'Meta': {'object_name': 'ApprovalTerms'},
96
            'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2012, 5, 3, 11, 47, 35, 79841)', 'db_index': 'True'}),
97
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
98
            'location': ('django.db.models.fields.CharField', [], {'max_length': '255'})
99
        },
100
        'im.astakosuser': {
101
            'Meta': {'object_name': 'AstakosUser', '_ormbases': ['auth.User']},
102
            'affiliation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
103
            'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
104
            'auth_token_created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
105
            'auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
106
            'date_signed_terms': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
107
            'email_verified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
108
            'has_credits': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
109
            'has_signed_terms': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
110
            'invitations': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
111
            'is_verified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
112
            'level': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
113
            'provider': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
114
            'third_party_identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
115
            'updated': ('django.db.models.fields.DateTimeField', [], {}),
116
            'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'})
117
        },
118
        'im.invitation': {
119
            'Meta': {'object_name': 'Invitation'},
120
            'accepted': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
121
            'code': ('django.db.models.fields.BigIntegerField', [], {'db_index': 'True'}),
122
            'consumed': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
123
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
124
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
125
            'inviter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invitations_sent'", 'null': 'True', 'to': "orm['im.AstakosUser']"}),
126
            'is_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
127
            'is_consumed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
128
            'realname': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
129
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
130
        }
131
    }
132
    
133
    complete_apps = ['im']