Conditions | 1 |
Paths | 1 |
Total Lines | 27 |
Code Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function change() |
||
14 | { |
||
15 | $table = $this->table('useroptions'); |
||
16 | $table->addColumn('user_id', 'integer', [ |
||
17 | 'default' => null, |
||
18 | 'limit' => 11, |
||
19 | 'null' => false, |
||
20 | ]); |
||
21 | $table->addColumn('name', 'string', [ |
||
22 | 'default' => null, |
||
23 | 'limit' => 255, |
||
24 | 'null' => false, |
||
25 | ]); |
||
26 | $table->addColumn('value', 'string', [ |
||
27 | 'default' => null, |
||
28 | 'limit' => 255, |
||
29 | 'null' => false, |
||
30 | ]); |
||
31 | $table->addColumn('created', 'datetime', [ |
||
32 | 'default' => null, |
||
33 | 'null' => false, |
||
34 | ]); |
||
35 | $table->addColumn('modified', 'datetime', [ |
||
36 | 'default' => null, |
||
37 | 'null' => false, |
||
38 | ]); |
||
39 | $table->create(); |
||
40 | } |
||
42 |