ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
class.ilMDUpdateSteps11.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
33 public function step_1(): void
34 {
35 if (!$this->db->tableColumnExists('il_meta_oer_exposed', 'deleted')) {
36 $this->db->addTableColumn(
37 'il_meta_oer_exposed',
38 'deleted',
39 [
41 'notnull' => true,
42 'default' => 0,
43 'length' => 1
44 ]
45 );
46 }
47 }
48}
step_1()
Add deleted column to il_meta_oer_exposed.
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...