1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-22 16:03:25 +00:00
mobilizon/priv/repo/migrations/20210819161507_add_language_to_entities.exs
Thomas Citharel d577b07c6e
Introduce event language detection
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-08-20 18:01:29 +02:00

17 lines
366 B
Elixir

defmodule Mobilizon.Storage.Repo.Migrations.AddLanguageToEntities do
use Ecto.Migration
def change do
alter table(:events) do
add(:language, :string, default: "und")
end
alter table(:comments) do
add(:language, :string, default: "und")
end
alter table(:posts) do
add(:language, :string, default: "und")
end
end
end