add_migrations_for_balance_id

This commit is contained in:
SoHardKI 2019-07-02 16:02:15 +03:00
parent 9b67008df7
commit 4b3f58b176

View File

@ -0,0 +1,25 @@
<?php
use yii\db\Migration;
/**
* Class m190702_125838_add_balance_id
*/
class m190702_125838_add_balance_id extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('fields_value', 'balance_id', $this->integer(11)->defaultValue(null));
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropColumn('fields_value', 'balance_id');
}
}