19 declare(strict_types=1);
26 protected \ilDBInterface
$db;
35 if ($this->db->tableExists(
"il_compoment")) {
36 $this->db->dropTable(
"il_component");
42 $this->db->dropTable(
"il_pluginslot");
47 $this->db->manipulate(
"DELETE FROM il_plugin WHERE plugin_id IS NULL");
53 $this->db->addPrimaryKey(
"il_plugin", [
"plugin_id"]);
54 }
catch (\PDOException
$e) {
55 $this->db->dropPrimaryKey(
"il_plugin");
56 $this->db->addPrimaryKey(
"il_plugin", [
"plugin_id"]);
62 if (!$this->db->tableColumnExists(
"il_plugin",
"component_type")) {
66 $this->db->dropTableColumn(
"il_plugin",
"component_type");
71 if (!$this->db->tableColumnExists(
"il_plugin",
"component_name")) {
75 $this->db->dropTableColumn(
"il_plugin",
"component_name");
80 if (!$this->db->tableColumnExists(
"il_plugin",
"slot_id")) {
84 $this->db->dropTableColumn(
"il_plugin",
"slot_id");
89 if (!$this->db->tableColumnExists(
"il_plugin",
"name")) {
93 $this->db->dropTableColumn(
"il_plugin",
"name");
prepare(\ilDBInterface $db)
Prepare the execution of the steps.