index.community/backend/priv/repo/migrations/20190807182941_remove_crawl_error.exs
2019-08-07 22:41:19 +03:00

17 lines
366 B
Elixir

defmodule Backend.Repo.Migrations.RemoveCrawlError do
use Ecto.Migration
def change do
execute("DELETE FROM crawls WHERE error IS NOT NULL", "")
alter table(:crawls) do
remove :error, :string
end
alter table(:instances) do
add :crawl_error, :string
add :crawl_error_count, :integer, default: 0, null: false
end
end
end