ILIAS  release_8 Revision v8.24
ilStudyProgrammeAutoCategoryTableUpdateSteps.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
23{
24 public const TABLE_NAME = 'prg_auto_content';
25
26 protected ilDBInterface $db;
27
28 public function prepare(ilDBInterface $db): void
29 {
30 $this->db = $db;
31 }
32
33 public function step_1(): void
34 {
35 $column_name = 'title';
36
37 if ($this->db->tableColumnExists(self::TABLE_NAME, $column_name)) {
38 $this->db->dropTableColumn(
39 self::TABLE_NAME,
40 $column_name
41 );
42 }
43 }
44}
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...