Immediately before applying, check that the database is still in the same state as it was when you generated the diff script. If yes, apply. If no, abort.
Immediately before applying, check that the database is still in the same state as it was when you generated the diff script. If yes, apply. If no, abort.