No description
Find a file
Daniel Collin 275ffd97c2 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
2015-12-21 14:09:51 +01:00
arduino Updated Tellstick drivers and Switched from System.ou.print to Logger 2015-11-20 21:29:55 +01:00
external Bug fix, Optimized imports, Changed Timer to ExecutorService 2015-12-18 17:20:33 +01:00
lib removed old sqlite lib 2015-12-10 20:39:11 +01:00
resource Compacted libs and made the code Java 7 compliant 2015-12-07 17:17:07 +01:00
src/se/koc/hal Adding logic to the batabase upgrade. 2015-12-21 14:09:51 +01:00
test/se/koc/hal Bug fix, Optimized imports, Changed Timer to ExecutorService 2015-12-18 17:20:33 +01:00
web-resource Fixed mobile view 2015-12-18 17:47:59 +01:00
.classpath refactor and bug fix 2015-12-14 13:14:44 +01:00
.gitignore added run script 2015-12-19 13:59:45 +01:00
.project Added 5 min agrigator daemon 2015-12-03 20:27:34 +01:00
build.xml bug fixes 2015-12-11 23:19:17 +01:00
hal-default.db Adding logic to the batabase upgrade. 2015-12-21 14:09:51 +01:00
hal.conf Added conf file for configuring server ports 2015-12-07 21:20:47 +01:00
Hal.iml Updated Tellstick drivers and Switched from System.ou.print to Logger 2015-11-20 21:29:55 +01:00
run.sh added run script 2015-12-19 13:59:45 +01:00