Passed
Pull Request — master (#6127)
by Angel Fernando Quiroz
40:13 queued 28:46
created

Version20250317170000   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 3 1
A up() 0 5 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\Entity\HookEvent;
10
use Chamilo\CoreBundle\Event\Events;
11
use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
12
use Doctrine\DBAL\Schema\Schema;
13
14
class Version20250317170000 extends AbstractMigrationChamilo
15
{
16
    public function getDescription(): string
17
    {
18
        return 'Drop tables relatesd to hooks management.';
19
    }
20
21
    /**
22
     * @inheritDoc
23
     */
24
    public function up(Schema $schema): void
25
    {
26
        $this->addSql("DROP TABLE hook_call");
27
        $this->addSql("DROP TABLE hook_event");
28
        $this->addSql("DROP TABLE hook_observer");
29
    }
30
}
31