m181112_171335_add_data_column   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 3 1
A down() 0 3 1
1
<?php
2
/**
3
 * @copyright Anton Tuyakhov <[email protected]>
4
 */
5
6
namespace tuyakhov\notifications\migrations;
7
8
use yii\db\Migration;
9
10
class m181112_171335_add_data_column extends Migration
11
{
12
13
    public function up()
14
    {
15
        $this->addColumn('notification', 'data', $this->text());
16
    }
17
18
    public function down()
19
    {
20
        $this->dropColumn('notification', 'data');
21
    }
22
23
}