19declare(strict_types=1);
32 if (!$this->db->tableColumnExists(
'badge_badge',
'image_rid')) {
33 $this->db->addTableColumn(
48 if (!$this->db->tableColumnExists(
'badge_image_template',
'image_rid')) {
49 $this->db->addTableColumn(
50 'badge_image_template',
64 $this->db->manipulate(
65 'UPDATE badge_badge SET image_rid = NULL WHERE image_rid = ' . $this->db->quote(
70 $this->db->manipulate(
71 'UPDATE badge_image_template SET image_rid = NULL WHERE image_rid = ' . $this->db->quote(
76 if ($this->db->tableColumnExists(
'badge_badge',
'image')) {
77 $this->db->dropTableColumn(
'badge_badge',
'image');
79 if ($this->db->tableColumnExists(
'badge_image_template',
'image')) {
80 $this->db->dropTableColumn(
'badge_image_template',
'image');
prepare(ilDBInterface $db)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...