for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Phinx\Migration\AbstractMigration;
class CreateProPlayers 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()
$pro_players = $this->table('pro_players', ['id' => 'pro_player_id', 'engine' => 'MyISAM']);
$pro_players->addColumn('league', 'text')
->addColumn('first_name', 'text')
->addColumn('last_name', 'text')
->addColumn('position', 'text')
->addColumn('team', 'text')
->addIndex('league', ['limit' => 4, 'name' => 'league_idx'])
->addIndex('first_name', ['type' => 'fulltext', 'name' => 'firstname_idx'])
->addIndex('last_name', ['type' => 'fulltext', 'name' => 'lastname_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.