Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do we have safeup or safedown function ? #64

Open
gabrieltong opened this issue Nov 18, 2014 · 2 comments
Open

do we have safeup or safedown function ? #64

gabrieltong opened this issue Nov 18, 2014 · 2 comments

Comments

@gabrieltong
Copy link

thanks

@clphillips
Copy link
Contributor

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.

@edisonnica
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants