mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
Add support for MySQL tinyint auto increment
This commit is contained in:
parent
47c22776f2
commit
56aa447cdf
@ -1273,6 +1273,7 @@ Numbers:
|
||||
- type int with extra auto_increment to bigserial when (<= 10 precision)
|
||||
- type int to int when (< precision 10)
|
||||
- type int to bigint when (<= 10 precision)
|
||||
- type tinyint with extra auto_increment to serial
|
||||
- type smallint with extra auto_increment to serial
|
||||
- type mediumint with extra auto_increment to serial
|
||||
- type bigint with extra auto_increment to bigserial
|
||||
|
||||
@ -54,7 +54,8 @@
|
||||
(:source (:type "int" :auto-increment nil :typemod (<= 10 precision))
|
||||
:target (:type "bigint"))
|
||||
|
||||
;; bigint mediumint and smallint with auto_increment always are [big]serial
|
||||
;; bigint mediumint smallint and tinyint with auto_increment always are [big]serial
|
||||
(:source (:type "tinyint" :auto-increment t) :target (:type "serial"))
|
||||
(:source (:type "smallint" :auto-increment t) :target (:type "serial"))
|
||||
(:source (:type "mediumint" :auto-increment t) :target (:type "serial"))
|
||||
(:source (:type "bigint" :auto-increment t) :target (:type "bigserial"))
|
||||
@ -202,7 +203,8 @@
|
||||
("m" "integer" "integer(4)" nil "YES" nil)
|
||||
("o" "tinyint" "tinyint(1)" "0" nil nil)
|
||||
("p" "smallint" "smallint(5) unsigned" nil "no" "auto_increment")
|
||||
("q" "mediumint" "integer" nil "NO" "auto_increment"))))
|
||||
("q" "mediumint" "integer" nil "NO" "auto_increment")
|
||||
("r" "tinyint" "integer" nil "NO" "auto_increment"))))
|
||||
|
||||
;;
|
||||
;; format-pgsql-column when given a mysql-column would call `cast' for
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user