SQLite integers can host bigints, fix #227.

This commit is contained in:
Dimitri Fontaine 2015-04-30 18:17:13 +02:00
parent ebc0dcda4f
commit 3848ad6ae5
3 changed files with 5 additions and 0 deletions

View File

@ -2400,6 +2400,9 @@ Numbers:
type tinyint to smallint
.
.IP "\(bu" 4
type integer to bigint
.
.IP "\(bu" 4
type float to float using float\-to\-string
.
.IP "\(bu" 4

View File

@ -1960,6 +1960,7 @@ When migrating from SQLite the following Casting Rules are provided:
Numbers:
- type tinyint to smallint
- type integer to bigint
- type float to float using float-to-string
- type real to real using float-to-string

View File

@ -16,6 +16,7 @@
(:source (:type "clob") :target (:type "text" :drop-typemod t))
(:source (:type "tinyint") :target (:type "smallint"))
(:source (:type "integer") :target (:type "bigint"))
(:source (:type "float") :target (:type "float")
:using pgloader.transforms::float-to-string)