Skip to content

Commit

Permalink
Add "boolean" as an alias for "bool" (#256)
Browse files Browse the repository at this point in the history
* Add "boolean" as an alias for "bool"

Postgres returns `udt_type` "bool" for columns of type "boolean"

* Add reverse mapping
  • Loading branch information
imax9000 authored Mar 9, 2024
1 parent 3692119 commit 1139318
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ var typeAliasMap = map[string][]string{
"numeric": {"decimal"},
"timestamptz": {"timestamp with time zone"},
"timestamp with time zone": {"timestamptz"},
"bool": {"boolean"},
"boolean": {"bool"},
}

type Migrator struct {
Expand Down

0 comments on commit 1139318

Please sign in to comment.