Passed
Push — master ( 520379...c91c51 )
by Anton
07:49 queued 10s
created

m181112_171335_add_data_column::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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