Skip to content
Snippets Groups Projects
Commit 55a57360 authored by Marcin's avatar Marcin
Browse files

during update old and new version of db use the same hash computation

Newer hash computation method is injected into the db with older hfm
version. Both naked new HAF db and old one use the same algorithm to
getting hash.
parent 809581bc
Branches
Tags
6 merge requests!627merge in fix for get_current_block_age,!626Fix get_current_block_age function to avoid healthcheck fails,!622merge develop to master,!599merge ( with merge commit) develop to master,!597Merge develop to master for release,!590issue #259 automaticly get tables to db hash computation
......@@ -74,6 +74,8 @@ CONFIGURE_FILE( "${CMAKE_CURRENT_SOURCE_DIR}/hive_fork_manager_update_script_gen
# Only needed to be able to run update script from ${CMAKE_CURRENT_SOURCE_DIR} dir
CONFIGURE_FILE( "${CMAKE_CURRENT_SOURCE_DIR}/hive_fork_manager_save_restore_views.sql"
"${extension_path}/hive_fork_manager_save_restore_views.sql" @ONLY)
CONFIGURE_FILE( "${CMAKE_CURRENT_SOURCE_DIR}/table_schema_verification.sql"
"${extension_path}/table_schema_verification.sql" @ONLY)
MESSAGE( STATUS "CONFIGURING the control file: ${CMAKE_BINARY_DIR}/extensions/${EXTENSION_NAME}/hive_fork_manager.control" )
......@@ -108,6 +110,12 @@ INSTALL ( FILES "${CMAKE_CURRENT_SOURCE_DIR}/hive_fork_manager_save_restore_view
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ
)
INSTALL ( FILES "${CMAKE_CURRENT_SOURCE_DIR}/table_schema_verification.sql"
DESTINATION ${POSTGRES_SHAREDIR}/extension
PERMISSIONS OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ
)
INSTALL ( FILES "${extension_path}/${update_control_script}" "${extension_path}/${EXTENSION_NAME}.control" "${extension_path}/${extension_control_script}"
DESTINATION ${POSTGRES_SHAREDIR}/extension
PERMISSIONS OWNER_WRITE OWNER_READ
......
......@@ -249,6 +249,9 @@ check_functions_were_updated() {
psql_do -d "$DB_NAME" -q -t -A -f "$SCRIPTPATH/hive_fork_manager_save_restore_views.sql"
# inject newer version of hash computation
psql_do -d "$DB_NAME" -q -t -A -f "$SCRIPTPATH/table_schema_verification.sql"
verify_table_schema
get_deployed_version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment