add_migrations_for_balance_id
This commit is contained in:
parent
9b67008df7
commit
4b3f58b176
25
console/migrations/m190702_125838_add_balance_id.php
Normal file
25
console/migrations/m190702_125838_add_balance_id.php
Normal 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');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user