Tweak migration to ensure that migrating from a database with existing