From 2fbc831c190adc64c013d4e946a0bf47333b0f03 Mon Sep 17 00:00:00 2001 From: DeivaLiang Date: Fri, 23 Mar 2018 13:00:42 +0800 Subject: [PATCH] change tinyint of MySQL to TYPE:INT --- src/Entity/Mysql/Schema.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entity/Mysql/Schema.php b/src/Entity/Mysql/Schema.php index 571edbb..af0877f 100644 --- a/src/Entity/Mysql/Schema.php +++ b/src/Entity/Mysql/Schema.php @@ -27,7 +27,7 @@ class Schema extends \Swoft\Db\Entity\Schema 'number' => 'Types::NUMBER', 'decimal' => 'Types::NUMBER', 'bool' => 'Types::BOOLEAN', - 'tinyint' => 'Types::BOOLEAN', + 'tinyint' => 'Types::INT', ]; /** @@ -43,6 +43,6 @@ class Schema extends \Swoft\Db\Entity\Schema 'number' => self::TYPE_INT, 'decimal' => self::TYPE_INT, 'bool' => self::TYPE_BOOL, - 'tinyint' => self::TYPE_BOOL + 'tinyint' => self::TYPE_INT ]; }