mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Added decimal CakeSchema test case and DatatypeFixture. #3171
This commit is contained in:
parent
a1a3e70039
commit
e0eb8f8e18
2 changed files with 2 additions and 0 deletions
|
@ -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)),
|
||||
|
|
|
@ -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),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue