Passed
Push — master ( b2168e...f1daef )
by Paweł
03:26
created

m190513_154106_drop_auto_monitoring::safeUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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