Add MySQL unsigned int casting rules (#1200)

Fixes dimitri/pgloader#1186
This commit is contained in:
Aleksi Kinnunen 2020-08-28 09:24:36 +00:00 committed by GitHub
parent e388909f0c
commit 9788cc64ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,12 @@
:target (:type "integer" :drop-typemod t))
(:source (:type "integer" :unsigned t)
:target (:type "bigint" :drop-typemod t))
(:source (:type "int" :unsigned t)
:target (:type "bigint" :drop-typemod t))
(:source (:type "int" :unsigned t :auto-increment t)
:target (:type "bigserial" :drop-typemod t))
;; we need the following to benefit from :drop-typemod
(:source (:type "tinyint") :target (:type "smallint" :drop-typemod t))
(:source (:type "smallint") :target (:type "smallint" :drop-typemod t))