| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public function safeUp() |
||
| 8 | { |
||
| 9 | $tableOptions = null; |
||
| 10 | if ($this->db->driverName === 'mysql') { |
||
| 11 | $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB'; |
||
| 12 | } |
||
| 13 | |||
| 14 | $this->createTable('{{%settings}}', [ |
||
| 15 | 'key' => Schema::TYPE_STRING . ' NOT NULL', |
||
| 16 | 'value' => Schema::TYPE_TEXT, |
||
| 17 | ], $tableOptions); |
||
| 18 | |||
| 19 | $this->addPrimaryKey('key', '{{%settings}}', 'key'); |
||
| 20 | } |
||
| 21 | |||
| 27 |