Skip to content

Commit

Permalink
Add more tests for Mysql.
Browse files Browse the repository at this point in the history
Add tests for default values and boolean columns.
  • Loading branch information
markstory committed Mar 31, 2013
1 parent 692dd8c commit b0eaecd
Showing 1 changed file with 14 additions and 0 deletions.
Expand Up @@ -129,6 +129,8 @@ protected function _createTables($connection) {
title VARCHAR(20) COMMENT 'A title',
body TEXT,
author_id INT(11) NOT NULL,
published BOOLEAN DEFAULT 0,
allow_comments TINYINT(1) DEFAULT 0,
created DATETIME
) COLLATE=utf8_general_ci
SQL;
Expand Down Expand Up @@ -294,6 +296,18 @@ public function testDescribeTable() {
'default' => null,
'length' => 11,
],
'published' => [
'type' => 'boolean',
'null' => true,
'default' => 0,
'length' => null,
],
'allow_comments' => [
'type' => 'boolean',
'null' => true,
'default' => 0,
'length' => null,
],
'created' => [
'type' => 'datetime',
'null' => true,
Expand Down

0 comments on commit b0eaecd

Please sign in to comment.