-import os\r
-from forum.models import KeyValue\r
-from django.db import connection, transaction\r
-import settings\r
-\r
-VERSION = 6\r
-\r
-if int(settings.PG_FTSTRIGGERS_VERSION) < VERSION:\r
- f = open(os.path.join(os.path.dirname(__file__), 'pg_fts_install.sql'), 'r')\r
-\r
- try:\r
- cursor = connection.cursor()\r
- cursor.execute(f.read())\r
- transaction.commit_unless_managed()\r
-\r
- settings.PG_FTSTRIGGERS_VERSION.set_value(VERSION)\r
- \r
- except Exception, e:\r
- #import sys, traceback\r
- #traceback.print_exc(file=sys.stdout)\r
- pass\r
- finally:\r
- cursor.close()\r
-\r
- f.close()\r
-\r
-import handlers\r
+import os
+from forum.models import KeyValue
+from django.db import connection, transaction
+import settings
+
+VERSION = 11
+
+if int(settings.PG_FTSTRIGGERS_VERSION) < VERSION:
+ f = open(os.path.join(os.path.dirname(__file__), 'pg_fts_install.sql'), 'r')
+
+ try:
+ cursor = connection.cursor()
+ cursor.execute(f.read())
+ transaction.commit_unless_managed()
+
+ settings.PG_FTSTRIGGERS_VERSION.set_value(VERSION)
+
+ except Exception, e:
+ #import sys, traceback
+ #traceback.print_exc(file=sys.stdout)
+ pass
+ finally:
+ cursor.close()
+
+ f.close()
+
+import handlers