`cta-admin version` should indicate when DB is in UPGRADING state
When a DB upgrade is underway, the column CTA_CATALOGUE.STATUS
is set to UPGRADING
. However, this state is not reflected in the output of cta_admin version
.
-
Add a new field bool is_upgrading
to the protobuf forcta_admin version
:
message VersionItem {
Version client_version = 1;
Version server_version = 2;
string catalogue_connection_string = 3;
string catalogue_version = 4;
}
-
Populate this field from the DB at the same time as catalogue_version
-
Modify the text output of cta-admin version
to include the word UPGRADING ifis_upgrading = true