ILIAS  trunk Revision v12.0_alpha-399-g579a087ced2
ilNewsDBUpdateSteps Class Reference
+ Inheritance diagram for ilNewsDBUpdateSteps:
+ Collaboration diagram for ilNewsDBUpdateSteps:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 
- Public Member Functions inherited from ilDatabaseUpdateSteps
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

Definition at line 21 of file class.ilNewsDBUpdateSteps.php.

Member Function Documentation

◆ prepare()

ilNewsDBUpdateSteps::prepare ( ilDBInterface  $db)

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

25 : void
26 {
27 $this->db = $db;
28 }

References $db.

◆ step_1()

ilNewsDBUpdateSteps::step_1 ( )

Definition at line 30 of file class.ilNewsDBUpdateSteps.php.

30 : void
31 {
32 if (!$this->db->indexExistsByFields('il_news_item', ['context_obj_type'])) {
33 $this->db->addIndex('il_news_item', ['context_obj_type'], 'i3');
34 }
35 }

Field Documentation

◆ $db

ilDBInterface ilNewsDBUpdateSteps::$db
protected

Definition at line 23 of file class.ilNewsDBUpdateSteps.php.

Referenced by prepare().


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