<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20250417193050 extends AbstractMigration
{
public function getDescription(): string
{
return 'feature/point_letter: Dodanie nowej kolumny `show_label`';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE item_category ADD show_label TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE offer_item ADD show_label TINYINT(1) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE item_category DROP show_label');
$this->addSql('ALTER TABLE offer_item DROP show_label');
}
}