Skip to content

Commit

Permalink
fix update
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Jan 4, 2024
1 parent f5e0339 commit da36a61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions install/migrations/update_10.0.x_to_10.1.0/dashboards.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,5 @@
*/

if (!$DB->fieldExists("glpi_dashboards_dashboards", "is_placeholder", false)) {
$migration->addField("glpi_dashboards_dashboards", "is_placeholder", "tinyint", [
'null' => false,
'default' => 0,
]);
$migration->addField("glpi_dashboards_dashboards", "is_placeholder", "tinyint NOT NULL default '0'");
}
4 changes: 4 additions & 0 deletions tests/src/Command/TestUpdatedDataCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ private function getExcludedTables(): array
'glpi_rules',
'glpi_rulecriterias',
'glpi_ruleactions',

// Dashbords may have placeholders which are only present on new installs
'glpi_dashboards_dashboards',
'glpi_dashboards_items'
];
}

Expand Down

0 comments on commit da36a61

Please sign in to comment.