[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>
This commit is contained in:
Jacob Laursen
2022-11-28 23:38:55 +01:00
committed by GitHub
parent 826fc9e8d7
commit 3912487305
3 changed files with 43 additions and 1 deletions

View File

@@ -214,6 +214,12 @@ Use the command `jdbc schema check` to perform an integrity check of the schema.
Identified issues can be fixed automatically using the command `jdbc schema fix` (all items having issues) or `jdbc schema fix <itemName>` (single item).
Issues than can be identified and possibly fixed:
- Wrong column name case (`time` and `name`).
- Wrong column type. Before fixing this, make sure that time-zone is correctly configured.
- Unexpected column (identify only).
### For Developers
* Clearly separated source files for the database-specific part of openHAB logic.