diff --git a/install/migrations/update_10.0.x_to_10.1.0/dashboards.php b/install/migrations/update_10.0.x_to_10.1.0/dashboards.php index 9a1eeef12b71..a4675eeebe9e 100644 --- a/install/migrations/update_10.0.x_to_10.1.0/dashboards.php +++ b/install/migrations/update_10.0.x_to_10.1.0/dashboards.php @@ -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'"); } diff --git a/tests/src/Command/TestUpdatedDataCommand.php b/tests/src/Command/TestUpdatedDataCommand.php index 7809acb4a123..02dc381184f4 100644 --- a/tests/src/Command/TestUpdatedDataCommand.php +++ b/tests/src/Command/TestUpdatedDataCommand.php @@ -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' ]; }