Skip to content

Commit cac4aec

Browse files
Add timestamp with timezone alias (#200)
1 parent 18bc84b commit cac4aec

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

migrator.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,16 @@ where
3535
`
3636

3737
var typeAliasMap = map[string][]string{
38-
"int2": {"smallint"},
39-
"int4": {"integer"},
40-
"int8": {"bigint"},
41-
"smallint": {"int2"},
42-
"integer": {"int4"},
43-
"bigint": {"int8"},
44-
"decimal": {"numeric"},
45-
"numeric": {"decimal"},
38+
"int2": {"smallint"},
39+
"int4": {"integer"},
40+
"int8": {"bigint"},
41+
"smallint": {"int2"},
42+
"integer": {"int4"},
43+
"bigint": {"int8"},
44+
"decimal": {"numeric"},
45+
"numeric": {"decimal"},
46+
"timestamptz": {"timestamp with time zone"},
47+
"timestamp with time zone": {"timestamptz"},
4648
}
4749

4850
type Migrator struct {

0 commit comments

Comments
 (0)