migrate down with doctrine migrations

if you’re using Doctrine in your Symfony2 project, you’re certainly using the excellent Doctrine Migration Bundle but you may have seen that documentation is not staging clearly how to migrate down

for that:

php app/console doctrine:migrations:status

take the number in “Current Version” (format YYYYMMDDHHMMSS)

and then run

php app/console doctrine:migrations:execute YYYYMMDDHHMMSS --down

that’s all folks !

Recent Posts
Support This Site

If my blog was helpful to you, then please consider visiting my Amazon Wishlist or donating via Paypal or Square Cash