ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
AccessControl10DBUpdateSteps.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 {
25  protected \ilDBInterface $db;
26 
27  public function prepare(\ilDBInterface $db): void
28  {
29  $this->db = $db;
30  }
31 
32  public function step_1(): void
33  {
34  if (!$this->db->indexExistsByFields('rbac_templates', ['type', 'ops_id'])) {
35  $this->db->addIndex('rbac_templates', ['type', 'ops_id'], 'toi');
36  }
37  }
38 }
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...