Passed
Push — master ( fa3dfe...661634 )
by Paweł
04:54
created

m180823_132444_chg_account_disable_flag::safeUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
use yii\db\Migration;
4
5
/**
6
 * Class m180823_132444_chg_account_disable_flag
7
 */
8
class m180823_132444_chg_account_disable_flag extends Migration
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function safeUp()
14
    {
15
        $this->update('account', [
16
            'disabled' => 0,
17
        ]);
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function safeDown()
24
    {
25
        return true;
26
    }
27
}
28