Skip to content

Commit

Permalink
Add tests for autoIncrement in column generation for MySQL.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 2, 2014
1 parent 4d8b757 commit 423018d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cake/Test/TestCase/Database/Schema/MysqlSchemaTest.php
Expand Up @@ -427,6 +427,16 @@ public static function columnSqlProvider() {
['type' => 'biginteger', 'length' => 20, 'unsigned' => true],
'`post_id` BIGINT UNSIGNED'
],
[
'post_id',
['type' => 'integer', 'length' => 20, 'autoIncrement' => true],
'`post_id` INTEGER(20) AUTO_INCREMENT'
],
[
'post_id',
['type' => 'biginteger', 'length' => 20, 'autoIncrement' => true],
'`post_id` BIGINT AUTO_INCREMENT'
],
// Decimal
[
'value',
Expand Down

0 comments on commit 423018d

Please sign in to comment.