Persistence stopped working after migration to OH4, getting the following errors:
org.openhab.persistence.jdbc.internal.exceptions.JdbcSQLException:
Error in SQL query!!!; Data truncation: Data too long for column 'value' at row 1
Query: INSERT INTO Item8 (time, value) VALUES( NOW(3), ? ) ON DUPLICATE KEY UPDATE VALUE= ? Parameters: [2023-09-26 07:10:00.0, 2023-09-26 07:10:00.0];
Pool Name= yank-default;
SQL= INSERT INTO Item8 (time, value) VALUES( NOW(3), ? ) ON DUPLICATE KEY UPDATE VALUE= ?
Anybody? Clearing cache, setting “rebuildTableNames=false” did not help the situation.
Is there a way to force full build-from-scratch of persistence tables?
Maybe you need different type there - i.e. text? I don’t remember exact limits of particular database systems, but such limit tells me that you store a fairly large chunk of data there.