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

26 lines
459 B
PHP
Executable File

<?php
use yii\db\Migration;
/**
* Class m190726_064708_add_option_column
*/
class m190726_064708_add_option_column extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('fields_value_new', 'type_file', $this->string(255)->defaultValue(null));
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropColumn('fields_value_new', 'type_file');
}
}