<?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 Version20251020115549 extends AbstractMigration
{
public function getDescription(): string
{
return 'Create index idx_tree_left_right_depth_points on mybiz_member_node';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE mybiz_member_node ADD INDEX IF NOT EXISTS idx_tree_left_right_depth_points (tree_id, left_index, right_index, depth, nb_node_points)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP INDEX idx_tree_left_right_depth_points ON mybiz_member_node');
}
}