ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
class.ilCalendarDBUpdateSteps10.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 protected \ilDBInterface $db;
27
28 public function prepare(\ilDBInterface $db): void
29 {
30 $this->db = $db;
31 }
32
33 public function step_1(): void
34 {
35 if ($this->db->tableColumnExists('booking_entry', 'booking_group')) {
36 $this->db->dropTableColumn('booking_entry', 'booking_group');
37 }
38 }
39
40 public function step_2(): void
41 {
42 if ($this->db->tableExists('cal_ch_groups')) {
43 $this->db->dropTable('cal_ch_groups');
44 }
45 }
46}
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...