Passed
Push — master ( c86f31...6475fd )
by Sam
10:34
created

Version20200707143654::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Migration;
6
7
use Doctrine\DBAL\Schema\Schema;
8
use Ecodev\Felix\Migration\IrreversibleMigration;
9
10
class Version20200707143654 extends IrreversibleMigration
11
{
12
    public function up(Schema $schema): void
13
    {
14
        $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
15
16
        $this->addSql('ALTER TABLE session ADD mailing_list VARCHAR(255) DEFAULT \'\' NOT NULL');
17
    }
18
}
19