DeploymentOriginal   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A change() 0 10 1
1
<?php
2
3
use Phinx\Migration\AbstractMigration;
4
5
class DeploymentOriginal 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('deployment_original', 'integer', [
15
                'null'   => false,
16
                'default'=> 0,
17
                'after'  => 'deployment_number',
18
            ])
19
            ->update();
20
    }
21
}
22