| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | $tableOptions = null; |
||
| 16 | if ($this->db->driverName === 'mysql') { |
||
| 17 | $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB'; |
||
| 18 | } |
||
| 19 | $this->createTable( |
||
| 20 | '{{%settings}}', |
||
| 21 | [ |
||
| 22 | 'id' => $this->primaryKey(), |
||
| 23 | 'type' => $this->string(255)->notNull(), |
||
| 24 | 'section' => $this->string(255)->notNull(), |
||
| 25 | 'key' => $this->string(255)->notNull(), |
||
| 26 | 'value' => $this->text(), |
||
| 27 | 'active' => $this->boolean(), |
||
| 28 | 'created' => $this->dateTime(), |
||
| 29 | 'modified' => $this->dateTime(), |
||
| 30 | ], |
||
| 31 | $tableOptions |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | |||
| 40 |