ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
UpdateSteps11.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Search\Setup;
22
26
28{
29 protected ilDBInterface $db;
30
31 public function prepare(ilDBInterface $db): void
32 {
33 $this->db = $db;
34 }
35
39 public function step_1(): void
40 {
41 if (!$this->db->tableColumnExists('usr_search', 'copyright_filter')) {
42 $this->db->addTableColumn(
43 'usr_search',
44 'copyright_filter',
45 [
46 'type' => ilDBConstants::T_TEXT,
47 'default' => null,
48 'length' => 1000
49 ]
50 );
51 }
52 }
53}
step_1()
Add a column for the copyright filter to usr_search.
Class ilDBConstants.
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...