From 5b2fb4057847ebe5b818f9fdb8f0c9e1d70ffa36 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Tue, 18 Nov 2014 23:25:07 +0100 Subject: [PATCH] TIL that MS SQL also has a "datetime2" data type. For real. --- src/sources/mssql/mssql-cast-rules.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sources/mssql/mssql-cast-rules.lisp b/src/sources/mssql/mssql-cast-rules.lisp index 6dda02e..7ef4be5 100644 --- a/src/sources/mssql/mssql-cast-rules.lisp +++ b/src/sources/mssql/mssql-cast-rules.lisp @@ -48,7 +48,8 @@ (:source (:type "varbinary") :target (:type "bytea") :using pgloader.transforms::byte-vector-to-bytea) - (:source (:type "datetime") :target (:type "timestamptz"))) + (:source (:type "datetime") :target (:type "timestamptz")) + (:source (:type "datetime2") :target (:type "timestamptz"))) "Data Type Casting to migrate from MSSQL to PostgreSQL") ;;;