feat: enable upgrading release from 4.4.X to 4.5.Y

When upgrading from 4.4.X, the `install_upgrade` script from 4.4.X
is used, which forbids such transition.
This commit is contained in:
Thales Macedo Garitezi 2022-08-11 15:09:10 -03:00
parent 7b887078c7
commit efef052ec7
1 changed files with 2 additions and 0 deletions

View File

@ -437,6 +437,8 @@ validate_target_version(TargetVersion, TargetNode) ->
CurrentVersion = current_release_version(TargetNode),
case {get_major_minor_vsn(CurrentVersion), get_major_minor_vsn(TargetVersion)} of
{{Major, Minor}, {Major, Minor}} -> ok;
{{<<"4">>, <<"5">>}, {<<"4">>, <<"4">>}} -> ok;
{{<<"4">>, <<"4">>}, {<<"4">>, <<"5">>}} -> ok;
_ ->
?INFO("Cannot upgrade/downgrade to ~s from ~s~n"
"We only support relup between patch versions",