Skip to content

Commit

Permalink
Added decimal CakeSchema test case and DatatypeFixture. #3171
Browse files Browse the repository at this point in the history
  • Loading branch information
uzyn committed Sep 28, 2013
1 parent a1a3e70 commit e0eb8f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Test/Case/Model/CakeSchemaTest.php
Expand Up @@ -174,6 +174,7 @@ class TestAppSchema extends CakeSchema {
public $datatypes = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => 0, 'key' => 'primary'),
'float_field' => array('type' => 'float', 'null' => false, 'length' => '5,2', 'default' => ''),
'decimal_field' => array('type' => 'decimal', 'length' => '6,3', 'default' => '0.000'),
'huge_int' => array('type' => 'biginteger'),
'bool' => array('type' => 'boolean', 'null' => false, 'default' => false),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => true)),
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Test/Fixture/DatatypeFixture.php
Expand Up @@ -33,6 +33,7 @@ class DatatypeFixture extends CakeTestFixture {
public $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => 0, 'key' => 'primary'),
'float_field' => array('type' => 'float', 'length' => '5,2', 'null' => false, 'default' => null),
'decimal_field' => array('type' => 'decimal', 'length' => '6,3', 'default' => '0.000'),
'huge_int' => array('type' => 'biginteger'),
'bool' => array('type' => 'boolean', 'null' => false, 'default' => false),
);
Expand Down

0 comments on commit e0eb8f8

Please sign in to comment.