davedevelopment / phpmig

Simple migrations system for php
Other
569 stars 92 forks source link

Mark migration as having not completed #136

Closed AlgyTaylor closed 6 years ago

AlgyTaylor commented 6 years ago

First, thanks for PHPMig - it's perfect. I've built my own migration class on top of it, and it's made it dead easy for me to run a set of migrations, in order, stored as .sql files. So, thanks - it's the only migration tool I've found that's been able to easily deal with plain SQL.

Anyway, I've just modified my migration class to use transactions. Which is great, except now my migrations can fail & rollback the transaction, but PHPMig considers them to have run succesfully.

Would it be possible to add some kind of flag to phpmig so that I can tell it, from my migration class, when it hasn't run as expected?

AlgyTaylor commented 6 years ago

forget that - I could just check an exception after the rollback! :)

davedevelopment commented 6 years ago

:+1: