Skip to content

Commit

Permalink
Merge pull request #18 from kojirock5260/feature/date_type_integer
Browse files Browse the repository at this point in the history
add data type for integer
  • Loading branch information
muglug authored Apr 2, 2021
2 parents 9a9ffaf + 4039fff commit 61f4899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/DataType.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ final class DataType
const TINYINT = 'TINYINT';
const SMALLINT = 'SMALLINT';
const INT = 'INT';
const INTEGER = 'INTEGER';
const BIT = 'BIT';
const MEDIUMINT = 'MEDIUMINT';
const BIGINT = 'BIGINT';
Expand Down
2 changes: 2 additions & 0 deletions src/Processor/CreateProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ private static function getDefinitionColumn(Query\MysqlColumnType $stmt) : Colum
case DataType::TINYINT:
case DataType::SMALLINT:
case DataType::INT:
case DataType::INTEGER:
case DataType::BIT:
case DataType::MEDIUMINT:
case DataType::BIGINT:
Expand Down Expand Up @@ -240,6 +241,7 @@ private static function getIntegerDefinitionColumn(Query\MysqlColumnType $stmt)
return new Column\SmallInt($unsigned, $display_width);

case DataType::INT:
case DataType::INTEGER:
return new Column\IntColumn($unsigned, $display_width);

case DataType::BIT:
Expand Down

0 comments on commit 61f4899

Please sign in to comment.