guild/console/migrations/m190702_135529_add_status_column_in_project.php
2019-12-10 17:22:20 +03:00

26 lines
457 B
PHP
Executable File

<?php
use yii\db\Migration;
/**
* Class m190702_135529_add_status_column_in_project
*/
class m190702_135529_add_status_column_in_project extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('project', 'status', $this->integer(11)->defaultValue(null));
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropColumn('project', 'status');
}
}