migrations/Version20260430123000.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;final class Version20260430123000 extends AbstractMigration{public function getDescription(): string{return 'Add per-manager flag to manage event requests and registrations';}public function up(Schema $schema): void{$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\\Doctrine\\DBAL\\Platforms\\MySQL57Platform'.");$this->addSql('ALTER TABLE `user` ADD can_manage_event_requests_and_registrations TINYINT(1) NOT NULL DEFAULT 0');$this->addSql('UPDATE `user` SET can_manage_event_requests_and_registrations = 0');}public function down(Schema $schema): void{$this->abortIf(!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,"Migration can only be executed safely on '\\Doctrine\\DBAL\\Platforms\\MySQL57Platform'.");$this->addSql('ALTER TABLE `user` DROP COLUMN can_manage_event_requests_and_registrations');}}