ILIAS  release_8 Revision v8.24
ilCourseObjectiveDBUpdateSteps.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 protected ilDBInterface $db;
24
25 public function prepare(ilDBInterface $db): void
26 {
27 $this->db = $db;
28 }
29
30 public function step_1(): void
31 {
32 if (!$this->db->indexExistsByFields('loc_settings', ['itest'])) {
33 $this->db->addIndex('loc_settings', ['itest'], 'i1');
34 }
35 }
36
37 public function step_2(): void
38 {
39 if (!$this->db->indexExistsByFields('loc_settings', ['qtest'])) {
40 $this->db->addIndex('loc_settings', ['qtest'], 'i2');
41 }
42 }
43}
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...