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
Allow disabling clean #458
Comments
From axel.fontaine.business@gmail.com on March 20, 2013 11:32:46 thanks for your suggestion. You can easily add this by wrapping Flyway in such a way that clean results either in a no-op or pops up a confirmation request. However I feel this doesn't quite belong in the main distribution. Cheers |
I disagree that this doesn't belong in the main distribution. Many tools have a flag in order to force destructive events without a prompt. In addition, the prompt when not forced could also show the instance on which it will be running. Could you explain why you feel this is outside the scope of Flyway? It appears that a little bit of work could save a lot of pain. Would you accept a pull request with this feature? |
It is not a priority for me, but I'm not religiously opposed to it. If this issue gathers support, I may consider a PR, probably for a flag that allows you to disable clean as opposed to one that allows you to enable it. |
Let me tell you what happened on my team: a colleague used I suppose if there was a configuration that could be set on a project to use a prompt on clean, then that might work, though I still feel this could lead to unintended consequences. |
Clean is intended to be used in development environment... I know it was a
|
Implemented. |
Thanks! Definitely going to use this config option in production. |
Original author: l...@luissantos.pt (March 20, 2013 11:01:23)
Is it possible to add confirmation to the "clean" command?
Adding an "--force-drop-database" option will skip the confirmation.
This doesn't have a security impact but it will "avoid" some problems.
Thanks.
Original issue: http://code.google.com/p/flyway/issues/detail?id=455
The text was updated successfully, but these errors were encountered: