From e7cc6e680b704e912235c9f7e6c4fe52bf52d85b Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Tue, 20 Aug 2024 10:27:09 +0200 Subject: [PATCH] [dev-23.10.x] [gorgone] Fix column length for MBI (MON-143655) (#1554) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * MON-12908: add centreon-mbi etl optimized (#220) * enh(gorgone): use zmq ffi binding (#1057) Co-authored-by: Kevin Duret Co-authored-by: Laurent Pinsivy * fix(mbi) change the type of metric_unit column (#1117) * Empty-Commit * In the table mod_bi_tmp_today_servicemetrics, use the same type as defined in mod_bi_servicemetrics (#1517) * Use same type in all tables * Update metric_id column type --------- Co-authored-by: Stéphane Duret --------- Co-authored-by: qgarnier Co-authored-by: Laurent Pinsivy Co-authored-by: Stéphane Duret Co-authored-by: Paul LOUIS THERESE <53221698+paloth@users.noreply.github.com> Co-authored-by: pkippes <144150042+pkippes@users.noreply.github.com> Co-authored-by: tuntoja <58987095+tuntoja@users.noreply.github.com> Co-authored-by: tuntoja Co-authored-by: Vincent Untz --- gorgone/gorgone/modules/centreon/mbi/libs/bi/BIMetric.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gorgone/gorgone/modules/centreon/mbi/libs/bi/BIMetric.pm b/gorgone/gorgone/modules/centreon/mbi/libs/bi/BIMetric.pm index 55269e07ba9..d240db5ab7c 100644 --- a/gorgone/gorgone/modules/centreon/mbi/libs/bi/BIMetric.pm +++ b/gorgone/gorgone/modules/centreon/mbi/libs/bi/BIMetric.pm @@ -153,8 +153,8 @@ sub createTodayTable { $db->query({ query => "DROP TABLE IF EXISTS `".$self->{"today_table"}."`" }); my $query = "CREATE TABLE `" . $self->{"today_table"} . "` ("; - $query .= "`id` INT NOT NULL,"; - $query .= "`metric_id` int(11) NOT NULL,"; + $query .= "`id` BIGINT(20) UNSIGNED NOT NULL,"; + $query .= "`metric_id` BIGINT(20) UNSIGNED NOT NULL,"; $query .= "`metric_name` varchar(255) NOT NULL,"; $query .= "`sc_id` int(11) NOT NULL,"; $query .= "`hg_id` int(11) NOT NULL,";