From 6a3a311ace8ce6fab8b7c7aa8196e2587970e592 Mon Sep 17 00:00:00 2001 From: sdyarnell Date: Fri, 28 Jul 2023 18:50:44 +0000 Subject: [PATCH] Mysql datetime has no time zone. --- src/sources/mysql/mysql-cast-rules.lisp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sources/mysql/mysql-cast-rules.lisp b/src/sources/mysql/mysql-cast-rules.lisp index fd939a58..89fed0e3 100644 --- a/src/sources/mysql/mysql-cast-rules.lisp +++ b/src/sources/mysql/mysql-cast-rules.lisp @@ -125,19 +125,19 @@ ;; MySQL and dates... ;; (:source (:type "datetime" :default "0000-00-00 00:00:00" :not-null t) - :target (:type "timestamptz" :drop-default t :drop-not-null t) + :target (:type "timestamp" :drop-default t :drop-not-null t) :using pgloader.transforms::zero-dates-to-null) (:source (:type "datetime" :default "0000-00-00 00:00:00") - :target (:type "timestamptz" :drop-default t) + :target (:type "timestamp" :drop-default t) :using pgloader.transforms::zero-dates-to-null) (:source (:type "datetime" :on-update-current-timestamp t :not-null t) - :target (:type "timestamptz" :drop-default t :drop-not-null t) + :target (:type "timestamp" :drop-default t :drop-not-null t) :using pgloader.transforms::zero-dates-to-null) (:source (:type "datetime" :on-update-current-timestamp t :not-null nil) - :target (:type "timestamptz" :drop-default t) + :target (:type "timestamp" :drop-default t) :using pgloader.transforms::zero-dates-to-null) (:source (:type "timestamp" :default "0000-00-00 00:00:00" :not-null t) @@ -165,7 +165,7 @@ (:source (:type "year") :target (:type "integer" :drop-typemod t)) (:source (:type "datetime") - :target (:type "timestamptz") + :target (:type "timestamp") :using pgloader.transforms::zero-dates-to-null) (:source (:type "timestamp")