ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
class.ilGlossaryDBUpdateSteps11.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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->tableColumnExists('glossary', 'downloads_active')) {
33  $this->db->dropTableColumn('glossary', 'downloads_active');
34  }
35  if ($this->db->tableColumnExists('glossary', 'public_xml_file')) {
36  $this->db->dropTableColumn('glossary', 'public_xml_file');
37  }
38  if ($this->db->tableColumnExists('glossary', 'public_html_file')) {
39  $this->db->dropTableColumn('glossary', 'public_html_file');
40  }
41  }
42 }
prepare(\ilDBInterface $db)
Prepare the execution of the steps.