Passed
Push — master ( 0a5209...ea2342 )
by Nico
39:33 queued 27:18
created

Version20250426100232_KN_DEL::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
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 Version20250426100232_KN_DEL extends AbstractMigration
12
{
13
    public function getDescription(): string
14
    {
15
        return 'Add deleted column to kn table';
16
    }
17
18
    public function up(Schema $schema): void
19
    {
20
        $this->addSql('ALTER TABLE stu_kn ADD deleted INT DEFAULT NULL');
21
    }
22
23
    public function down(Schema $schema): void
24
    {
25
        $this->addSql('ALTER TABLE stu_kn DROP deleted');
26
    }
27
}
28