Revision 5ce3ce4f snf-astakos-app/astakos/im/migrations/0005_auto__add_field_astakosuser_has_credits.py
b/snf-astakos-app/astakos/im/migrations/0005_auto__add_field_astakosuser_has_credits.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 |
|
|
9 | 10 |
# Adding field 'AstakosUser.has_credits' |
10 | 11 |
db.add_column('im_astakosuser', 'has_credits', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) |
11 | 12 |
|
12 |
|
|
13 | 13 |
def backwards(self, orm): |
14 |
|
|
14 |
|
|
15 | 15 |
# Deleting field 'AstakosUser.has_credits' |
16 | 16 |
db.delete_column('im_astakosuser', 'has_credits') |
17 | 17 |
|
18 |
|
|
19 | 18 |
models = { |
20 | 19 |
'auth.group': { |
21 | 20 |
'Meta': {'object_name': 'Group'}, |
Also available in: Unified diff