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

NullableHostColumn   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 17
ccs 3
cts 3
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 4 1
A down() 0 3 1
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