mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 04:43:58 +00:00
We add general code that will archive models that are tied to a specific Message (such as Reactions and SubMessages). Certain details of the model are grabbed from a list models_with_message_key, and then used to create queries that will archive these database tables. We put Reaction in that list in this commit, and add appropriate tests. To have archiving of other analogical models (for example SubMessage), one only needs to make an appropriate entry in the models_with_message_key list.
10 KiB
10 KiB