fix non-uniqueness in migration