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

M190420000000ExecResult::safeUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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