<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;final class Version20230706222834 extends AbstractMigration{ public function getDescription(): string { return 'Indexes for fast search'; } public function up(Schema $schema): void { $this->addSql("ALTER TABLE `creator` ADD INDEX(`username`)"); } public function down(Schema $schema): void { $this->addSql("ALTER TABLE `creator` DROP INDEX `username`"); }}