-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[jdbc] Upgrade H2 to 2.2.224 #15726
[jdbc] Upgrade H2 to 2.2.224 #15726
Conversation
Upgrades H2 database from 1.4.191 to 2.2.224. Add ';NON_KEYWORDS=VALUE' to the JDBC URL because the add-on uses 'value' (which is also a keyword) as column name. Also fixes some queries used by the command extension because H2 always uses upper case table names. For the change log, see: https://h2database.com/html/changelog.html For migration notes, see: https://h2database.com/html/migration-to-v2.html Fixes openhab#13115 Signed-off-by: Wouter Born <github@maindrain.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to do this upgrade! I'm sure this is great news to @wollyd, @dependabot and others. 🙂
Do you think it would be reasonable to add a small note somewhere around here to mention the need to upgrade the database?
https://github.com/openhab/openhab-distro/blob/678720a9db8f9a7cfa6bb5f1f0e51666eaa9dcc6/distributions/openhab/src/main/resources/bin/update.lst#L119
Yes that is also part of the upgrade plan. 🙂 |
Related to openhab/openhab-addons#15726 Signed-off-by: Wouter Born <github@maindrain.net>
Upgrades H2 database from 1.4.191 to 2.2.224. Add ';NON_KEYWORDS=VALUE' to the JDBC URL because the add-on uses 'value' (which is also a keyword) as column name. Also fixes some queries used by the command extension because H2 always uses upper case table names. For the change log, see: https://h2database.com/html/changelog.html For migration notes, see: https://h2database.com/html/migration-to-v2.html Fixes openhab#13115 Signed-off-by: Wouter Born <github@maindrain.net>
Upgrades H2 database from 1.4.191 to 2.2.224. Add ';NON_KEYWORDS=VALUE' to the JDBC URL because the add-on uses 'value' (which is also a keyword) as column name. Also fixes some queries used by the command extension because H2 always uses upper case table names. For the change log, see: https://h2database.com/html/changelog.html For migration notes, see: https://h2database.com/html/migration-to-v2.html Fixes openhab#13115 Signed-off-by: Wouter Born <github@maindrain.net>
Related to openhab/openhab-addons#15726 Signed-off-by: Wouter Born <github@maindrain.net>
Upgrades H2 database from 1.4.191 to 2.2.224. Add ';NON_KEYWORDS=VALUE' to the JDBC URL because the add-on uses 'value' (which is also a keyword) as column name. Also fixes some queries used by the command extension because H2 always uses upper case table names. For the change log, see: https://h2database.com/html/changelog.html For migration notes, see: https://h2database.com/html/migration-to-v2.html Fixes openhab#13115 Signed-off-by: Wouter Born <github@maindrain.net> Signed-off-by: querdenker2k <querdenker2k@gmx.de>
Related to openhab/openhab-addons#15726 Signed-off-by: Wouter Born <github@maindrain.net>
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-4-1-release-discussion/152252/129 |
Upgrades H2 database from 1.4.191 to 2.2.224. Add ';NON_KEYWORDS=VALUE' to the JDBC URL because the add-on uses 'value' (which is also a keyword) as column name. Also fixes some queries used by the command extension because H2 always uses upper case table names. For the change log, see: https://h2database.com/html/changelog.html For migration notes, see: https://h2database.com/html/migration-to-v2.html Fixes openhab#13115 Signed-off-by: Wouter Born <github@maindrain.net> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Upgrades H2 database from 1.4.191 to 2.2.224.
Add the
;NON_KEYWORDS=VALUE
configuration option at the end of your H2 JDBC URL because the add-on uses 'value' (which is also a keyword) as column name, e.g.:jdbc:h2:./testH2;NON_KEYWORDS=VALUE
Also fixes some queries used by the command extension because H2 always uses upper case table names.
For the change log, see:
https://h2database.com/html/changelog.html
For migration notes, see:
https://h2database.com/html/migration-to-v2.html
Fixes #13115
I also wrote a small migration script using Bash to migrate databases from H2 1.4 to H2 2.2: