for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Phinx\Migration\AbstractMigration;
class UpdateArticleTable 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 up()
$this->table('articles')
->addColumn('body', 'text')
->addColumn('lead', 'text')
->addColumn('status', 'integer')
->addColumn('user_uuid', 'binary', ['limit' => 16])
->addColumn('created_at', 'datetime', ['default' => 'CURRENT_TIMESTAMP'])
->update();
}
public function down()
->removeColumn('body')
->removeColumn('lead')
->removeColumn('status')
->removeColumn('user_uuid')
->removeColumn('created_at');
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.