Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function change() |
||
15 | { |
||
16 | $permissionTable = $this->table('permission', ['signed' => false]); |
||
17 | |||
18 | $permissionTable->addColumn('name', 'string', ['limit' => 100]) |
||
19 | ->addColumn('status', 'boolean', ['default' => true]) |
||
20 | ->addColumn('created_at', 'datetime') |
||
21 | ->addColumn('updated_at', 'datetime', ['null' => true]) |
||
22 | ->addIndex('name', ['name' => 'idx_permission_name' ,'unique' => true]) |
||
23 | ->create(); |
||
24 | } |
||
26 |