20 declare(strict_types=1);
27 protected \ilDBInterface
$db;
36 if ($this->db->tableExists(
"il_compoment")) {
37 $this->db->dropTable(
"il_component");
43 $this->db->dropTable(
"il_pluginslot");
48 $this->db->manipulate(
"DELETE FROM il_plugin WHERE plugin_id IS NULL");
54 $this->db->addPrimaryKey(
"il_plugin", [
"plugin_id"]);
56 $this->db->dropPrimaryKey(
"il_plugin");
57 $this->db->addPrimaryKey(
"il_plugin", [
"plugin_id"]);
63 if (!$this->db->tableColumnExists(
"il_plugin",
"component_type")) {
67 $this->db->dropTableColumn(
"il_plugin",
"component_type");
72 if (!$this->db->tableColumnExists(
"il_plugin",
"component_name")) {
76 $this->db->dropTableColumn(
"il_plugin",
"component_name");
81 if (!$this->db->tableColumnExists(
"il_plugin",
"slot_id")) {
85 $this->db->dropTableColumn(
"il_plugin",
"slot_id");
90 if (!$this->db->tableColumnExists(
"il_plugin",
"name")) {
94 $this->db->dropTableColumn(
"il_plugin",
"name");
prepare(\ilDBInterface $db)
Prepare the execution of the steps.