safeDown()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
ccs 0
cts 2
cp 0
crap 2
1
<?php
2
3
use yii\db\Migration;
4
5
class m161130_132511_dds_uuid_change_to_22_chars extends Migration
6
{
7
    public function safeUp()
8
    {
9
		$this->alterColumn('dds_object', '_uuid', "CHAR(22) NOT NULL COMMENT 'A universally unique identifier for this object'");
10
    }
11
12
    public function safeDown()
13
    {
14
		$this->alterColumn('dds_object', '_uuid', "CHAR(36) NOT NULL");
15
    }
16
}
17