]> git.basschouten.com Git - openhab-addons.git/commit
[mapdb] Recreate DB when incompatible OH2 DB is used (#9299)
authorWouter Born <github@maindrain.net>
Sat, 12 Dec 2020 18:11:50 +0000 (19:11 +0100)
committerGitHub <noreply@github.com>
Sat, 12 Dec 2020 18:11:50 +0000 (19:11 +0100)
commit9ee81eae38fbc7fee0b66273695dbd9764dace35
treedc0eed3ea648dceee49d585340d96acb66cc3ba5
parent3a4d9ec89fab729bcc9ecf298db0b0a743bcf45e
[mapdb] Recreate DB when incompatible OH2 DB is used (#9299)

The only way to recover from an incompatible OH2 database is to create a new database.
With these changes the add-on will create a new database automatically and archive the incompatible database files in a backup directory.

Fixes #8794

Signed-off-by: Wouter Born <github@maindrain.net>
bundles/org.openhab.persistence.mapdb/src/main/java/org/openhab/persistence/mapdb/internal/MapDbPersistenceService.java