Combine Activities and Objects into one table
Continuing work from: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3571
This is the general theory:
- Add missing fields and indexes to
objects
table INSERT INTO objects (SELECT * FROM activities);
- Edit activity.ex and change schema
"activities"
to schema"objects"
- ???
This MR includes the changes from !3570.
The server runs. Everything seems to be working. Some lazy tests fail because they are checking the results with Repo.one()
, and now there are multiple things in the same table.
There are a few more small things to take care of.
By keeping the Activity
module intact, it was not as hard as it seemed. Parts of that code could be rewritten in later MRs.
Edited by Alex Gleason