Skip to content

Commit

Permalink
Add TIMESTAMP to SchemaGenerator (#106)
Browse files Browse the repository at this point in the history
Also already understood by CreateTableParser, just not SchemaGenerator.

These are not integers - they are strings in the range '1970-01-01 00:00:01' to '2038-01-19 03:14:07'
  • Loading branch information
fredemmott authored Jun 16, 2023
1 parent e487593 commit ef5301c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SchemaGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ private function sqlToHackFieldType(parsed_field $field): string {
case 'VARBINARY':
case 'DATE':
case 'DATETIME':
case 'TIMESTAMP':
// These are represented in SQL as strings, however they're stored in a binary format, and
// storing anything other than JSON should be a runtime error.
case 'JSON':
Expand Down

0 comments on commit ef5301c

Please sign in to comment.