Adding logic to the batabase upgrade.
1. Introduced a new db table "db_version_history" to hal-default.db. The table contains a list of db version. Every version has some parameters: - 'db-version' (int) - A db version number. table 'conf', key 'db_version' points to this. - 'force-upgrade' (default:0) - If 1 then force the upgrade to this version - 'clear-internal-aggr-data' (default:0) - If 1 then clear all internal aggr data before upgrade. - 'clear-external-aggr-data' (defualt:0) - If 1 then clear all external aggr data before upgrade. The db table 'conf', key 'db_version' has to point to the db version to upgrad to. Only forward upgrades are supported. 2. Modified HalContext to act accoring to the parameters in the new db table. Former-commit-id: 19bd87ade3129f3fc0c51f0e1b94f71dc854d792
This commit is contained in:
parent
b391e3a5e1
commit
275ffd97c2
2 changed files with 31 additions and 1 deletions
BIN
hal-default.db
BIN
hal-default.db
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue