Fix time.Time matching to timestamp postgres type (reflection just gives "Time")

This commit is contained in:
Maximilian 2023-02-17 18:52:15 -06:00
parent 0a77813360
commit 2b46385126

View File

@ -85,7 +85,7 @@ func getPostgresType(goType string) (string, error) {
return "double precision", nil
case "bool":
return "boolean", nil
case "time.Time":
case "Time":
return "timestamp", nil
case "[]byte":
return "bytea", nil