aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2022-01-02 13:13:14 -0600
committerAlex Gleason <alex@alexgleason.me>2022-01-02 13:13:14 -0600
commit26b0cbfd060abd6f158aa2491dc984165d0a1d37 (patch)
tree0843700b3a6f1ec393eb16c68360b1e893368e73
parent1654b7fd6128927d822b837cae251da70805f22f (diff)
downloadpleroma-26b0cbfd060abd6f158aa2491dc984165d0a1d37.tar.gz
ChangeObjectIdToFlake: add "on delete cascade" to deliveries fkey
-rw-r--r--priv/repo/migrations/20211218181632_change_object_id_to_flake.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/repo/migrations/20211218181632_change_object_id_to_flake.exs b/priv/repo/migrations/20211218181632_change_object_id_to_flake.exs
index a4533b2ab..da62063f5 100644
--- a/priv/repo/migrations/20211218181632_change_object_id_to_flake.exs
+++ b/priv/repo/migrations/20211218181632_change_object_id_to_flake.exs
@@ -34,7 +34,7 @@ defmodule Pleroma.Repo.Migrations.ChangeObjectIdToFlake do
execute("""
alter table deliveries
alter column object_id set data type uuid using cast( lpad( to_hex(object_id), 32, '0') as uuid),
- add constraint deliveries_object_id_fkey foreign key (object_id) references objects(id)
+ add constraint deliveries_object_id_fkey foreign key (object_id) references objects(id) on delete cascade
""")
# Update hashtag many-to-many foreign key