_upgrade_hooks is now a dict, with version as key