ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ()
 

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 27 of file class.ilCalendarDBUpdateSteps10.php.

References $db.

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

◆ step_1()

ilCalendarDBUpdateSteps10::step_1 ( )

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

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

◆ step_2()

ilCalendarDBUpdateSteps10::step_2 ( )

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

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

Field Documentation

◆ $db

ilDBInterface ilCalendarDBUpdateSteps10::$db
protected

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

Referenced by prepare().


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