Merge pull request #5 from apuc/balance

Balance
This commit is contained in:
kavalar 2019-07-02 16:18:27 +03:00 committed by GitHub
commit 57b3778e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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');
}
}