server/priv/repo/migrations/20231205230009_language_pos...

17 lines
372 B
Elixir
Raw Normal View History

2023-12-05 23:06:25 +00:00
defmodule BoardWise.Repo.Migrations.LanguagePos do
use Ecto.Migration
alias BoardWise.Languages.Language
@prefix "coach_scraper"
def change do
# We'll just recreate all the entries in the table.
BoardWise.Repo.delete_all(Language, prefix: @prefix)
alter table(:languages, prefix: @prefix) do
add :pos, :integer, null: false
end
end
end