fixes an issue where some of tx-hashes generated during schema upgrade were not unique