sas1024 / gorm-loggable

Loggable plugin for GORM
MIT License
28 stars 22 forks source link

Save the change set into ChangeLog record. #14

Closed vcraescu closed 5 years ago

vcraescu commented 5 years ago

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.

vcraescu commented 5 years ago

ping!

vcraescu commented 5 years ago

ping!

sas1024 commented 5 years ago

ping!

pong :)

sas1024 commented 5 years ago

One more thing - it's need to describe new feature in README.md

vcraescu commented 5 years ago

@sas1024 I did the changes you requested. Please check!

Thanks!

vcraescu commented 5 years ago

ping! :smile: