Description
Story
As a madlib user
I want to return to the prior release state if upgrade and install fails
so that
I am not in an unknown state that is partially upgraded/installed and partially not.
Note
Test for install, re-install, uninstall, and upgrade. i.e., all combinations
Acceptance
1) Prepare an upgrade that will fail from 1.x to 1.y
2) Run madpack upgrade
3) Upgrade fails
4) Check that we are back in 1.x state with SELECT madlib.version();
5) Similar test for install
6) Run IC on 1.x to ensure it passes