Skip to content
Permalink
Browse files

Add tests for autoIncrement in column generation for MySQL.

  • Loading branch information...
markstory committed Jan 2, 2014
1 parent 4d8b757 commit 423018d3772ee128950a2b792cdd6b0ed4c5925a
Showing with 10 additions and 0 deletions.
  1. +10 −0 Cake/Test/TestCase/Database/Schema/MysqlSchemaTest.php
@@ -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',

0 comments on commit 423018d

Please sign in to comment.
You can’t perform that action at this time.