aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-05-17 14:59:01 +0200
committerlain <lain@soykaf.club>2019-05-17 14:59:01 +0200
commit022e6e4b44229be70f0ec6720a66610a0e2a403a (patch)
tree8987eabd1d3a9d82148c60d7ef6b569d17b93ab2
parenta3fc7294da43a7e2d17626200e8d3bf5c05808d3 (diff)
downloadpleroma-022e6e4b44229be70f0ec6720a66610a0e2a403a.tar.gz
RUM: Remove vacuum analyze from migration
Can't be run in a trnasaction.
-rw-r--r--priv/repo/optional_migrations/rum_indexing/20190510135645_add_fts_index_to_objects_two.exs2
1 files changed, 0 insertions, 2 deletions
diff --git a/priv/repo/optional_migrations/rum_indexing/20190510135645_add_fts_index_to_objects_two.exs b/priv/repo/optional_migrations/rum_indexing/20190510135645_add_fts_index_to_objects_two.exs
index 09e6cbfb1..b6a24441a 100644
--- a/priv/repo/optional_migrations/rum_indexing/20190510135645_add_fts_index_to_objects_two.exs
+++ b/priv/repo/optional_migrations/rum_indexing/20190510135645_add_fts_index_to_objects_two.exs
@@ -20,7 +20,6 @@ defmodule Pleroma.Repo.Migrations.AddFtsIndexToObjectsTwo do
FOR EACH ROW EXECUTE PROCEDURE objects_fts_update()")
execute("UPDATE objects SET updated_at = NOW()")
- execute("vacuum analyze")
end
def down do
@@ -31,6 +30,5 @@ defmodule Pleroma.Repo.Migrations.AddFtsIndexToObjectsTwo do
remove(:fts_content, :tsvector)
end
create index(:objects, ["(to_tsvector('english', data->>'content'))"], using: :gin, name: :objects_fts)
- execute("vacuum analyze")
end
end