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 ]; }