ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilWebResourceDBUpdateSteps.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 {
27  protected \ilDBInterface $db;
28 
29  public function prepare(\ilDBInterface $db): void
30  {
31  $this->db = $db;
32  }
33 
34  public function step_1(): void
35  {
36  // Add index
37  if (!$this->db->indexExistsByFields('webr_items', ['webr_id'])) {
38  $this->db->addIndex('webr_items', ['webr_id'], 'i3');
39  }
40  }
41 }
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...