Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Propel migrations broke: undefined method MigrationManager::getMigrationDir() #827

Open
NathanWilliamsST opened this Issue Feb 13, 2014 · 2 comments

Comments

Projects
None yet
2 participants

The migrations broke for some reason, it seemed it may (or may not) have been caused by running an empty diff task but now when I call to migrate it comes up with the error:

No statement was executed. The version was not updated.
PHP Fatal error: Call to undefined method Propel\Generator\Manager\MigrationManager::getMigrationDir()

If I try to call migration:diff again, logically it says that the uncommitted migrations need to be executed or deleted before rerunning the diff task. Not sure how to delete uncommitted migrations though, if that's going to help the problem.

Just figured I had to delete the migration in "generate-migrations" folder.

A bit frustrating that an empty 'diff' task seems to create this error.

Member

staabm commented Feb 13, 2014

@nathanhiberdive thanks for reporting. might you add a proper stacktrace for this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment