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

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 22 of file class.ilBackgroundTasksDB80.php.

Member Function Documentation

◆ prepare()

ilBackgroundTasksDB80::prepare ( ilDBInterface  $db)

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

References $db.

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

◆ step_1()

ilBackgroundTasksDB80::step_1 ( )

Definition at line 31 of file class.ilBackgroundTasksDB80.php.

31  : void
32  {
33  if (!$this->db->indexExistsByFields('il_bt_bucket', ['user_id'])) {
34  $this->db->addIndex('il_bt_bucket', ['user_id'], 'i1');
35  }
36  }

Field Documentation

◆ $db

ilDBInterface ilBackgroundTasksDB80::$db
protected

Definition at line 24 of file class.ilBackgroundTasksDB80.php.

Referenced by prepare().


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