Skip to content

Commit d641c75

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 1cd0f12 commit d641c75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roundup/backends/back_postgresql.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ class Database(rdbms_common.Database):
9090
arg = '%s'
9191

9292
def sql_open_connection(self):
93-
raise NotImplementedError, "Please don't use me just yet..."
9493
db = getattr(self.config, 'POSTGRESQL_DATABASE')
9594
try:
9695
conn = psycopg.connect(**db)
@@ -160,6 +159,11 @@ def fix_version_2_tables(self):
160159
c.execute('CREATE INDEX %ss_key_idx ON %ss(%s_key)'%(name, name,
161160
name))
162161

162+
def fix_version_3_tables(self):
163+
rdbms_common.Database.fix_version_3_tables(self)
164+
self.cursor.execute('''CREATE INDEX words_both_idx ON public.__words
165+
USING btree (_word, _textid)''')
166+
163167
def add_actor_column(self):
164168
# update existing tables to have the new actor column
165169
tables = self.database_schema['tables']

0 commit comments

Comments
 (0)