php-censor/src/PHPCI/Migrations/20160425162114_branch_column_length.php
Dmitry Khomutov ca2f5ed197 Fixes
2016-06-23 21:26:13 +06:00

25 lines
775 B
PHP

<?php
use Phinx\Migration\AbstractMigration;
class BranchColumnLength extends AbstractMigration
{
public function up()
{
$table = $this->table('build');
$table->changeColumn('branch', 'string', ['limit' => 250, 'null' => false, 'default' => 'master']);
$table = $this->table('project');
$table->changeColumn('branch', 'string', ['limit' => 250, 'null' => false, 'default' => 'master']);
}
public function down()
{
$table = $this->table('build');
$table->changeColumn('branch', 'string', ['limit' => 50, 'null' => false, 'default' => 'master']);
$table = $this->table('project');
$table->changeColumn('branch', 'string', ['limit' => 50, 'null' => false, 'default' => 'master']);
}
}