| If you're doing a update/delete/insert in prod because you really have to (I had this a couple times in the last few months): - reproduce the issue and fix locally, with prod data copied over if needed (better than guessing) - save (back up) all data that is being changed somewhere, even if it's on your local machine temporarily (again, better than not having it) - if your datastore has transactions, run the change and a confirmation query in a transaction/rollback several times before committing - don't hide what you're doing, tell everyone who will listen that you're mucking about in prod - if someone will hop on a screen share with you, let them Main theme here, when making data changes, is test as much as you can and make sure folks know it's happening. If you're making data changes, the code has already failed, so don't feel bad doing what you need to do, but mitigate loss as much as you can. Shit happens, deal with it, but don't make it worse if you can. |
With a sufficiently comprehensive data anonymisation tool you can work around this limitation, but that's an additional investment that a business needs to be aware of up front.