mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 16:16:34 +00:00
RUM: Remove vacuum analyze from migration
Can't be run in a trnasaction.
This commit is contained in:
parent
a3fc7294da
commit
022e6e4b44
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue