opengisch / pum

Postgres Upgrades Manager
GNU General Public License v2.0
30 stars 7 forks source link

we should rollback all non-successful migrations #88

Open olivierdalang opened 4 years ago

olivierdalang commented 4 years ago

Currently, on error, you end up with a version corresponding to the latest successful migration

If a step fails, we should rollback to initial state, as if you're under 1.3, and are trying to upgrade to 1.5, you certainly do NOT want to end up with 1.4 in case an error happens.

This leads to very annoying situations because of other issues (https://github.com/opengisch/pum/issues/79) and may lead to even bigger issue if we merge stuff like https://github.com/opengisch/pum/pull/73