Hotfix - Check for unique keys when migrating.