m190515_184013_allow_rejection_no_email   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A safeUp() 0 3 1
A safeDown() 0 3 1
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