Allow to to disable the saving of changed or deleted data.

Also it is possible to only save the information which fields were changed, not the data in it.
This commit is contained in:
Jan Böhmer 2020-02-23 21:04:16 +01:00
parent 2bc6a2be3c
commit b5bc096972
4 changed files with 76 additions and 5 deletions

14
.env
View file

@ -59,3 +59,17 @@ EMAIL_SENDER_EMAIL=noreply@partdb.changeme
# Set this to 1 to allow reset of a password per email
ALLOW_EMAIL_PW_RESET=0
######################################################################################
# History/Eventlog related settings
######################################################################################
# If you want to use full timetrave functionality
# Save which fields were changed in a ElementEdited log entry
HISTORY_SAVE_CHANGED_FIELDS=1
# Save the old data in the ElementEdited log entry (warning this could increase the database size in short time)
HISTORY_SAVE_CHANGED_DATA=0
# Save the data of an element that gets removed into log entry. This allows to undelete an element
HISTORY_SAVE_REMOVED_DATA=0