<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20261106100000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Remove webhook and notification retries, retries are handled by Messenger';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE webhook DROP retries');
$this->addSql('ALTER TABLE notification DROP retries');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE webhook ADD retries SMALLINT NOT NULL DEFAULT 1');
$this->addSql('ALTER TABLE notification ADD retries SMALLINT NOT NULL DEFAULT 1');
}
}