Version20190114101422::up()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 8
c 0
b 0
f 0
dl 0
loc 10
ccs 0
cts 9
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Migration;
6
7
use Doctrine\DBAL\Schema\Schema;
8
use Doctrine\Migrations\AbstractMigration;
9
10
class Version20190114101422 extends AbstractMigration
11
{
12
    public function up(Schema $schema): void
13
    {
14
        $this->addSql('DROP INDEX IDX_161498D3E1D6B8E6 ON card;');
15
        $this->addSql('DROP INDEX IDX_161498D3D7943D68 ON card;');
16
        $this->addSql('CREATE INDEX IDX_161498D3E1D6B8E6 ON card (locality);');
17
        $this->addSql('CREATE INDEX IDX_161498D3D7943D68 ON card (area);');
18
        $this->addSql('DROP INDEX IDX_3A9F98E5D7943D68 ON institution;');
19
        $this->addSql('DROP INDEX IDX_3A9F98E5E1D6B8E6 ON institution;');
20
        $this->addSql('CREATE INDEX IDX_3A9F98E5D7943D68 ON institution (area);');
21
        $this->addSql('CREATE INDEX IDX_3A9F98E5E1D6B8E6 ON institution (locality);');
22
    }
23
}
24