ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSessionDBUpdateSteps9 Class Reference
+ Inheritance diagram for ilSessionDBUpdateSteps9:
+ Collaboration diagram for ilSessionDBUpdateSteps9:

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()

ilSessionDBUpdateSteps9::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.ilSessionDBUpdateSteps9.php.

References $db.

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

◆ step_1()

ilSessionDBUpdateSteps9::step_1 ( )

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

33  : void
34  {
35  // Add index
36  if (!$this->db->indexExistsByFields('event_appointment', ['event_id'])) {
37  $this->db->addIndex('event_appointment', ['event_id'], 'i1');
38  }
39  }

◆ step_2()

ilSessionDBUpdateSteps9::step_2 ( )

Definition at line 41 of file class.ilSessionDBUpdateSteps9.php.

41  : void
42  {
43  // drop unused table
44  $this->db->dropTable('event_file', false);
45  }

Field Documentation

◆ $db

ilDBInterface ilSessionDBUpdateSteps9::$db
protected

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

Referenced by prepare().


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