Added tags for Github builds.
This commit is contained in:
parent
f26f000bb4
commit
647a5cedcd
9 changed files with 151 additions and 22 deletions
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
class AddedTagColumnToBuildTable extends AbstractMigration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$table = $this->table('build');
|
||||
|
||||
if (!$table->hasColumn('tag')) {
|
||||
$table->addColumn('tag', 'string', ['limit' => 250, 'null' => true])->save();
|
||||
}
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$table = $this->table('build');
|
||||
|
||||
if ($table->hasColumn('tag')) {
|
||||
$table->removeColumn('tag')->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue