mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
change position from afterDefault to beforeDefault during to wrong order, add test
This commit is contained in:
parent
e35823e72a
commit
fd64d952b5
2 changed files with 11 additions and 1 deletions
|
@ -88,7 +88,7 @@ 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' => 'afterDefault',
|
||||
'value' => 'UNSIGNED', 'quote' => false, 'join' => ' ', 'column' => false, 'position' => 'beforeDefault',
|
||||
'noVal' => true,
|
||||
'options' => array(true),
|
||||
'types' => array('integer', 'float', 'biginteger', 'numeric')
|
||||
|
|
|
@ -3253,6 +3253,16 @@ class MysqlTest extends CakeTestCase {
|
|||
'unsigned' => true
|
||||
),
|
||||
'`testName` decimal UNSIGNED'
|
||||
),
|
||||
//set #7
|
||||
array(
|
||||
array(
|
||||
'name' => 'testName',
|
||||
'type' => 'numeric',
|
||||
'unsigned' => true,
|
||||
'default' => 1
|
||||
),
|
||||
'`testName` decimal UNSIGNED DEFAULT 1'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue