Added a new options: loggable.ComputeDiff
When this options is set, all changed fields tagged with gorm-loggable: true will be saved into ChangeLog.RawDiff. Also, CreatedBy field was added to the record because that's quite common to know who did the change and when. Most of the time you will want to just display a history of changes and who did those changes and when.
Tried to replicate Doctrine Loggable Extension behaviour.
Added a new options:
loggable.ComputeDiff
When this options is set, all changed fields tagged withgorm-loggable: true
will be saved intoChangeLog.RawDiff
. Also, CreatedBy field was added to the record because that's quite common to know who did the change and when. Most of the time you will want to just display a history of changes and who did those changes and when.Tried to replicate Doctrine Loggable Extension behaviour.