X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/4496d7188a21ea6706e3b8a9ca5742c64767c134..3860fda5909f0f756be78567e4961ea82a12c4a3:/forum/migrations/0014_auto__add_field_question_accepted_answer.py diff --git a/forum/migrations/0014_auto__add_field_question_accepted_answer.py b/forum/migrations/0014_auto__add_field_question_accepted_answer.py index c43ee8a..e73c960 100644 --- a/forum/migrations/0014_auto__add_field_question_accepted_answer.py +++ b/forum/migrations/0014_auto__add_field_question_accepted_answer.py @@ -3,6 +3,7 @@ import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models +from django.conf import settings class Migration(SchemaMigration): @@ -10,7 +11,10 @@ class Migration(SchemaMigration): # Adding field 'Question.accepted_answer' db.add_column(u'question', 'accepted_answer', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Answer'], unique=True, null=True), keep_default=False) - + + #if db.backend_name == "postgres" and not "pgfulltext" in settings.DISABLED_MODULES: + # db.execute("DROP TRIGGER tsvectorupdate ON question;") + # db.execute("ALTER TABLE question DROP COLUMN tsv;") def backwards(self, orm):