Making sure we do the upgrade in a transaction.
The mods match when empty string is compared with null.