<?php
declare(strict_types=1);
namespace PPSDKDoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220406153302_TransactionIndexes extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('CREATE INDEX shop_type_user_status_registration ON transactions (shop_id, type, user_id, status, registered_date)');
$this->addSql('CREATE INDEX shop_user_created ON shops_offers_redirects (shop_id, user_id, created_when)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX shop_type_user_status_registration ON transactions');
$this->addSql('DROP INDEX shop_user_created ON shops_offers_redirects');
}
}