Skip to content

Commit

Permalink
Stitch expects to see timestamp columns as date-time
Browse files Browse the repository at this point in the history
  • Loading branch information
Phani Raj committed Aug 1, 2022
1 parent 021a393 commit 98a503f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/internal/planetscale_edge_mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func getJsonSchemaType(mysqlType string) StreamProperty {
return StreamProperty{Types: []string{"null", "boolean"}}
case "date":
return StreamProperty{Types: []string{"null", "string"}}
case "datetime":
case "datetime", "timestamp":
return StreamProperty{Types: []string{"null", "string"}, CustomFormat: "date-time"}
default:
return StreamProperty{Types: []string{"null", "string"}}
Expand Down

0 comments on commit 98a503f

Please sign in to comment.