throw exception on duplicate migration name

This pr add ability to throw exception on duplicate migration name to avoid fatal error during migration.
Thanks