Skip to content

Commit

Permalink
Update hook.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPastorClemente committed Dec 23, 2022
1 parent 03b1e40 commit b309fdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ function plugin_singlesignon_install() {

if (version_compare($currentVersion, "1.2.0", '<')) {
$query = "ALTER TABLE `glpi_plugin_singlesignon_providers`
ADD `picture` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
ADD `bgcolor` varchar(7) DEFAULT NULL,
ADD `color` varchar(7) DEFAULT NULL";
ADD COLUMN IF NOT EXISTS `picture` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
ADD COLUMN IF NOT EXISTS `bgcolor` varchar(7) DEFAULT NULL,
ADD COLUMN IF NOT EXISTS `color` varchar(7) DEFAULT NULL;";
$DB->query($query) or die("error adding picture column " . $DB->error());
}
if (version_compare($currentVersion, "1.3.0", '<')) {
Expand Down

0 comments on commit b309fdd

Please sign in to comment.