diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5209a26270..b1817a9250 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-02-07 Dario Rodriguez + + * pandoradb.sql, + extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql: Fixed an error with + weight field of custom graphs + 2012-02-06 Ramon Novoa * operation/netflow/nf_live_view.php: Fixed filter load ACL check. diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql index fd444e204d..3b0c5ee433 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql @@ -120,3 +120,8 @@ ALTER TABLE `tagente_modulo` CHANGE COLUMN `post_process` `post_process` double( -- Table `tnetwork_component` -- ----------------------------------------------------- ALTER TABLE `tnetwork_component` CHANGE COLUMN `post_process` `post_process` double(18,5) default NULL; + +-- ----------------------------------------------------- +-- Table `tgraph_source` Alter table to allow negative values in weight +-- ----------------------------------------------------- +ALTER TABLE tgraph_source MODIFY weight FLOAT(5,3) NOT NULL DEFAULT '0.000'; diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 1068e907c9..bd373609ba 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -816,7 +816,7 @@ CREATE TABLE IF NOT EXISTS `tgraph_source` ( `id_gs` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, `id_graph` int(11) NOT NULL default 0, `id_agent_module` int(11) NOT NULL default 0, - `weight` float(5,3) UNSIGNED NOT NULL DEFAULT 0, + `weight` float(5,3) NOT NULL DEFAULT 0, PRIMARY KEY(`id_gs`) ) ENGINE = InnoDB DEFAULT CHARSET=utf8;