| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public function up() |
||
| 8 | { |
||
| 9 | $tableOptions = null; |
||
| 10 | |||
| 11 | if ($this->db->driverName === 'mysql' || $this->db->driverName === 'mariadb') { |
||
| 12 | $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'; |
||
| 13 | } |
||
| 14 | |||
| 15 | $this->createTable('{{%Cart}}', [ |
||
| 16 | 'sessionId' => $this->string(), |
||
| 17 | 'cartData' => $this->text(), |
||
| 18 | ], $tableOptions); |
||
| 19 | $this->addPrimaryKey('cart_pk', '{{%Cart}}', 'sessionId'); |
||
| 20 | } |
||
| 21 | |||
| 27 |