fix: define milisecond precision for postgres

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2022-03-07 11:28:32 +01:00
parent 0c3c577b52
commit b51e73bc2e
No known key found for this signature in database
GPG key ID: 31AB0439F4C5C90E

View file

@ -15,7 +15,7 @@ var textSchema = map[string]string{
} }
var timeSchema = map[string]string{ var timeSchema = map[string]string{
dialect.Postgres: "timestamptz", dialect.Postgres: "timestamptz(3)",
dialect.SQLite: "timestamp", dialect.SQLite: "timestamp",
dialect.MySQL: "datetime(3)", dialect.MySQL: "datetime(3)",
} }