Skip to content

Commit

Permalink
In the table mod_bi_tmp_today_servicemetrics, use the same type as de…
Browse files Browse the repository at this point in the history
…fined in mod_bi_servicemetrics (#1517)

* Use same type in all tables

* Update metric_id column type

---------

Co-authored-by: Stéphane Duret <[email protected]>
  • Loading branch information
vuntz and s-duret committed Jul 15, 2024
1 parent dd95609 commit acf0473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gorgone/gorgone/modules/centreon/mbi/libs/bi/BIMetric.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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,";
Expand Down

0 comments on commit acf0473

Please sign in to comment.