gororobas
gororobas copied to clipboard
[DB] Rehaul how HistoryLog is generated
- Modify update triggers to persist a diff of the JSON structure instead of the full new/old objects
- Store target raw IDs to make it easier to query all logs for an entity, even deleted ones
- Given we'll be able to reconstruct the objects, no need to store the
oldobject in delete operations