ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCalendarDBUpdateSteps8 Class Reference
+ Inheritance diagram for ilCalendarDBUpdateSteps8:
+ Collaboration diagram for ilCalendarDBUpdateSteps8:

Public Member Functions

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

Protected Attributes

ilDBInterface $db
 

Detailed Description

Member Function Documentation

◆ prepare()

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

References $db.

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

◆ step_1()

ilCalendarDBUpdateSteps8::step_1 ( )

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

32  : void
33  {
34  // Add indices
35  if (!$this->db->indexExistsByFields('cal_entries', ['starta'])) {
36  $this->db->addIndex('cal_entries', ['starta'], 'i3');
37  }
38  if (!$this->db->indexExistsByFields('cal_entries', ['enda'])) {
39  $this->db->addIndex('cal_entries', ['enda'], 'i4');
40  }
41  }

◆ step_2()

ilCalendarDBUpdateSteps8::step_2 ( )

Definition at line 43 of file class.ilCalendarDBUpdateSteps8.php.

43  : void
44  {
45  $this->db->modifyTableColumn(
46  'cal_entries',
47  'title',
48  [
49  'length' => 255
50  ]
51  );
52  }

◆ step_3()

ilCalendarDBUpdateSteps8::step_3 ( )

Definition at line 54 of file class.ilCalendarDBUpdateSteps8.php.

54  : void
55  {
56  $this->db->modifyTableColumn(
57  'cal_categories',
58  'title',
59  [
60  'length' => 255
61  ]
62  );
63  }

Field Documentation

◆ $db

ilDBInterface ilCalendarDBUpdateSteps8::$db
protected

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

Referenced by prepare().


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