Trigger Custom Code on Field Change/Update

If I understand correctly, the piece of the puzzle that you’re missing is fetched_row which you can use inside the hook to inspect what were the values before.

Here is an example, and you’ll find more if you need them