mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 03:17:51 +00:00
3a13f91fff
This is useful for people who want to migrate back to Pleroma. It's also added in the docs, but also noted that this is barely tested and to be used at their own risk.
15 lines
278 B
Elixir
15 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
|