Skip to content

Commit 61f4899

Browse files
authored
Merge pull request #18 from kojirock5260/feature/date_type_integer
add data type for integer
2 parents 9a9ffaf + 4039fff commit 61f4899

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/DataType.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ final class DataType
99
const TINYINT = 'TINYINT';
1010
const SMALLINT = 'SMALLINT';
1111
const INT = 'INT';
12+
const INTEGER = 'INTEGER';
1213
const BIT = 'BIT';
1314
const MEDIUMINT = 'MEDIUMINT';
1415
const BIGINT = 'BIGINT';

src/Processor/CreateProcessor.php

+2
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ private static function getDefinitionColumn(Query\MysqlColumnType $stmt) : Colum
143143
case DataType::TINYINT:
144144
case DataType::SMALLINT:
145145
case DataType::INT:
146+
case DataType::INTEGER:
146147
case DataType::BIT:
147148
case DataType::MEDIUMINT:
148149
case DataType::BIGINT:
@@ -240,6 +241,7 @@ private static function getIntegerDefinitionColumn(Query\MysqlColumnType $stmt)
240241
return new Column\SmallInt($unsigned, $display_width);
241242

242243
case DataType::INT:
244+
case DataType::INTEGER:
243245
return new Column\IntColumn($unsigned, $display_width);
244246

245247
case DataType::BIT:

0 commit comments

Comments
 (0)