Skip to content
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] Provide console command for performing schema integrity check/repair #13712

Closed
jlaur opened this issue Nov 13, 2022 · 1 comment · Fixed by #13765
Closed

[jdbc] Provide console command for performing schema integrity check/repair #13712

jlaur opened this issue Nov 13, 2022 · 1 comment · Fixed by #13765
Assignees
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@jlaur
Copy link
Contributor

jlaur commented Nov 13, 2022

Over time the column types in a database might no longer match the types used when creating new tables:

Having a tool to identify and possibly repair such inconsistencies would be helpful.

Notes

Checking columns:

SELECT * FROM information_schema.columns
WHERE table_schema = 'test' AND table_name = 'Item0001'

MySQL migration from DATETIME to TIMESTAMP(3)

See https://dev.mysql.com/doc/refman/8.0/en/datetime.html

Verify:

  • UTC vs. local time for "ALTER TABLE" statement changing to TIMESTAMP(3).

This is a follow-up to #13661.

@jlaur jlaur added the enhancement An enhancement or new feature for an existing add-on label Nov 13, 2022
@jlaur jlaur self-assigned this Nov 13, 2022
@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/persistence-problem-item-cannot-be-cast-from-string-to-int/141166/3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants