Skip to content

Draft: issue #259 automaticly get tables to db hash computation

Marcin requested to merge mi/issue#259_hash_for_hafd into develop

The old database during the update got injected hash computation algorithm from the newer version. The same algorithm is used for old and new versions of Hive Fork Manager. This way in case of a bug in the old version it is possible to repair hash computation with the new hfm version.

Hash is computed for all tables in the hafd schema, not only for those included in the list forgotten by devs.

hash db functions without schema name parameter There is no sense to pass schema parameter to hash db computation, at the end, there is a list of tables to take into computation and all of they belong to the hafd schema.

Remove hafd.table_schema table, the hash is used only to check if an update is possible, it is not a database hash because some elements are omitted during its computations and its value cannot be used to determine if schemas of two databases with hfm are similar. hafd.table_schema table blocked the total separation of hive_updata schema elements from the rest of the hive fork manager

Edited by Marcin

Merge request reports

Loading