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

19 lines
323 B
Elixir

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