Passed
Push — dev ( 5b1d95...923b08 )
by Janko
23:33 queued 07:31
created

Version20250528165717_DatabaseEntryLayer::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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 Version20250528165717_DatabaseEntryLayer extends AbstractMigration
12
{
13
    public function getDescription(): string
14
    {
15
        return 'Add layer_id to stu_database_entrys';
16
    }
17
18
    public function up(Schema $schema): void
19
    {
20
        $this->addSql(<<<'SQL'
21
            ALTER TABLE stu_database_entrys ADD layer_id INT DEFAULT NULL
22
        SQL);
23
    }
24
25
    public function down(Schema $schema): void
26
    {
27
        $this->addSql(<<<'SQL'
28
            ALTER TABLE stu_database_entrys DROP layer_id
29
        SQL);
30
    }
31
}
32