Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public function change() |
||
11 | { |
||
12 | $users = $this->table('config_data'); |
||
13 | $users->addColumn('uuid', 'string', ['comment' => 'UUID', 'limit' => 36]) |
||
14 | ->addColumn('key', 'string', ['comment' => 'Key', 'limit' => 255]) |
||
15 | ->addColumn('value', 'text', ['comment' => 'Value', 'null' => true]) |
||
16 | ->addColumn('type', 'string', ['comment' => 'Type', 'limit' => 32, 'null' => true]) |
||
17 | ->addColumn('options', 'text', ['comment' => 'Options', 'null' => true]) |
||
18 | ->addColumn('description', 'text', ['comment' => 'Description', 'null' => true]) |
||
19 | ->addColumn('rank', 'integer', ['comment' => 'Rank', 'default' => 9999, 'null' => true]) |
||
20 | ->addIndex(['uuid'], ['unique' => true]) |
||
21 | ->addIndex(['key'], ['unique' => true]) |
||
22 | ->save(); |
||
23 | } |
||
24 | } |
||
25 |