summaryrefslogtreecommitdiff
path: root/priv/repo/migrations
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2021-02-11 19:31:57 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2021-02-11 19:31:57 +0300
commit5992382cf86d89879b7a8e2dcbf26e910634a73a (patch)
tree56962d73ef162757190a5e1bfa37f1ba110d9907 /priv/repo/migrations
parenta996ab46a54acbfa7a19da3eae12c78ed6466a1a (diff)
parent2cf753c5022dd7178d882e36e25b3a40dc403eff (diff)
downloadpleroma-5992382cf86d89879b7a8e2dcbf26e910634a73a.tar.gz
pleroma-5992382cf86d89879b7a8e2dcbf26e910634a73a.zip
Merge remote-tracking branch 'remotes/origin/develop' into feature/object-hashtags-rework
# Conflicts: # CHANGELOG.md # lib/mix/tasks/pleroma/database.ex # lib/pleroma/web/templates/feed/feed/_activity.rss.eex
Diffstat (limited to 'priv/repo/migrations')
-rw-r--r--priv/repo/migrations/20210121080964_add_default_text_search_config.exs11
1 files changed, 11 insertions, 0 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
new file mode 100644
index 000000000..09b6cccc9
--- /dev/null
+++ b/priv/repo/migrations/20210121080964_add_default_text_search_config.exs
@@ -0,0 +1,11 @@
+defmodule Pleroma.Repo.Migrations.AddDefaultTextSearchConfig do
+ use Ecto.Migration
+
+ def change do
+ execute("DO $$
+ BEGIN
+ execute 'ALTER DATABASE '||current_database()||' SET default_text_search_config = ''english'' ';
+ END
+ $$;")
+ end
+end