File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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' ]
You can’t perform that action at this time.
0 commit comments