Removed MigrationTypeMaxId and put data in MigrationTypeCount