]> Untitled Git - lemmy.git/commit
Update community statistics after post or comment is deleted by user (#2193)
authorRens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl>
Wed, 27 Apr 2022 16:12:41 +0000 (18:12 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Apr 2022 16:12:41 +0000 (16:12 +0000)
commit9c1b9ff3cf198d829630d3d4ab0c03985ecc732f
tree8d65427351a529bdd6e527d2e78914a1dfe28b21
parentc71888247948a69fc7a772ca397603d0b44e5222
Update community statistics after post or comment is deleted by user (#2193)

* Update community statistics after post or comment is deleted by user

* Update triggers for site and person aggregates

* Restore comment counts when post is restored

* Simplify insertion/deletion trigger checks before updating statistics
migrations/2022-04-04-183652_update_community_aggregates_on_soft_delete/down.sql [new file with mode: 0644]
migrations/2022-04-04-183652_update_community_aggregates_on_soft_delete/up.sql [new file with mode: 0644]