phpmig
phpmig copied to clipboard
do we have safeup or safedown function ?
thanks
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.
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.