Passed
Pull Request — main (#441)
by Hubert
09:04
created

Version20190302022255::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Application\Migrations;
4
5
use Doctrine\DBAL\Schema\Schema;
6
use Doctrine\Migrations\AbstractMigration;
7
8
/**
9
 * Auto-generated Migration: Please modify to your needs!
10
 */
11
final class Version20190302022255 extends AbstractMigration
12
{
13
    public function up(Schema $schema) : void
14
    {
15
        $this->addSql('CREATE UNIQUE INDEX date_tool ON usage_timeline (date, tool)');
16
        $this->addSql('CREATE UNIQUE INDEX project_tool ON usage_projects (project, tool)');
17
    }
18
19
    public function down(Schema $schema) : void
20
    {
21
        $this->addSql('DROP INDEX date_tool ON usage_timeline');
22
        $this->addSql('DROP INDEX project_tool ON usage_projects');
23
    }
24
}
25