Fix mapping mysql signed int with auto_incement to postgresql serial (#1248) (#1437)

This commit is contained in:
padinko 2022-09-22 13:11:34 +02:00 committed by GitHub
parent f25f1b659c
commit 90dea2ad4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,10 +66,12 @@
: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))
(:source (:type "int" :signed t :auto-increment t)
:target (:type "serial" :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))