Introduce event language detection

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-08-19 20:43:35 +02:00
parent 7c9b76765f
commit d577b07c6e
16 changed files with 206 additions and 15 deletions

View File

@@ -0,0 +1,17 @@
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