Passed
Pull Request — master (#1984)
by Nico
20:34 queued 10:19
created

down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Migrations\Pgsql;
6
7
use Doctrine\DBAL\Schema\Schema;
8
use Doctrine\Migrations\AbstractMigration;
9
10
11
final class Version20241229125148_Lottery_Buildplan_Faction extends AbstractMigration
12
{
13
    public function getDescription(): string
14
    {
15
        return 'Add faction_id to stu_lottery_buildplan';
16
    }
17
18
    public function up(Schema $schema): void
19
    {
20
21
        $this->addSql('ALTER TABLE stu_lottery_buildplan ADD faction_id INT DEFAULT NULL');
22
    }
23
24
    public function down(Schema $schema): void
25
    {
26
27
        $this->addSql('ALTER TABLE stu_lottery_buildplan DROP faction_id');
28
    }
29
}
30