fix test for UnsignedFixture

This commit is contained in:
Sebastien Barre 2017-03-06 00:21:11 -05:00
parent 15a33eee06
commit 4fc8f7d919
2 changed files with 10 additions and 2 deletions

View file

@ -87,10 +87,14 @@ class Mysql extends DboSource {
'collate' => array('value' => 'COLLATE', 'quote' => false, 'join' => ' ', 'column' => 'Collation', 'position' => 'beforeDefault'),
'comment' => array('value' => 'COMMENT', 'quote' => true, 'join' => ' ', 'column' => 'Comment', 'position' => 'afterDefault'),
'unsigned' => array(
'value' => 'UNSIGNED', 'quote' => false, 'join' => ' ', 'column' => false, 'position' => 'beforeDefault',
'value' => 'UNSIGNED',
'quote' => false,
'join' => ' ',
'column' => false,
'position' => 'beforeDefault',
'noVal' => true,
'options' => array(true),
'types' => array('integer', 'float', 'decimal', 'biginteger')
'types' => array('integer', 'smallint', 'tinyint', 'float', 'decimal', 'biginteger')
)
);

View file

@ -40,6 +40,10 @@ class UnsignedFixture extends CakeTestFixture {
public $fields = array(
'uinteger' => array('type' => 'integer', 'null' => '', 'default' => '1', 'length' => '8', 'key' => 'primary', 'unsigned' => true),
'integer' => array('type' => 'integer', 'length' => '8', 'unsigned' => false),
'usmallint' => array('type' => 'smallint', 'unsigned' => true),
'smallint' => array('type' => 'smallint', 'unsigned' => false),
'utinyint' => array('type' => 'tinyint', 'unsigned' => true),
'tinyint' => array('type' => 'tinyint', 'unsigned' => false),
'udecimal' => array('type' => 'decimal', 'length' => '4', 'unsigned' => true),
'decimal' => array('type' => 'decimal', 'length' => '4'),
'biginteger' => array('type' => 'biginteger', 'length' => '20', 'default' => 3),