Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(itsm_update_151_200.php): added back glpi_dashboards #238

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions install/itsm_update_151_200.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,20 @@ function update151to200() : bool {
$DB->queryOrDie($query, "erreur lors de la mise a jour de la table de glpi_user_menu".$DB->error());
}

if (!$DB->tableExists('glpi_dashboards')) {
$query = "
CREATE TABLE `glpi_dashboards` (
`id` int(11) NOT NULL UNIQUE AUTO_INCREMENT,
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`content` LONGTEXT COLLATE utf8mb4_unicode_ci NOT NULL,
`profileId` int(11) NOT NULL DEFAULT 0,
`userId` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`profileId`, `userId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
";
$DB->queryOrDie($query, "erreur lors de la mise a jour de la table de glpi_dashboards".$DB->error());
}

// ************ Keep it at the end **************
$migration->executeMigration();
return $updateresult;
Expand Down
Loading