RecordCommitter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
c 1
b 0
f 0
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A change() 0 13 1
1
<?php
2
3
use Phinx\Migration\AbstractMigration;
4
5
class RecordCommitter extends AbstractMigration
6
{
7
    /**
8
     * @author Ronan Chilvers <[email protected]>
9
     */
10
    public function change()
11
    {
12
        $table = $this->table('deployments');
13
        $table
14
            ->addColumn(
15
                'deployment_committer',
16
                'string',
17
                [
18
                    'length' => 1024,
19
                    'null'   => false,
20
                ]
21
            )
22
            ->update();
23
    }
24
}
25