Skip to content

Commit

Permalink
Provide better MySQL datatype for DateTimeType (openhab#16604)
Browse files Browse the repository at this point in the history
Resolves openhab#15697

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Alexander Drent <Alex@Drent-ict.nl>
  • Loading branch information
jlaur authored and adr001db committed May 12, 2024
1 parent 1fe9f3c commit ddc3011
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void initAfterFirstDbConnection() {
this.dbMeta = dbMeta;
// Initialize sqlTypes, depending on DB version for example
if (dbMeta.isDbVersionGreater(5, 5)) {
sqlTypes.put("DATETIMEITEM", "TIMESTAMP(3)");
sqlTypes.put("DATETIMEITEM", "DATETIME(3)");
sqlTypes.put("tablePrimaryKey", "TIMESTAMP(3)");
sqlTypes.put("tablePrimaryValue", "NOW(3)");
}
Expand Down

0 comments on commit ddc3011

Please sign in to comment.