| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 28 | public function change() |
||
| 29 | { |
||
| 30 | $this->table('cards') |
||
| 31 | ->addColumn('name', 'string') |
||
| 32 | ->create(); |
||
| 33 | |||
| 34 | $this->table('tasks') |
||
| 35 | ->addColumn('name', 'string') |
||
| 36 | ->addColumn('isDone', 'boolean', ['default' => false]) |
||
| 37 | ->addColumn('priority', 'integer', ['default' => 500]) |
||
| 38 | ->addColumn('cardId', 'integer') |
||
| 39 | ->addForeignKey('cardId', 'cards', 'id') |
||
| 40 | ->addIndex(['name']) |
||
| 41 | ->create(); |
||
| 42 | } |
||
| 43 | |||
| 46 |
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.