Welcome Guest, Not a member yet? Register   Sign In
Logging database changes
#1

I need to track all the changes of data to the database to be able to find out later who did what in the application. I do not need it to be user-friendly (although that would be nice). I imaginge I could log all database inserts/updates/deletes using a database table like this:
user_id
table_name
entry_id
action_type
logged_data (serialized)
Has anyone done anything like that? Could you share your code or refer me to some code online?
It would be especially great if it could be done using a hook - without changing every single controller...
==

Donatas G.
Reply
#2

See https://forum.codeigniter.com/thread-73284.html
It might help you.
Reply
#3

(12-02-2021, 07:11 PM)kenjis Wrote: See https://forum.codeigniter.com/thread-73284.html
It might help you.
Yes, thank you, it is something to look at. I will ask the author if it can be extended to also save the data as a serialized array...
==

Donatas G.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB