Skip to content

Commit

Permalink
Add "boolean" as an alias for "bool"
Browse files Browse the repository at this point in the history
Postgres returns `udt_type` "bool" for columns of type "boolean"
  • Loading branch information
imax9000 authored Feb 26, 2024
1 parent 2f9abde commit 707a2ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var typeAliasMap = map[string][]string{
"numeric": {"decimal"},
"timestamptz": {"timestamp with time zone"},
"timestamp with time zone": {"timestamptz"},
"bool": {"boolean"},
}

type Migrator struct {
Expand Down

0 comments on commit 707a2ac

Please sign in to comment.