<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230913212932 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE lot ADD name_generated TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE lot ADD description_generated TINYINT(1) DEFAULT NULL');
$this->addSql('UPDATE lot SET name_generated = 0');
$this->addSql('UPDATE lot SET description_generated = 0');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE lot DROP description_generated');
}
}