Add admin interface to manage instances subscriptions

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-12-03 11:29:51 +01:00
parent 0a96d70348
commit 334d66bf5d
141 changed files with 4198 additions and 1923 deletions

View File

@@ -0,0 +1,19 @@
defmodule Mobilizon.Storage.Repo.Migrations.DeleteEventCascadeToComments do
use Ecto.Migration
def up do
drop_if_exists(constraint(:comments, "comments_event_id_fkey"))
alter table(:comments) do
modify(:event_id, references(:events, on_delete: :delete_all))
end
end
def down do
drop_if_exists(constraint(:comments, "comments_event_id_fkey"))
alter table(:comments) do
modify(:event_id, references(:events, on_delete: :nothing))
end
end
end