-
-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show error message on wrong db version #8895
Comments
DB version can be retrieved for a DB by executing |
It's even easier, there is a I'm currently creating a PR for part 1, checking DB version before trying a restore. |
Damn :-) Ok I did not know that... |
Me neither, before I stumbled upon it in the docs today :-) |
Part 1 is implemented with #8908 - Check database version before trying a database restore. Part 2 needs to be explored yet - Check database version on startup and display a meaningful message if db version is not compatible - instead of just crashing. |
As for part 2:
Thus we could only display a warning message in this case (if at all), stating that
Alternatively we need to find a way to open the database without automatic upgrading/downgrading, to be able to read the extension table only, and then do the "is downgradeable" check. |
Is is possible/feasible to simply first open the db with |
Not sure if it's possible technically, but it would be useful:
Originally posted by @geocachermgo in #8876 (comment)
I'll add to this: Error instead of crash should also be the case when downgrading c:geo reusing the existing database stored internally, without doing an explicit restore.
The text was updated successfully, but these errors were encountered: