Merge develop branch upstream
This commit is contained in:
commit
5d279a22b1
113 changed files with 909 additions and 560 deletions
|
|
@ -0,0 +1,19 @@
|
|||
defmodule Pleroma.Repo.Migrations.DeleteHashtagsObjectsCascade do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
execute("ALTER TABLE hashtags_objects DROP CONSTRAINT hashtags_objects_object_id_fkey")
|
||||
|
||||
alter table(:hashtags_objects) do
|
||||
modify(:object_id, references(:objects, on_delete: :delete_all))
|
||||
end
|
||||
end
|
||||
|
||||
def down do
|
||||
execute("ALTER TABLE hashtags_objects DROP CONSTRAINT hashtags_objects_object_id_fkey")
|
||||
|
||||
alter table(:hashtags_objects) do
|
||||
modify(:object_id, references(:objects, on_delete: :nothing))
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue