I have a client who needs to uninstall an old payment module. To keep a long story short, I'll just say that there's a reason why we need to actually remove it, not just deactivate it. Of course, the store won't allow that if there are any orders in the DB that were processed by that module. So I'll have to fiddle with the DB.
It's easy enough to set the reference count to zero in the StoreModules table, in which case the store will allow me to uninstall the module. But there will be a lot of old orders in the store that still have that module's ID in the pay_id field of the OrderPayments record. If an admin user tries to view one of these orders, that might produce runtime errors. So I'm thinking that I should also zero out the pay_id field for those orders ... but will the store function in that case, without throwing errors? Any other advice on how to do this?
Thanks --
It's easy enough to set the reference count to zero in the StoreModules table, in which case the store will allow me to uninstall the module. But there will be a lot of old orders in the store that still have that module's ID in the pay_id field of the OrderPayments record. If an admin user tries to view one of these orders, that might produce runtime errors. So I'm thinking that I should also zero out the pay_id field for those orders ... but will the store function in that case, without throwing errors? Any other advice on how to do this?
Thanks --
Comment