Provide better MySQL datatype for DateTimeType (#16604)

Resolves #15697

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Jacob Laursen 2024-04-02 23:42:49 +02:00 committed by Ciprian Pascu
parent 9fa70b24ed
commit bce662b6da

View File

@ -90,7 +90,7 @@ public class JdbcMysqlDAO extends JdbcBaseDAO {
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)");
}