Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
8 | public function change() |
||
9 | { |
||
10 | $depth_chart_positions = $this->table('depth_chart_positions'); |
||
11 | //Id column automatically created by Phinx |
||
12 | $depth_chart_positions->addColumn('draft_id', 'integer', ['limit' => 11, 'default' => 0]) |
||
13 | ->addColumn('position', 'string', ['limit' => 6]) |
||
14 | ->addColumn('slots', 'integer', ['limit' => 5]) |
||
15 | ->addColumn('display_order', 'integer', ['limit' => MysqlAdapter::INT_TINY, 'default' => 0, 'signed' => false]) |
||
16 | ->addIndex('draft_id', ['name' => 'draft_idx']) |
||
17 | ->create(); |
||
18 | |||
19 | } |
||
20 | } |
||
21 |
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.