Introduce event categories

Closes #1056

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-03-28 17:42:59 +02:00
parent 91ed13d5c2
commit f5bdedf789
21 changed files with 371 additions and 77 deletions

View File

@@ -0,0 +1,11 @@
defmodule Mobilizon.Storage.Repo.Migrations.SetAllEventsCategoryToMeeting do
use Ecto.Migration
def up do
Ecto.Migration.execute("UPDATE events SET category = 'MEETING'")
end
def down do
Ecto.Migration.execute("UPDATE events SET category = 'meeting' WHERE category = 'MEETING'")
end
end