fix schema upgrades for hash indexes