Fix migration in cases where database name has a hyphen

stable
Mark Felder 4 years ago
parent 37c37090fa
commit 5b8cceba09

@ -4,7 +4,7 @@ defmodule Pleroma.Repo.Migrations.AddDefaultTextSearchConfig do
def change do def change do
execute("DO $$ execute("DO $$
BEGIN 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
$$;") $$;")
end end

Loading…
Cancel
Save