ILIAS  release_8 Revision v8.25
class.ilAuthenticationDatabaseUpdateSteps8.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->tableExists('usr_session_stats_raw') &&
33 $this->db->tableColumnExists('usr_session_stats_raw', 'start_time')) {
34 $this->db->addIndex(
35 'usr_session_stats_raw',
36 ['start_time'],
37 'i1'
38 );
39 }
40 }
41}
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...