diff options
Diffstat (limited to 'askbot/migrations/0032_auto__del_field_badgedata_multiple__del_field_badgedata_description__d.py')
-rw-r--r-- | askbot/migrations/0032_auto__del_field_badgedata_multiple__del_field_badgedata_description__d.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/askbot/migrations/0032_auto__del_field_badgedata_multiple__del_field_badgedata_description__d.py b/askbot/migrations/0032_auto__del_field_badgedata_multiple__del_field_badgedata_description__d.py index 51817c95..d26bdeb0 100644 --- a/askbot/migrations/0032_auto__del_field_badgedata_multiple__del_field_badgedata_description__d.py +++ b/askbot/migrations/0032_auto__del_field_badgedata_multiple__del_field_badgedata_description__d.py @@ -27,7 +27,12 @@ class Migration(SchemaMigration): db.alter_column('askbot_badgedata', 'slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=50)) # Adding unique constraint on 'BadgeData', fields ['slug'] - db.create_unique('askbot_badgedata', ['slug']) + try:#work around the South 0.7.3 bug + db.start_transaction() + db.create_unique('askbot_badgedata', ['slug']) + db.commit_transaction() + except: + db.rollback_transaction() |