Passed
Push — master ( 510a5e...0f9b0c )
by Roman
02:40 queued 14s
created

M190420000000ExecResult   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A safeDown() 0 3 1
A safeUp() 0 3 1
1
<?php
2
3
namespace zhuravljov\yii\queue\monitor\migrations;
4
5
use zhuravljov\yii\queue\monitor\base\Migration;
6
7
/**
8
 * Exec Result
9
 *
10
 * @author Roman Zhuravlev <[email protected]>
11
 */
12
class M190420000000ExecResult extends Migration
13
{
14
    /**
15
     * @inheritdoc
16
     */
17
    public function safeUp()
18
    {
19
        $this->addColumn($this->env->execTableName, 'result_data', $this->binary()->after('error'));
20
    }
21
22
    /**
23
     * @inheritdoc
24
     */
25
    public function safeDown()
26
    {
27
        $this->dropColumn($this->env->execTableName, 'result_data');
28
    }
29
}
30