ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilAccessControl8DBUpdateSteps.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 {
22  protected ilDBInterface $db;
23 
24  public function prepare(ilDBInterface $db): void
25  {
26  $this->db = $db;
27  }
28 
29  public function step_1(): void
30  {
31  if (!$this->db->indexExistsByFields('rbac_fa', ['assign', 'rol_id'])) {
32  $this->db->addIndex('rbac_fa', ['assign', 'rol_id'], 'i2');
33  }
34  if (!$this->db->indexExistsByFields('rbac_fa', ['assign', 'parent'])) {
35  $this->db->addIndex('rbac_fa', ['assign', 'parent'], 'i3');
36  }
37  }
38 
39  public function step_2(): void
40  {
41  }
42 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...