From 04df144917c0af95b7f285760b570fa8a638b9b4 Mon Sep 17 00:00:00 2001 From: lyp Date: Fri, 13 Apr 2018 15:51:13 +0800 Subject: [PATCH] update:mysql support datetime(3) --- lib/Dialects/mysql.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Dialects/mysql.js b/lib/Dialects/mysql.js index 72d403a..b56c9b4 100644 --- a/lib/Dialects/mysql.js +++ b/lib/Dialects/mysql.js @@ -244,6 +244,8 @@ exports.getType = function (collection, property, driver) { case "date": if (!property.time) { type = "DATE"; + } else if (property.msec) { + type = "DATETIME(3)"; } else { type = "DATETIME"; }