From 3580e4c0689f0e7238cdc9a89371dd9f17091cfe Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Date: Tue, 6 Mar 2018 16:39:50 +0100 Subject: [PATCH] Incrementing problem The 'cb_list_id' field is not auto-incrementing --- www/install/sql/centreon/Update-DB-2.8.17_to_2.8.18.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/install/sql/centreon/Update-DB-2.8.17_to_2.8.18.sql b/www/install/sql/centreon/Update-DB-2.8.17_to_2.8.18.sql index 44778486502..4b2405ebd5a 100644 --- a/www/install/sql/centreon/Update-DB-2.8.17_to_2.8.18.sql +++ b/www/install/sql/centreon/Update-DB-2.8.17_to_2.8.18.sql @@ -40,8 +40,8 @@ VALUES ( (SELECT `cb_field_id` FROM `cb_field` WHERE `description` = 'Value of the metric.'), 0, 3, NULL, NULL); -INSERT INTO `cb_list` (`cb_field_id`, `default_value`) -VALUES((SELECT `cb_field_id` FROM `cb_field` WHERE `description` = 'Type of the metric.'), 'string'); +INSERT INTO `cb_list` (`cb_list_id`, `cb_field_id`, `default_value`) +VALUES((SELECT max(cb_list_id)+1 FROM `cb_list`), (SELECT `cb_field_id` FROM `cb_field` WHERE `description` = 'Type of the metric.'), 'string'); INSERT INTO `cb_list_values` (`cb_list_id`, `value_name`, `value_value`) VALUES