logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 5b8cceba09bda6a01adee4939e3c2521c2ea037e
parent 37c37090fab4c6efa138f35f6e2ec7d77a50644b
Author: Mark Felder <feld@feld.me>
Date:   Tue,  2 Mar 2021 18:17:32 -0600

Fix migration in cases where database name has a hyphen

Diffstat:

Mpriv/repo/migrations/20210121080964_add_default_text_search_config.exs2+-
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