Passed
Pull Request — master (#5143)
by Angel Fernando Quiroz
08:25
created

Version20240313111800   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
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 7 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 Version20240313111800 extends AbstractMigrationChamilo
13
{
14
    public function getDescription(): string
15
    {
16
        return 'Removing display_order, position, cat_order, forum_order columns from c_lp, c_lp_category, c_forum_category tables, c_forum_forum, c_thematic';
17
    }
18
19
    public function up(Schema $schema): void
20
    {
21
        $this->addSql('ALTER TABLE c_lp DROP display_order');
22
        $this->addSql('ALTER TABLE c_lp_category DROP position');
23
        $this->addSql('ALTER TABLE c_forum_category DROP cat_order');
24
        $this->addSql('ALTER TABLE c_forum_forum DROP forum_order');
25
        $this->addSql('ALTER TABLE c_thematic DROP display_order');
26
    }
27
}
28