summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-11-01 10:43:53 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-11-01 10:43:53 -0400
commitbd37dd774dcd4e19e2096bc54e03ccfd698fdcff (patch)
tree9f6ac0d7f57d630fa841713b5924adb45b8021a2
parenta8ed6d104557c32ad12f57dedb286ab39a983d01 (diff)
downloadaskbot-bd37dd774dcd4e19e2096bc54e03ccfd698fdcff.tar.gz
askbot-bd37dd774dcd4e19e2096bc54e03ccfd698fdcff.tar.bz2
askbot-bd37dd774dcd4e19e2096bc54e03ccfd698fdcff.zip
fixed an MySQL issue with migration 22
-rw-r--r--askbot/migrations/0022_init_postgresql_full_text_search.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/askbot/migrations/0022_init_postgresql_full_text_search.py b/askbot/migrations/0022_init_postgresql_full_text_search.py
index 721db899..173c1f21 100644
--- a/askbot/migrations/0022_init_postgresql_full_text_search.py
+++ b/askbot/migrations/0022_init_postgresql_full_text_search.py
@@ -4,13 +4,14 @@ from south.db import db
from south.v2 import DataMigration
from django.db import models
from django.core import management
+from django.conf import settings
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
- management.call_command('init_postgresql_full_text_search')
-
+ if settings.DATABASE_ENGINE == 'postgresql_psycopg2':
+ management.call_command('init_postgresql_full_text_search')
def backwards(self, orm):
"Write your backwards methods here."