Skip to content

Commit 1139318

Browse files
authored
Add "boolean" as an alias for "bool" (#256)
* Add "boolean" as an alias for "bool" Postgres returns `udt_type` "bool" for columns of type "boolean" * Add reverse mapping
1 parent 3692119 commit 1139318

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

migrator.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ var typeAliasMap = map[string][]string{
4848
"numeric": {"decimal"},
4949
"timestamptz": {"timestamp with time zone"},
5050
"timestamp with time zone": {"timestamptz"},
51+
"bool": {"boolean"},
52+
"boolean": {"bool"},
5153
}
5254

5355
type Migrator struct {

0 commit comments

Comments
 (0)