<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20250401173153 extends AbstractMigration
{
public function getDescription(): string
{
return 'feature/remove_offer: Dodanie nowej kolumny oraz uzupełnienie wartości default';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE offer ADD visible TINYINT(1) NOT NULL');
$this->addSql('UPDATE offer SET visible = 1');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE offer DROP visible');
}
}