Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mysql datetime has no time zone. #1514

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/sources/mysql/mysql-cast-rules.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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")
Expand Down