Add settings-driven theme and version metadata
This commit is contained in:
28
api/migrations/Version20251224193000.php
Normal file
28
api/migrations/Version20251224193000.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DoctrineMigrations;
|
||||
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
use Doctrine\Migrations\AbstractMigration;
|
||||
|
||||
final class Version20251224193000 extends AbstractMigration
|
||||
{
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'Add indexes for forum parent ordering and type filters.';
|
||||
}
|
||||
|
||||
public function up(Schema $schema): void
|
||||
{
|
||||
$this->addSql('CREATE INDEX idx_forum_parent_position ON forum (parent_id, position)');
|
||||
$this->addSql('CREATE INDEX idx_forum_type ON forum (type)');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
$this->addSql('DROP INDEX idx_forum_parent_position ON forum');
|
||||
$this->addSql('DROP INDEX idx_forum_type ON forum');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user