Skip to content
Failed

Changes

Summary

  1. src/hlr: reopen DB after changing schema version (details)
Commit 83b6f4851e5e318ae0612fd19d351ffebc6f61e5 by Oliver Smith
src/hlr: reopen DB after changing schema version

Close and reopen the DB after changing the version to so it gets written
to disk. Otherwise it may be that the DB does not get closed, and when
sqlite restores the DB the version can be 0 again, leading to errors
when trying to re-apply the schema upgrades

Related: SYS#7394
Change-Id: I5943a1cb3447c038c6e7972f68f9656b73a9248b
The file was modifiedtests/db_upgrade/db_upgrade_test.ok
The file was modifiedsrc/db.c