akkoma/priv/repo/migrations/20220302013920_add_language...

16 lines
278 B
Elixir

defmodule Pleroma.Repo.Migrations.AddLanguageToUsers do
use Ecto.Migration
def up do
alter table(:users) do
add_if_not_exists(:language, :string)
end
end
def down do
alter table(:users) do
remove_if_exists(:language, :string)
end
end
end