From da36a619616a04eebd163a27ca9f86a7e8b3d402 Mon Sep 17 00:00:00 2001 From: Curtis Conard Date: Thu, 4 Jan 2024 12:17:48 -0500 Subject: [PATCH] fix update --- install/migrations/update_10.0.x_to_10.1.0/dashboards.php | 5 +---- tests/src/Command/TestUpdatedDataCommand.php | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) 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' ]; }