Passed
Push — master ( e581f6...94c263 )
by Angel Fernando Quiroz
10:36
created

Version20250527101500   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 3 1
A up() 0 3 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
declare(strict_types=1);
6
7
namespace Chamilo\CoreBundle\Migrations\Schema\V200;
8
9
use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
10
use Doctrine\DBAL\Schema\Schema;
11
12
class Version20250527101500 extends AbstractMigrationChamilo
13
{
14
15
    public function getDescription(): string
16
    {
17
        return 'Add index on the resource_type.title column';
18
    }
19
20
    /**
21
     * @inheritDoc
22
     */
23
    public function up(Schema $schema): void
24
    {
25
        $this->addSql('CREATE INDEX idx_title ON resource_type (title);');
26
    }
27
}
28