ash_hq/priv/repo/migrations/20220721171454_remove_search_indexes.exs

20 lines
323 B
Elixir
Raw Normal View History

defmodule AshHq.Repo.Migrations.RemoveSearchIndexes do
use Ecto.Migration
@tables [
:guides,
:library_versions,
:options,
:dsls,
:extensions,
:functions,
:modules
]
def change do
for table <- @tables do
execute("DROP INDEX IF EXISTS #{table}_search_index")
end
end
end