Introduce event categories
Closes #1056 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user