<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20240919131015 extends AbstractMigration
{
public function getDescription(): string
{
return 'add index on creator.last_active_at';
}
public function up(Schema $schema): void
{
$this->addSql('CREATE INDEX idx_last_active_at ON creator (last_active_at);');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE creator DROP INDEX idx_last_active_at;');
}
}