Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
27 | public function safeUp() |
||
28 | { |
||
29 | $this->createTable( |
||
30 | static::tableName(), |
||
31 | [ |
||
32 | 'id' => $this->primaryKey(), |
||
33 | 'name' => $this->string()->notNull(), |
||
34 | 'handle' => $this->string()->notNull(), |
||
35 | 'class' => $this->string()->notNull(), |
||
36 | 'settings' => $this->text(), |
||
37 | 'enabled' => $this->boolean(), |
||
38 | 'dateUpdated' => $this->dateTime()->notNull(), |
||
39 | 'dateCreated' => $this->dateTime()->notNull(), |
||
40 | 'uid' => $this->uid() |
||
41 | ] |
||
42 | ); |
||
43 | |||
44 | $this->createIndex( |
||
45 | $this->db->getIndexName(static::tableName(), 'handle', true), |
||
46 | static::tableName(), |
||
47 | 'handle', |
||
48 | true |
||
49 | ); |
||
50 | } |
||
51 | |||
61 |