Completed
Branch master (4042af)
by Aleksandar
02:34
created

Newsletter::change()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
use Phinx\Migration\AbstractMigration;
4
5
class Newsletter extends AbstractMigration
6
{
7
    public function change()
8
    {
9
        $this->table('newsletter', ['id' => false])
10
            ->addColumn('email', 'text')
11
            ->addColumn('created_at', 'timestamp', ['default' => 'CURRENT_TIMESTAMP'])
12
            ->create();
13
    }
14
}
15