Skip to content

Commit

Permalink
fix: define milisecond precision for postgres
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <[email protected]>
  • Loading branch information
sagikazarmark committed Mar 7, 2022
1 parent 853ae26 commit 6299dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/ent/schema/dialects.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var textSchema = map[string]string{
}

var timeSchema = map[string]string{
dialect.Postgres: "timestamptz",
dialect.Postgres: "timestamptz(3)",
dialect.SQLite: "timestamp",
dialect.MySQL: "datetime(3)",
}

0 comments on commit 6299dcc

Please sign in to comment.