I have two websites, one master, one slave client (gotta be PC). Each has a SQL database. I'm working on a function to sync the two, but I need to detect if an entry has been deleted on one and not the other. Example:
Master: Apple, Orange, Banana
Client: Apple, Orange, Banana
Then the master user deletes Orange. A naive implementation would propagate Orange from client back to Master. How can I set it up so that either master or client can delete an entry, and it will be deleted on the other end?