Can I use a procedure to store history log before ON DELETE CASCADE(user, orders) ?
I am thinking I want to delete orders associated with users when we/they delete their accounts. I’m not convinced this is the best procedure(as the orders table should be its own entity), however I would like to know if it’s possible to step in and log each order(history) to a txt file or another table.
Regards
Not sure about file, but can store history data in another table using trigger. Here is the code.