<?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 Version20250806073310 extends AbstractMigration
{
public function getDescription(): string
{
return "Création des index pour l'amélioration de la page société";
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE INDEX idx_payment_history_filter ON app_payment_history (date, status, type);');
$this->addSql('CREATE INDEX idx_app_payment_history_status_currency_date ON app_payment_history (date, status, currency);');
$this->addSql('CREATE INDEX idx_payment_member_status_currency ON app_payment_history (member_id, status, currency);');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}