ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
ilCalendarDBUpdateSteps10 Class Reference
+ Inheritance diagram for ilCalendarDBUpdateSteps10:
+ Collaboration diagram for ilCalendarDBUpdateSteps10:

Public Member Functions

 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 
 step_1 ()
 
 step_2 ()
 
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

Member Function Documentation

◆ prepare()

ilCalendarDBUpdateSteps10::prepare ( \ilDBInterface  $db)

Prepare the execution of the steps.

Do not use anything from the globals or the DIC inside your steps, only use the instance of the database provided here.

Implements ilDatabaseUpdateSteps.

Definition at line 28 of file class.ilCalendarDBUpdateSteps10.php.

28 : void
29 {
30 $this->db = $db;
31 }

References $db.

◆ step_1()

ilCalendarDBUpdateSteps10::step_1 ( )

Definition at line 33 of file class.ilCalendarDBUpdateSteps10.php.

33 : void
34 {
35 if ($this->db->tableColumnExists('booking_entry', 'booking_group')) {
36 $this->db->dropTableColumn('booking_entry', 'booking_group');
37 }
38 }

◆ step_2()

ilCalendarDBUpdateSteps10::step_2 ( )

Definition at line 40 of file class.ilCalendarDBUpdateSteps10.php.

40 : void
41 {
42 if ($this->db->tableExists('cal_ch_groups')) {
43 $this->db->dropTable('cal_ch_groups');
44 }
45 }

Field Documentation

◆ $db

ilDBInterface ilCalendarDBUpdateSteps10::$db
protected

Definition at line 26 of file class.ilCalendarDBUpdateSteps10.php.

Referenced by prepare().


The documentation for this class was generated from the following file: