You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dbg.warn(`the container and server appear to be the same version but different builds. (container: ${container_version}), (server: ${server_version})`);
48
+
if(current_version!==new_version){
49
+
dbg.warn(`the new_version and current_version (server) appear to be the same version but different builds. (new_version: ${new_version}), (current_version: ${current_version})`);
50
50
dbg.warn(`upgrade is not supported for different builds of the same version!!`);
51
51
}
52
-
dbg.log0('the versions of the container and the server match. no need to upgrade');
52
+
dbg.log0('the versions of the new_version and the current_version match. no need to upgrade');
53
53
returnfalse;
54
54
}elseif(ver_comparison<0){
55
-
// container version is older than the server version - can't downgrade
56
-
dbg.error(`the container version (${container_version}) appear to be older than the current server version (${server_version}). cannot downgrade`);
57
-
thrownewError('attempt to run old container version with newer server version');
55
+
// new_version is older than the current server version - can't downgrade
56
+
dbg.error(`the new_version (${new_version}) appears to be older than the current_version (server) (${current_version}). cannot downgrade`);
57
+
thrownewError('attempt to upgrade to an older version while server\'s version is newer');
58
58
}else{
59
-
dbg.log0(`container version is ${container_version} and server version is ${server_version}. will upgrade`);
59
+
dbg.log0(`new_version is ${new_version} and current server version is ${current_version}. will upgrade`);
60
60
returntrue;
61
61
}
62
62
}
63
63
64
64
/**
65
65
* load_required_scripts loads all scripts that should be run according to the given versions
0 commit comments