Skip to content

Combine Activities and Objects into one table

Alex Gleason requested to merge operation-warpsneed into develop

This is the general theory:

  1. Add missing fields and indexes to objects table
  2. INSERT INTO objects (SELECT * FROM activities);
  3. Edit activity.ex and change schema "activities" to schema "objects"
  4. ???

This MR includes the changes from !3570 (closed).

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

Merge request reports