]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/migrations/0014_auto__add_field_question_accepted_answer.py
More data handled by the exporter, and a improved "pickled" value parsing.
[osqa.git] / forum / migrations / 0014_auto__add_field_question_accepted_answer.py
index c43ee8a4f6274dabad1b09b9caccebb486b9e0e4..e73c960be836a279edcaf1f7f55a02e041055d6a 100644 (file)
@@ -3,6 +3,7 @@ import datetime
 from south.db import db\r
 from south.v2 import SchemaMigration\r
 from django.db import models\r
+from django.conf import settings\r
 \r
 class Migration(SchemaMigration):\r
     \r
@@ -10,7 +11,10 @@ class Migration(SchemaMigration):
         \r
         # Adding field 'Question.accepted_answer'\r
         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)\r
-    \r
+\r
+        #if db.backend_name == "postgres" and not "pgfulltext" in settings.DISABLED_MODULES:\r
+        #    db.execute("DROP TRIGGER tsvectorupdate ON question;")\r
+        #    db.execute("ALTER TABLE question DROP COLUMN tsv;")\r
     \r
     def backwards(self, orm):\r
         \r