diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2021-03-03 00:57:39 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2021-03-03 00:57:39 +0000 |
commit | 49afbcda5f47ce48565ae07da3db990ad6cbb767 (patch) | |
tree | ffe1d4a8c569213907883283095bb6cfe42b7bd7 | |
parent | 37c37090fab4c6efa138f35f6e2ec7d77a50644b (diff) | |
parent | 5b8cceba09bda6a01adee4939e3c2521c2ea037e (diff) | |
download | pleroma-49afbcda5f47ce48565ae07da3db990ad6cbb767.tar.gz |
Merge branch 'fix-migration' into 'develop'
Fix migration in cases where database name has a hyphen
See merge request pleroma/pleroma!3359
-rw-r--r-- | priv/repo/migrations/20210121080964_add_default_text_search_config.exs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |