guild/console/migrations/m190726_064708_add_option_column.php

26 lines
459 B
PHP
Raw Normal View History

2019-07-26 12:32:43 +03:00
<?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');
}
}