summaryrefslogtreecommitdiffstats
path: root/askbot/migrations/0026_add_seen_and_new_response_counts_to_user.py
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2012-12-24 21:40:01 +0000
committerMonty Taylor <mordred@inaugust.com>2012-12-24 21:47:24 +0000
commit2f8e4244747948e6bf2fe967d326dfa2d6f6366c (patch)
treef053a1d1d597057f5cb9de078c78e80245c620db /askbot/migrations/0026_add_seen_and_new_response_counts_to_user.py
parent13823c0ed6e0ec54e3068efa62b2fe889ef8d799 (diff)
downloadaskbot-2f8e4244747948e6bf2fe967d326dfa2d6f6366c.tar.gz
askbot-2f8e4244747948e6bf2fe967d326dfa2d6f6366c.tar.bz2
askbot-2f8e4244747948e6bf2fe967d326dfa2d6f6366c.zip
Fix fake migration errors so we can find the real ones.
Diffstat (limited to 'askbot/migrations/0026_add_seen_and_new_response_counts_to_user.py')
-rw-r--r--askbot/migrations/0026_add_seen_and_new_response_counts_to_user.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/askbot/migrations/0026_add_seen_and_new_response_counts_to_user.py b/askbot/migrations/0026_add_seen_and_new_response_counts_to_user.py
index 4cd05f83..8b6002bf 100644
--- a/askbot/migrations/0026_add_seen_and_new_response_counts_to_user.py
+++ b/askbot/migrations/0026_add_seen_and_new_response_counts_to_user.py
@@ -3,16 +3,14 @@ import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
+from askbot.migrations_api import safe_add_column
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding fields
- try:
- db.add_column('auth_user', 'new_response_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
- db.add_column('auth_user', 'seen_response_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
- except:
- pass
+ safe_add_column('auth_user', 'new_response_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
+ safe_add_column('auth_user', 'seen_response_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
def backwards(self, orm):
# Deleting fields