Added
- Added a new relation
bansto theCategoriesmodel. - Added a new relation
pending_poststo theCommunityUsersmodel.
Changed
-
The
set_childrenmethod in thecategoriesflow has been updated to handle preserving nested non-empty categories within empty categories. This change ensures that when a parent category is empty but contains a non-empty child category, the child category is preserved, archived, and hidden, while the parent category is deleted. -
The
deletemethod for categories has been updated to properly delete categories. This includes deleting all related data in the database, such as topics, subscriptions, bans, moderators, activity logs, category tags, category post logs, and category group categories. -
The
deletemethod in thetopicsmodel has been updated to clean up more tables and use themodel.deletemethod. This includes deleting related data in the database, such as pending posts, topic participants, user topic last seens, bans, subscriptions, and bookmarks. -
The
hard_deletemethod in thepending_postsmodel has been updated to also delete related activity logs when a pending post is hard deleted.
Misc
- Updated test suite to more carefully verify queries when performing deletion operations