ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.RepositoryDBUpdateSteps.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27{
28 protected \ilDBInterface $db;
29
30 public function prepare(\ilDBInterface $db): void
31 {
32 $this->db = $db;
33 }
34
35 public function step_1(): void
36 {
37 $this->db->manipulateF('DELETE FROM desktop_item WHERE item_id = %s', ['integer'], [1]);
38 $this->db->manipulateF('DELETE FROM rep_rec_content_role WHERE ref_id = %s', ['integer'], [1]);
39 }
40
41 public function step_2(): void
42 {
43 $this->db->manipulateF('DELETE FROM il_new_item_grp WHERE type = %s', ['integer'], [2]);
44 $this->db->dropTableColumn('il_new_item_grp', 'type');
45 }
46}
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...