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