X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/c3d66e36e08b517f61b7f720e4a3b5a75f202cb6..6f9524a34c490d43db43a1ae4b44b40d77ce691a:/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 799e13a..54ef078 100644 --- a/forum/migrations/0014_auto__add_field_question_accepted_answer.py +++ b/forum/migrations/0014_auto__add_field_question_accepted_answer.py @@ -13,8 +13,9 @@ class Migration(SchemaMigration): 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: + pass db.execute("DROP TRIGGER tsvectorupdate ON question;") - db.execute("ALTER TABLE question DROP COLUMN tsv;") + db.execute("ALTER TABLE question DROP COLUMN tsv;") def backwards(self, orm):