2 from forum.models import KeyValue
3 from django.db import connection, transaction
8 if int(settings.PG_FTSTRIGGERS_VERSION) < VERSION:
9 f = open(os.path.join(os.path.dirname(__file__), 'pg_fts_install.sql'), 'r')
12 cursor = connection.cursor()
13 cursor.execute(f.read())
14 transaction.commit_unless_managed()
16 settings.PG_FTSTRIGGERS_VERSION.set_value(VERSION)
19 #import sys, traceback
20 #traceback.print_exc(file=sys.stdout)