for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Phinx\Migration\AbstractMigration;
use Phinx\Db\Adapter\MysqlAdapter;
class CreateManagers extends AbstractMigration
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public function change()
$managers = $this->table('managers', ['id' => 'manager_id']);
$managers->addColumn('draft_id', 'integer', ['limit' => 11, 'default' => 0])
->addColumn('manager_name', 'text')
->addColumn('draft_order', 'integer', ['limit' => MysqlAdapter::INT_TINY, 'signed' => false, 'default' => 0])
->addIndex(['draft_id'], ['name' => 'draft_idx'])
->create();
}
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.