<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20240920113622 extends AbstractMigration
{
public function getDescription(): string
{
return "Add new bool field displayNotes to show/or not the product's note field in front";
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE product ADD display_notes TINYINT(1) DEFAULT 0 NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE product DROP display_notes');
}
}