Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check for database schema version on database open
If some other process is holding open a database connection, the database may not have been correctly upgraded to the current schema version. Previously, this could result in new processes assuming that the schema was upgraded, and attempting to perform queries which fail due to the fact that the real database schema might be old. This commit ensures that we detect this case, and print an appropriate warning so that the user can take the appropriate action (e.g. kill the offending process, or reboot the device).
- Loading branch information