forked from e621ng/e621ng
disable statement timeout on migration
This commit is contained in:
parent
769f115ee1
commit
a4674e1ffe
@ -1,5 +1,6 @@
|
||||
class AddPrefixesToTags < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
execute "set statement_timeout = 0"
|
||||
execute "CREATE INDEX index_tags_on_name_prefix ON tags USING gin (REGEXP_REPLACE(name, '([a-z0-9])[a-z0-9'']*($|[^a-z0-9'']+)', '\1', 'g') gin_trgm_ops) WHERE post_count > 0"
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user