fix migrations to work in more use cases of upgrades