Skip to content
Partner Developer Portal

Definition

This table tracks which database schema version is currently applied to the state management tables in the internal schema. The version change will happen only if there are any changes made to state management tables.

This table will always show the latest alembic version after etl start command. In case the insights client needs to be downgraded (which is not recommended), then the relevant alembic version needs to be rollbacked using the command

Terminal window
explorer-insights-client db downgrade <previous alembic version>
Scenario encountered Information in the logging table
You have upgraded to new client version v2.3.0 Check for version_num 1_2.3.0 in internal.alembic_version table and log message database upgrade is complete
In case if you want to downgrade the insights client to lower version e.g any version <= v2.2.2 Run the explorer-insights-client db downgrade 1_2.1.0 command with the v2.3.0 version of client as it got the downgrade instructions. Then check for version_num 1_2.1.0 in internal.alembic_version table and log message alembic downgrade command executed for EMISInsights database. Only after this you can downgrade to lower client versions. Note: It’s not recommended to downgrade to lower client version from existing ones as it may be unstable or the latest features won’t be available
SELECT version_num
FROM internal.alembic_version;