commit: 49afbcda5f47ce48565ae07da3db990ad6cbb767
parent 37c37090fab4c6efa138f35f6e2ec7d77a50644b
Author: Haelwenn <contact+git.pleroma.social@hacktivis.me>
Date: Wed, 3 Mar 2021 00:57:39 +0000
Merge branch 'fix-migration' into 'develop'
Fix migration in cases where database name has a hyphen
See merge request pleroma/pleroma!3359
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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