phpmig icon indicating copy to clipboard operation
phpmig copied to clipboard

do we have safeup or safedown function ?

Open gabrieltong opened this issue 11 years ago • 2 comments

thanks

gabrieltong avatar Nov 18 '14 02:11 gabrieltong

By safeup and safedown, you mean if the migration fails that it automatically rollsback (or forward in the case of a failure to go down)?

phpmig won't do that out of the box, but you could certainly implement that in your own migration template.

clphillips avatar Nov 23 '14 04:11 clphillips

Please see https://github.com/edisonnica/phpmig (working, but in process of deprecation, and not up to date) or https://github.com/Avalara/phpmig (up to date, in process of configuration), I have added there transactional support, see in the readme, the "What is new in this fork" and "Example: how to use the new Adapter::execute()" for transaction example support.

edisonnica avatar Dec 16 '17 22:12 edisonnica