Completed
Push — v0_9 ( 66e765...8c00af )
by Vladimir
03:55
created

NullableHostColumn::down()   A

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
c 0
b 0
f 0
dl 0
loc 3
ccs 0
cts 0
cp 0
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 2
1
<?php
2
3
use Phinx\Migration\AbstractMigration;
4
5
class NullableHostColumn extends AbstractMigration
6
{
7
    /**
8
     * Migrate Up.
9
     */
10 1
    public function up()
11
    {
12 1
        $this->execute("ALTER TABLE visits MODIFY host VARCHAR(100) COMMENT 'The host of the player. If this value is null, the host could not be resolved.'");
13 1
    }
14
15
    /**
16
     * Migrate Down.
17
     */
18
    public function down()
19
    {
20
    }
21
}
22