From: Mark Felder Date: Wed, 3 Mar 2021 00:17:32 +0000 (-0600) Subject: Fix migration in cases where database name has a hyphen X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5b8cceba09bda6a01adee4939e3c2521c2ea037e;p=akkoma Fix migration in cases where database name has a hyphen --- diff --git a/priv/repo/migrations/20210121080964_add_default_text_search_config.exs b/priv/repo/migrations/20210121080964_add_default_text_search_config.exs index 09b6cccc9..27f600b70 100644 --- a/priv/repo/migrations/20210121080964_add_default_text_search_config.exs +++ b/priv/repo/migrations/20210121080964_add_default_text_search_config.exs @@ -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