diff --git a/src/DataType.php b/src/DataType.php index be213841..876b0963 100644 --- a/src/DataType.php +++ b/src/DataType.php @@ -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'; diff --git a/src/Processor/CreateProcessor.php b/src/Processor/CreateProcessor.php index 14c6343a..bf6d14ee 100644 --- a/src/Processor/CreateProcessor.php +++ b/src/Processor/CreateProcessor.php @@ -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: @@ -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: