34 lines
920 B
PHP
34 lines
920 B
PHP
<?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 Version20220108121138 extends AbstractMigration
|
|
{
|
|
public function getDescription(): string
|
|
{
|
|
return '';
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
// this up() migration is auto-generated, please modify it to your needs
|
|
$this->addSql('CREATE INDEX IDX_8D93D649F85E0677 ON user (username)');
|
|
$this->addSql('CREATE INDEX IDX_8D93D64932993751 ON user (score)');
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
// this down() migration is auto-generated, please modify it to your needs
|
|
$this->addSql('DROP INDEX IDX_8D93D649F85E0677 ON `user`');
|
|
$this->addSql('DROP INDEX IDX_8D93D64932993751 ON `user`');
|
|
}
|
|
}
|