Fix MySQL default cast rules to include bigint auto_increment to bigserial.

This commit is contained in:
Dimitri Fontaine 2013-10-06 12:04:23 +02:00
parent fe68fba3d3
commit 314ee9611a

View File

@ -64,6 +64,9 @@
(:source (:type "int" :auto-increment nil :typemod (<= 10 (car typemod)))
:target (:type "bigint"))
;; bigint with auto_increment always are bigserial
(:source (:type "bigint" :auto-increment t) :target (:type "bigserial"))
;; we need the following to benefit from :drop-typemod
(:source (:type "tinyint") :target (:type "integer"))
(:source (:type "smallint") :target (:type "integer"))