<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20250414085350 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add indexes to payment_intent_events table';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE INDEX payment_intent_events_event_idx ON payment_intent_events (event)');
$this->addSql('CREATE INDEX payment_intent_notification_status_idx ON payment_intent_events (notification_status)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP INDEX payment_intent_events_event_idx ON payment_intent_events');
$this->addSql('DROP INDEX payment_intent_notification_status_idx ON payment_intent_events');
}
}