<?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 Version20220615155300 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_TRANSACTION_ID ON transaction (transaction_id)');
$this->addSql('CREATE INDEX IDX_WALLET_DEBIT_ID ON transaction (wallet_debit_id)');
$this->addSql('CREATE INDEX IDX_WALLET_CREDIT_ID ON transaction (wallet_credit_id)');
$this->addSql('CREATE INDEX IDX_TRANSACTION_TYPE ON transaction (transaction_type)');
$this->addSql('CREATE INDEX IDX_FOREIGN_ID ON transaction (foreign_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('DROP INDEX IDX_TRANSACTION_ID');
$this->addSql('DROP INDEX IDX_WALLET_DEBIT_ID');
$this->addSql('DROP INDEX IDX_WALLET_CREDIT_ID');
$this->addSql('DROP INDEX IDX_TRANSACTION_TYPE');
$this->addSql('DROP INDEX IDX_FOREIGN_ID');
}
}