Skip to content

Commit 5d0e98b

Browse files
committed
Internal: Add migration to drop hook_* tables #2675
1 parent d6fdfc2 commit 5d0e98b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
}

0 commit comments

Comments
 (0)