safeDown()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 1
c 2
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
use yii\db\Migration;
4
5
/**
6
 * Class m190515_184013_allow_rejection_no_email
7
 */
8
class m190515_184013_allow_rejection_no_email extends Migration
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function safeUp()
14
    {
15
        $this->alterColumn('rejection', 'email_address', $this->string(255)->null()->comment('email address to send email to'));
16
17
    }
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function safeDown()
23
    {
24
        $this->alterColumn('rejection', 'email_address', $this->string(255)->notNull()->comment('email address to send email to'));
25
    }
26
}
27