M190420000000ExecResult   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A safeDown() 0 3 1
A safeUp() 0 3 1
1
<?php
2
/**
3
 * @link https://github.com/zhuravljov/yii2-queue-monitor
4
 * @copyright Copyright (c) 2017 Roman Zhuravlev
5
 * @license http://opensource.org/licenses/BSD-3-Clause
6
 */
7
8
namespace zhuravljov\yii\queue\monitor\migrations;
9
10
use zhuravljov\yii\queue\monitor\base\Migration;
11
12
/**
13
 * Exec Result
14
 *
15
 * @author Roman Zhuravlev <[email protected]>
16
 */
17
class M190420000000ExecResult extends Migration
18
{
19
    /**
20
     * @inheritdoc
21
     */
22
    public function safeUp()
23
    {
24
        $this->addColumn($this->env->execTableName, 'result_data', $this->binary()->after('error'));
25
    }
26
27
    /**
28
     * @inheritdoc
29
     */
30
    public function safeDown()
31
    {
32
        $this->dropColumn($this->env->execTableName, 'result_data');
33
    }
34
}
35