Replies: 6 comments 5 replies
-
Hi @vectro, thanks for your suggestion. A couple things:
|
Beta Was this translation helpful? Give feedback.
-
Thinking about this further, it is still scary to me to think that someone could run What do you think about adding an additional option revert.change_mandatory that would disallow the "Revert all changes" behavior? I am happy to submit a patch. |
Beta Was this translation helpful? Give feedback.
-
If you set |
Beta Was this translation helpful? Give feedback.
-
Ah, I am misremembering, as this comment illustrates: sqitch/lib/App/Sqitch/Engine.pm Lines 357 to 361 in ef7767d Turns out modes only affect where one automatically reverts to in the event of a deploy failure. Apologies for the error. I have no particular objection to a kind of strict mode for reverts if that's something you'd like to work on. Would recommend to avoid terms having to do with mental health, though, like "paranoia"; Something like "strict" or "explicit" would be a better choice, methinks. |
Beta Was this translation helpful? Give feedback.
-
Opened #719 for this. |
Beta Was this translation helpful? Give feedback.
-
Closing with the merging of #735. |
Beta Was this translation helpful? Give feedback.
-
It makes sense that
sqitch deploy
would deploy all the changes. But the default behavior ofsqitch revert
— reverting all changes — is super dangerous. That is because in the typical case of adding columns or tables, revert scripts cause data loss while deploy scripts don't.I would suggest the following changes:
Beta Was this translation helpful? Give feedback.
All reactions