diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-08 15:29:18 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-08 15:29:18 -0400 |
commit | 5f26975cc42b012fba086b69f54fc81219bd3ff7 (patch) | |
tree | ddb124ede779c0eaf15f9f9990a78aa8521f225e /askbot/migrations/0122_auth_user__add_subscribed_tag_field.py | |
parent | fa03dbcf627b8024994d77663692b6fcfdd18895 (diff) | |
download | askbot-5f26975cc42b012fba086b69f54fc81219bd3ff7.tar.gz askbot-5f26975cc42b012fba086b69f54fc81219bd3ff7.tar.bz2 askbot-5f26975cc42b012fba086b69f54fc81219bd3ff7.zip |
fixed the migration
Diffstat (limited to 'askbot/migrations/0122_auth_user__add_subscribed_tag_field.py')
-rw-r--r-- | askbot/migrations/0122_auth_user__add_subscribed_tag_field.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/askbot/migrations/0122_auth_user__add_subscribed_tag_field.py b/askbot/migrations/0122_auth_user__add_subscribed_tag_field.py index 32070c37..d84666fb 100644 --- a/askbot/migrations/0122_auth_user__add_subscribed_tag_field.py +++ b/askbot/migrations/0122_auth_user__add_subscribed_tag_field.py @@ -4,13 +4,19 @@ from south.db import db from south.v2 import SchemaMigration from django.db import models - class Migration(SchemaMigration): - + def forwards(self, orm): -pass + try: + # Adding field 'User.interesting_tags' + db.add_column(u'auth_user', 'subscribed_tags', self.gf('django.db.models.fields.TextField')(blank=True, default = ''), keep_default=False) + except: + pass + def backwards(self, orm): -pass + # Deleting field 'User.interesting_tags' + db.delete_column('auth_user', 'subscribed_tags') + models = { 'askbot.activity': { 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, @@ -309,4 +315,4 @@ pass } } - complete_apps = ['askbot']
\ No newline at end of file + complete_apps = ['askbot'] |