Unnecessary migration and invalid syntax in migraton