Skip to content

Commit

Permalink
fix: remove 'public' schema from __words table in fix_version_3_tables
Browse files Browse the repository at this point in the history
If you are using a different schema than public, fix_version_3_tables
crashes on the migration/setup.

Nothing else n the postgresql code uses an explicit public schema.

This removes an impediment for those wanting to use schemas rather
than databases as the primary organizational structure.

See: issue2551299

Also see: issue2550852 for code to allow use of schemas as a first
class config parameter.
  • Loading branch information
rouilj committed Dec 19, 2023
1 parent bfc6342 commit 17acc4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roundup/backends/back_postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def fix_version_2_tables(self):

def fix_version_3_tables(self):
rdbms_common.Database.fix_version_3_tables(self)
self.sql('''CREATE INDEX words_both_idx ON public.__words
self.sql('''CREATE INDEX words_both_idx ON __words
USING btree (_word, _textid)''')

def _add_fts_table(self):
Expand Down

0 comments on commit 17acc4e

Please sign in to comment.