phpci/PHPCI/Migrations/20140611170618_choose_branch.php
2015-02-12 14:11:58 +00:00

41 lines
814 B
PHP

<?php
use Phinx\Migration\AbstractMigration;
class ChooseBranch 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()
{
$project = $this->table('project');
$project->addColumn('branch', 'string', array(
'after' => 'reference',
'limit' => 250
))->save();
}
/**
* Migrate Down.
*/
public function down()
{
$project = $this->table('project');
$project->removeColumn('branch')->save();
}
}