Passed
Branch master (89bdb5)
by Janko
11:58
created

Version20241123194015   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 3
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 Version20241123194015 extends AbstractMigration
12
{
13
    public function getDescription(): string
14
    {
15
        return 'Add NPC Buildable boolean';
16
    }
17
18
    public function up(Schema $schema): void
19
    {
20
21
        $this->addSql('ALTER TABLE stu_rumps ADD npc_buildable BOOLEAN DEFAULT NULL');
22
    }
23
24
    public function down(Schema $schema): void
25
    {
26
        $this->addSql('ALTER TABLE stu_rumps DROP npc_buildable');
27
    }
28
}
29