Commit Graph

26 Commits

Author SHA1 Message Date
dependabot[bot]
fdb2bba7a6
[jdbc] Upgrade PostgreSQL JDBC driver to 42.4.4 (#16444)
* Bump org.postgresql:postgresql in /bundles/org.openhab.persistence.jdbc

Bumps [org.postgresql:postgresql](https://github.com/pgjdbc/pgjdbc) from 42.4.3 to 42.4.4.
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.4.3...REL42.4.4)

---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
  dependency-type: direct:production
...

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-03-03 13:19:25 +01:00
Jacob Laursen
990610703c
Upgrade MySQL Connector/J to 8.2.0 (#16132)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-12-29 16:02:37 +01:00
Jacob Laursen
0886a24182
[jdbc] Upgrade MySQL Connector/J to 8.1.0 (#15802)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-10-25 07:21:47 +02:00
Wouter Born
1759058921
[jdbc] Upgrade H2 to 2.2.224 (#15726)
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 #13115

Signed-off-by: Wouter Born <github@maindrain.net>
2023-10-10 13:14:48 +02:00
Jacob Laursen
1fd7280c51
Upgrade SQLite JDBC driver to 3.42.0.0 (#15412)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-08-13 22:13:18 +02:00
Jacob Laursen
d7b94b6bd3
Upgrade MySQL Connector/J to 8.0.33 (#14874)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-04-25 07:45:00 +02:00
Jacob Laursen
127f998a69
Upgrade MySQL Connector/J to 8.0.31 (#13991)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-19 23:49:51 +01:00
dependabot[bot]
9cc3cd0cf9
[jdbc] Update PostgreSQL JDBC driver to 42.4.3 (#13770)
* Bump postgresql in /bundles/org.openhab.persistence.jdbc

Bumps [postgresql](https://github.com/pgjdbc/pgjdbc) from 42.4.1 to 42.4.3.
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.4.1...REL42.4.3)

---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
  dependency-type: direct:production
...

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-01 22:32:55 +01:00
Jacob Laursen
3912487305
[jdbc] Add safety valve for suspicious migrations (#13797)
* Abort migration from real names when most tables have table name prefix
* Add missing checks for database connection from console commands
* Add additional documentation for check/fix schema

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-28 23:38:55 +01:00
Jacob Laursen
22ea587d20
[jdbc] Add console command for checking/repairing schema integrity (#13765)
* Add console command for checking schema integrity
* Remove unneeded logging
* Add console command for fixing schema integrity
* Provide documentation
* Try to add support for Derby and PostgreSQL
* Sort alphabetically by item name

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-27 19:02:43 +01:00
Jacob Laursen
d075f141d7
Make itemsManageTable configurable (#13737)
Fixes #9637

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-18 17:34:10 +01:00
Jacob Laursen
b6f9f6339e
[jdbc] Add warning about using tableCaseSensitiveItemNames without dedicated schema (#13732)
* Add warning about using tableCaseSensitiveItemNames without dedicated schema
* Move warning to extended description
* Rephrase explanation
* Fix commands

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-17 20:05:10 +01:00
Jacob Laursen
2f786b87b4
Add console command for reloading index/schema (#13733)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-17 19:52:54 +01:00
Jacob Laursen
159054a99c
[jdbc] Add console maintenance commands (#13662)
* Add console command for listing tables
* Query row counts only when needed and while generating output
* Add cleanup command
* Add documentation

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-12 12:30:53 +01:00
Jacob Laursen
64791b386c
[jdbc] Upgrade MariaDB connector to 3.0.8 (#13659)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-09 23:01:15 +01:00
Jacob Laursen
70abb5d1f6
[jdbc] Add support for case sensitive table names reflecting item names 1:1 (#13544)
* Do not append number when using real item names
* Extract getTableName to separate class
* Add initial test coverage
* Extract migration logic to separate class
* Support migration from real names back to numbered
* Simplify zero-padding
* Fix NullPointerException
* Fix MySQL compatibility when CLIENT_MULTI_STATEMENTS option is not set
* Add option for case sensitive table names
* Add real name with suffix mode for backwards compatibility
* Remove real name in lower case without suffix mode
* Map directly from item name to table name
* Fix ambiguous table name scenario
* Add additional testcase
* Add migration path for changed table prefix
* Drop items table when using direct mapping
* Add configuration note
* Fix table alignment
* Extend description as more migration paths are now supported
* Do not stop halfway through a migration
* For clarity, do not use abbreviation for operating system

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-05 10:41:31 +01:00
dependabot[bot]
97956d30e9
[jdbc] Upgrade derby from 10.12.1.1 to 10.14.2.0 (#13038)
* Use derby instead of derbyclient, fix bnd optional package imports
* Update versions add dynamic package import for custom JDBC drivers
* Prevent redundant null check warnings

Signed-off-by: Wouter Born <github@maindrain.net>
2022-10-11 21:54:19 +02:00
Jacob Laursen
dddf463e09
Upgrade MySQL connector to 8.0.30 (#13242)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-08-31 21:56:39 +02:00
dependabot[bot]
4bf7a4a51e
[jdbc] Update PostgreSQL JDBC driver to 42.4.1 (#13221)
Bumps [postgresql](https://github.com/pgjdbc/pgjdbc) from 42.3.3 to 42.4.1.
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.3.3...REL42.4.1)

Also-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-08-10 10:34:08 +02:00
Dan Cunningham
5712de5e63
[jdbc] Rework TimescaleDB code to actually work (#12525)
Fixes #12513

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2022-04-02 18:11:32 +02:00
dependabot[bot]
f28ef254cf
[jdbc] Update PostgreSQL JDBC driver to 42.3.3 (#12442)
* Bumps [postgresql](https://github.com/pgjdbc/pgjdbc) from 9.4.1212 to 42.3.3.
* Update docs and feature
* Update README

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-07 22:35:20 +01:00
nimric
ba3dfe3ed6
[jdbc] Add support for TimescaleDB (#11090) (#11091)
Signed-off-by: Riccardo Nimser-Joseph <github@nimric.de>

Co-authored-by: Riccardo Nimser-Joseph <github@nimric.de>
2021-12-11 17:50:40 +01:00
Jerome Luckenbach
10f88c0934
Fix http -> https where applyable. (#10573)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2021-04-24 20:39:51 +02:00
Christoph Weitkamp
0c390ab9c9
[jdbc] Increased size of column type for Location Item (#10542)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-04-24 12:39:05 +02:00
Christoph Weitkamp
ab011242ad
Use 'everyChange' as default strategy for JDBC persistence (#8841)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-10-24 22:43:39 +02:00
Kai Kreuzer
bbf1a7fd29 Codebase as of c53e4aed26 as an initial commit for the shrunk repo
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-09-20 23:57:58 +02:00