fix mysql indexing validity in migrations