m170329_072118_remove_response_code_from_rejection   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 11
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A safeDown() 0 4 1
A safeUp() 0 3 1
1
<?php
2
3
use yii\db\Migration;
4
5
class m170329_072118_remove_response_code_from_rejection extends Migration
6
{
7
    public function safeUp()
8
    {
9
        $this->dropColumn('rejection','response_code');
10
    }
11
12
    public function safeDown()
13
    {
14
        $this->addColumn('rejection','response_code',$this->integer(4)->after('type')
15
            ->comment('Email response code in case of bounce'));
16
    }
17
}
18