data/migrations/20150429024247_profile.php
<?php
use Phinx\Migration\AbstractMigration;
class Profile extends AbstractMigration
{
/**
* Change Method.
*
* More information on this method is available here:
* http://docs.phinx.org/en/latest/migrations.html#the-change-method
*
* Uncomment this method if you would like to use it.
*
* public function change()
* {
* }
*/
/**
* Migrate Up.
*/
public function up()
{
$users = $this->table('users');
$users->addColumn('profile', 'text', ['null' => true])->update();
}
/**
* Migrate Down.
*/
public function down()
{
$users = $this->table('users');
$users->removeColumn('profile')->update();
}
}