mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fix test for UnsignedFixture
This commit is contained in:
parent
15a33eee06
commit
4fc8f7d919
2 changed files with 10 additions and 2 deletions
|
@ -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')
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue