diff --git a/pgloader.1 b/pgloader.1 index 456f42e..0ac7c0b 100644 --- a/pgloader.1 +++ b/pgloader.1 @@ -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 diff --git a/pgloader.1.md b/pgloader.1.md index 6f9ba4d..ba722fd 100644 --- a/pgloader.1.md +++ b/pgloader.1.md @@ -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 diff --git a/src/sources/sqlite/sqlite-cast-rules.lisp b/src/sources/sqlite/sqlite-cast-rules.lisp index 4a154e5..fef19b8 100644 --- a/src/sources/sqlite/sqlite-cast-rules.lisp +++ b/src/sources/sqlite/sqlite-cast-rules.lisp @@ -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)