ILIAS  release_8 Revision v8.24
class.ilAccessControl8DBUpdateSteps.php
Go to the documentation of this file.
1<?php
2
3declare(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 public function step_2(): void
39 {
40 $this->db->manipulate("DELETE FROM rbac_operations WHERE operation='create_dbk'");
41 }
42}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...