From 4039fffe2eb6b353dd263d18a3284a38b61e5942 Mon Sep 17 00:00:00 2001 From: kojirock5260 Date: Fri, 2 Apr 2021 00:12:53 +0900 Subject: [PATCH] add data type for integer --- src/DataType.php | 1 + src/Processor/CreateProcessor.php | 2 ++ 2 files changed, 3 insertions(+) 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: