19 declare(strict_types=1);
26 protected \ilDBInterface
$db;
35 $this->db->dropTable(
"il_component");
40 $this->db->dropTable(
"il_pluginslot");
45 $this->db->manipulate(
"DELETE FROM il_plugin WHERE plugin_id IS NULL");
51 $this->db->addPrimaryKey(
"il_plugin", [
"plugin_id"]);
52 }
catch (\PDOException
$e) {
53 $this->db->dropPrimaryKey(
"il_plugin");
54 $this->db->addPrimaryKey(
"il_plugin", [
"plugin_id"]);
60 if (!$this->db->tableColumnExists(
"il_plugin",
"component_type")) {
64 $this->db->dropTableColumn(
"il_plugin",
"component_type");
69 if (!$this->db->tableColumnExists(
"il_plugin",
"component_name")) {
73 $this->db->dropTableColumn(
"il_plugin",
"component_name");
78 if (!$this->db->tableColumnExists(
"il_plugin",
"slot_id")) {
82 $this->db->dropTableColumn(
"il_plugin",
"slot_id");
87 if (!$this->db->tableColumnExists(
"il_plugin",
"name")) {
91 $this->db->dropTableColumn(
"il_plugin",
"name");
prepare(\ilDBInterface $db)
Prepare the execution of the steps.