|
2 | 2 | 'up' => array( |
3 | 3 | 'create_table' => array( |
4 | 4 | 'articles' => array( |
5 | | - 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'), |
6 | | - 'user_id' => array('type' => 'integer', 'null' => true, 'default' => NULL), |
7 | | - 'title' => array('type' => 'string', 'null' => true, 'default' => NULL, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
8 | | - 'body' => array('type' => 'text', 'null' => true, 'default' => NULL, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
| 5 | + 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'), |
| 6 | + 'user_id' => array('type' => 'integer', 'null' => true, 'default' => null), |
| 7 | + 'title' => array('type' => 'string', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
| 8 | + 'body' => array('type' => 'text', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
9 | 9 | 'published' => array('type' => 'string', 'null' => true, 'default' => 'N', 'length' => 1, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
10 | | - 'created' => array('type' => 'datetime', 'null' => true, 'default' => NULL), |
11 | | - 'updated' => array('type' => 'datetime', 'null' => true, 'default' => NULL), |
| 10 | + 'created' => array('type' => 'datetime', 'null' => true, 'default' => null), |
| 11 | + 'updated' => array('type' => 'datetime', 'null' => true, 'default' => null), |
12 | 12 | 'indexes' => array( |
13 | 13 | 'PRIMARY' => array('column' => 'id', 'unique' => 1), |
14 | 14 | ), |
15 | 15 | 'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB'), |
16 | 16 | ), |
17 | 17 | 'posts' => array( |
18 | | - 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'), |
19 | | - 'author_id' => array('type' => 'integer', 'null' => false, 'default' => NULL), |
20 | | - 'title' => array('type' => 'string', 'null' => false, 'default' => NULL, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
21 | | - 'body' => array('type' => 'text', 'null' => true, 'default' => NULL, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
| 18 | + 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'), |
| 19 | + 'author_id' => array('type' => 'integer', 'null' => false, 'default' => null), |
| 20 | + 'title' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
| 21 | + 'body' => array('type' => 'text', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
22 | 22 | 'published' => array('type' => 'string', 'null' => true, 'default' => 'N', 'length' => 1, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
23 | | - 'created' => array('type' => 'datetime', 'null' => true, 'default' => NULL), |
24 | | - 'updated' => array('type' => 'datetime', 'null' => true, 'default' => NULL), |
| 23 | + 'created' => array('type' => 'datetime', 'null' => true, 'default' => null), |
| 24 | + 'updated' => array('type' => 'datetime', 'null' => true, 'default' => null), |
25 | 25 | 'indexes' => array( |
26 | 26 | 'PRIMARY' => array('column' => 'id', 'unique' => 1), |
27 | 27 | ), |
28 | 28 | 'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB'), |
29 | 29 | ), |
30 | 30 | 'users' => array( |
31 | | - 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'), |
32 | | - 'user' => array('type' => 'string', 'null' => true, 'default' => NULL, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
33 | | - 'password' => array('type' => 'string', 'null' => true, 'default' => NULL, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
34 | | - 'created' => array('type' => 'datetime', 'null' => true, 'default' => NULL), |
35 | | - 'updated' => array('type' => 'datetime', 'null' => true, 'default' => NULL), |
| 31 | + 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'), |
| 32 | + 'user' => array('type' => 'string', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
| 33 | + 'password' => array('type' => 'string', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), |
| 34 | + 'created' => array('type' => 'datetime', 'null' => true, 'default' => null), |
| 35 | + 'updated' => array('type' => 'datetime', 'null' => true, 'default' => null), |
36 | 36 | 'indexes' => array( |
37 | 37 | 'PRIMARY' => array('column' => 'id', 'unique' => 1), |
38 | 38 | ), |
|
0 commit comments