Initial implementation of plugin DB upgrade support

This commit is contained in:
Ziver Koc 2021-07-11 23:00:47 +02:00
parent aea0d9bab1
commit 6a81f5de16
11 changed files with 295 additions and 106 deletions

View file

@ -32,7 +32,6 @@ public class SensorDataAggregationDaemonTest {
System.out.println("Upgrading in-memory database to latest version");
DBConnection referenceDB = new DBConnection(DBConnection.DBMS.SQLite, DEFAULT_DB_FILE);
final DBUpgradeHandler handler = new DBUpgradeHandler(referenceDB);
handler.addIgnoredTable("db_version_history");
handler.addIgnoredTable("sqlite_sequence"); //sqlite internal
handler.setTargetDB(db);
handler.upgrade();