Merge branch 'fix-migration' into 'develop'

Fix migration in cases where database name has a hyphen

See merge request pleroma/pleroma!3359
This commit is contained in:
Haelwenn 2021-03-03 00:57:39 +00:00
commit 49afbcda5f
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ defmodule Pleroma.Repo.Migrations.AddDefaultTextSearchConfig do
def change do
execute("DO $$
BEGIN
execute 'ALTER DATABASE '||current_database()||' SET default_text_search_config = ''english'' ';
execute 'ALTER DATABASE \"'||current_database()||'\" SET default_text_search_config = ''english'' ';
END
$$;")
end