Skip to content

Commit

Permalink
Merge pull request #8 from DeivaLiang/master
Browse files Browse the repository at this point in the history
 change tinyint of MySQL to TYPE:INT
  • Loading branch information
stelin committed Mar 23, 2018
2 parents da8e838 + 0052409 commit cf3444b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Entity/Mysql/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];

/**
Expand All @@ -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
];
}

0 comments on commit cf3444b

Please sign in to comment.