<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260102103000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Create a new attribute to mark shop managers that accept terms of use.';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE user ADD accepted_tou TINYINT(1) NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE user DROP accepted_tou');
}
}