Add modification/creation dates to records #7977
Replies: 1 comment
-
We support this on some entities, with Laravel's The
Not a big need now, but something I'd like to support eventually. With our new event system, I'd like to fire an event with every add/edit/delete operation, which would allow a logging system to be built on top of the core code as needed. |
Beta Was this translation helpful? Give feedback.
-
In order to improve debugging in general (knowing when something started/stopped happening is very useful) it would be great if all database records had a modifed_date/created_date.
Cons
modified_date
Solution
DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
. PostgreSQL would need a trigger for themodified_date
.Comments
Beta Was this translation helpful? Give feedback.
All reactions