RUM: Remove vacuum analyze from migration
authorlain <lain@soykaf.club>
Fri, 17 May 2019 12:59:01 +0000 (14:59 +0200)
committerlain <lain@soykaf.club>
Fri, 17 May 2019 12:59:01 +0000 (14:59 +0200)
Can't be run in a trnasaction.

priv/repo/optional_migrations/rum_indexing/20190510135645_add_fts_index_to_objects_two.exs

index 09e6cbfb1167fd28fb8fbe6651996cfa385fa3bf..b6a24441ad82ebdfcb32ec8b0d64469dfd53f9b9 100644 (file)
@@ -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