ソースを参照

RUM: Remove vacuum analyze from migration

Can't be run in a trnasaction.
tags/v1.1.4
lain 5年前
コミット
022e6e4b44
1個のファイルの変更0行の追加2行の削除
  1. +0
    -2
      priv/repo/optional_migrations/rum_indexing/20190510135645_add_fts_index_to_objects_two.exs

+ 0
- 2
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

読み込み中…
キャンセル
保存