| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 8 | public function up() |
||
| 9 | { |
||
| 10 | $this->createTable( |
||
| 11 | '{{%html}}', |
||
| 12 | [ |
||
| 13 | 'id' => Schema::TYPE_PK, |
||
| 14 | 'key' => Schema::TYPE_STRING.' NOT NULL', |
||
| 15 | 'value' => Schema::TYPE_TEXT.' NOT NULL', |
||
| 16 | ] |
||
| 17 | ); |
||
| 18 | $this->createIndex('html_key_unique', '{{%html}}', 'key', true); |
||
| 19 | |||
| 20 | $this->createTable( |
||
| 21 | '{{%less}}', |
||
| 22 | [ |
||
| 23 | 'id' => Schema::TYPE_PK, |
||
| 24 | 'key' => Schema::TYPE_STRING.' NOT NULL', |
||
| 25 | 'value' => Schema::TYPE_TEXT, |
||
| 26 | ] |
||
| 27 | ); |
||
| 28 | $this->createIndex('less_key_unique', '{{%less}}', 'key', true); |
||
| 29 | } |
||
| 30 | |||
| 49 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.