Skip to content

Commit

Permalink
Add timestamp with timezone alias (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalistratovtimofey authored Jul 25, 2023
1 parent 18bc84b commit cac4aec
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,16 @@ where
`

var typeAliasMap = map[string][]string{
"int2": {"smallint"},
"int4": {"integer"},
"int8": {"bigint"},
"smallint": {"int2"},
"integer": {"int4"},
"bigint": {"int8"},
"decimal": {"numeric"},
"numeric": {"decimal"},
"int2": {"smallint"},
"int4": {"integer"},
"int8": {"bigint"},
"smallint": {"int2"},
"integer": {"int4"},
"bigint": {"int8"},
"decimal": {"numeric"},
"numeric": {"decimal"},
"timestamptz": {"timestamp with time zone"},
"timestamp with time zone": {"timestamptz"},
}

type Migrator struct {
Expand Down

0 comments on commit cac4aec

Please sign in to comment.