From 3519bcc76f76024c36e4bcc51fe8d498dceaea32 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 1 Apr 2026 18:45:00 -0700 Subject: [PATCH] Use TIMESTAMP for Timestamp columns. Probably too little too late. Maybe MySQL didn't support TIMESTAMP in ancient history when we first wrote Depot? Or maybe I was dumb. Postgres does the right thing, so now MySQL does too, FWIW. --- src/main/java/com/samskivert/depot/impl/MySQLBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/samskivert/depot/impl/MySQLBuilder.java b/src/main/java/com/samskivert/depot/impl/MySQLBuilder.java index a8c2248..21daefa 100644 --- a/src/main/java/com/samskivert/depot/impl/MySQLBuilder.java +++ b/src/main/java/com/samskivert/depot/impl/MySQLBuilder.java @@ -299,7 +299,7 @@ public class MySQLBuilder return "TIME"; } public String getTimestampType (int length) { - return "DATETIME"; + return "TIMESTAMP"; } public String getBlobType (int length) { // semi-arbitrarily use VARBINARY() up to 32767