Skip to content
Permalink
Browse files

fix test for UnsignedFixture

  • Loading branch information...
sebastienbarre committed Mar 6, 2017
1 parent 15a33ee commit 4fc8f7d919d9b08ee08833ee6c53640364ccb7cc
Showing with 10 additions and 2 deletions.
  1. +6 −2 lib/Cake/Model/Datasource/Database/Mysql.php
  2. +4 −0 lib/Cake/Test/Fixture/UnsignedFixture.php
@@ -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),

0 comments on commit 4fc8f7d

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.