ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCalendarDBUpdateSteps10.php
Go to the documentation of this file.
1<?php
18declare(strict_types=1);
19
24{
25 protected \ilDBInterface $db;
26
27 public function prepare(\ilDBInterface $db): void
28 {
29 $this->db = $db;
30 }
31
32 public function step_1(): void
33 {
34 if ($this->db->tableColumnExists('booking_entry', 'booking_group')) {
35 $this->db->dropTableColumn('booking_entry', 'booking_group');
36 }
37 }
38
39 public function step_2(): void
40 {
41 if ($this->db->tableExists('cal_ch_groups')) {
42 $this->db->dropTable('cal_ch_groups');
43 }
44 }
45}
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...