<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260720120000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add in_feed and in_stock flags to tariff table';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE tariff ADD in_feed TINYINT(1) DEFAULT 1 NOT NULL, ADD in_stock TINYINT(1) DEFAULT 1 NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE tariff DROP in_feed, DROP in_stock');
}
}