Passed
Push — master ( 683828...ff7ee8 )
by
unknown
07:41
created

Version20190207140655   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 9
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A up() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Migration;
6
7
use Doctrine\DBAL\Schema\Schema;
8
9
class Version20190207140655 extends AbstractMigration
10
{
11
    public function up(Schema $schema): void
12
    {
13
        $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
14
15
        $this->addSql('ALTER TABLE user ADD iban VARCHAR(34) DEFAULT NULL');
16
        $this->addSql('CREATE UNIQUE INDEX UNIQ_8D93D649FAD56E62 ON user (iban)');
17
        $this->addSql('ALTER TABLE account CHANGE iban iban VARCHAR(34) DEFAULT NULL');
18
    }
19
}
20