aboutsummaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20180516144508_add_trigram_extension.exs
diff options
context:
space:
mode:
Diffstat (limited to 'priv/repo/migrations/20180516144508_add_trigram_extension.exs')
-rw-r--r--priv/repo/migrations/20180516144508_add_trigram_extension.exs25
1 files changed, 14 insertions, 11 deletions
diff --git a/priv/repo/migrations/20180516144508_add_trigram_extension.exs b/priv/repo/migrations/20180516144508_add_trigram_extension.exs
index ff0710f84..8ef6e340d 100644
--- a/priv/repo/migrations/20180516144508_add_trigram_extension.exs
+++ b/priv/repo/migrations/20180516144508_add_trigram_extension.exs
@@ -3,20 +3,23 @@ defmodule Pleroma.Repo.Migrations.AddTrigramExtension do
require Logger
def up do
- Logger.warn("ATTENTION ATTENTION ATTENTION\n")
+ # Logger.warn("ATTENTION ATTENTION ATTENTION\n")
+ #
+ # Logger.warn(
+ # "This will try to create the pg_trgm extension on your database. If your database user does NOT have the necessary rights, you will have to do it manually and re-run the migrations.\nYou can probably do this by running the following:\n"
+ # )
+ #
+ # Logger.warn(
+ # "sudo -u postgres psql pleroma_dev -c \"create extension if not exists pg_trgm\"\n"
+ # )
+ #
+ # execute("create extension if not exists pg_trgm")
- Logger.warn(
- "This will try to create the pg_trgm extension on your database. If your database user does NOT have the necessary rights, you will have to do it manually and re-run the migrations.\nYou can probably do this by running the following:\n"
- )
-
- Logger.warn(
- "sudo -u postgres psql pleroma_dev -c \"create extension if not exists pg_trgm\"\n"
- )
-
- execute("create extension if not exists pg_trgm")
+ :ok
end
def down do
- execute("drop extension if exists pg_trgm")
+ # execute("drop extension if exists pg_trgm")
+ :ok
end
end