Using Phing's dbdeploy task with transactions

Posted by Gordon on Stack Overflow See other posts from Stack Overflow or by Gordon
Published on 2010-03-16T11:27:28Z Indexed on 2010/03/16 11:36 UTC
Read the original article Hit count: 614

Filed under:
|
|

I am using Phing's dbdeploy task to manage my database schema. This is working fine, as long as there is no errors in my delta file.

However, if there is an error, dbdeploy will just run the delta files up to the query with the error and then abort. This causes me some frustration, because I have to manually rollback the entry in the changelog table then. If I don't, dbdeploy will assume the migration was successful on a subsequent try.

So the question is, there any way to get dbdeploy use transactions?

© Stack Overflow or respective owner

Related posts about php

Related posts about phing