Initial commit. Move from pithos repository.
[astakos] / astakos / im / migrations / 0002_auto__add_field_user_is_verified.py
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         # Adding field 'User.is_verified'
12         db.add_column('im_user', 'is_verified', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
13
14
15     def backwards(self, orm):
16         
17         # Deleting field 'User.is_verified'
18         db.delete_column('im_user', 'is_verified')
19
20
21     models = {
22         'im.invitation': {
23             'Meta': {'object_name': 'Invitation'},
24             'accepted': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
25             'code': ('django.db.models.fields.BigIntegerField', [], {'db_index': 'True'}),
26             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
27             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
28             'inviter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invitations_sent'", 'null': 'True', 'to': "orm['im.User']"}),
29             'is_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
30             'realname': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
31             'uniq': ('django.db.models.fields.CharField', [], {'max_length': '255'})
32         },
33         'im.user': {
34             'Meta': {'object_name': 'User'},
35             'affiliation': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
36             'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
37             'auth_token_created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
38             'auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
39             'created': ('django.db.models.fields.DateTimeField', [], {}),
40             'email': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
41             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42             'invitations': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
43             'is_admin': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
44             'is_verified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
45             'level': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
46             'password': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
47             'realname': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
48             'state': ('django.db.models.fields.CharField', [], {'default': "'ACTIVE'", 'max_length': '16'}),
49             'uniq': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
50             'updated': ('django.db.models.fields.DateTimeField', [], {})
51         }
52     }
53
54     complete_apps = ['im']