diff options
author | rinpatch <rinpatch@sdf.org> | 2019-10-08 15:16:39 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-10-08 15:16:39 +0300 |
commit | 32808208bef12996f819d21ca2635837aff98cbf (patch) | |
tree | 677e6798940b76be29771a9a574f544772c52e6b /priv/repo/migrations/20180516144508_add_trigram_extension.exs | |
parent | 44e0c5cabb157fe2cfc66af0167547ac51f98ff0 (diff) | |
download | pleroma-32808208bef12996f819d21ca2635837aff98cbf.tar.gz pleroma-32808208bef12996f819d21ca2635837aff98cbf.zip |
Enable `mix format` for migrations
Diffstat (limited to 'priv/repo/migrations/20180516144508_add_trigram_extension.exs')
-rw-r--r-- | priv/repo/migrations/20180516144508_add_trigram_extension.exs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/priv/repo/migrations/20180516144508_add_trigram_extension.exs b/priv/repo/migrations/20180516144508_add_trigram_extension.exs index f2f0fca86..ff0710f84 100644 --- a/priv/repo/migrations/20180516144508_add_trigram_extension.exs +++ b/priv/repo/migrations/20180516144508_add_trigram_extension.exs @@ -4,8 +4,15 @@ defmodule Pleroma.Repo.Migrations.AddTrigramExtension do def up do 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") + + 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") end |