diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b4cfddddc1..d706072332 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-01-15 Pablo de la ConcepciĆ³n + + * pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Added column + number_of_packages to tgis_data to track the number of data packages + received while the agent is in the same position. + 2010-01-15 Pablo de la ConcepciĆ³n * pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Modified DB diff --git a/pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql b/pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql index f55b657d8c..815d683a9c 100644 --- a/pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql +++ b/pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql @@ -20,7 +20,8 @@ CREATE TABLE IF NOT EXISTS `tgis_data` ( `start_timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'timestamp on wich the agente started to be in this position' , `end_timestamp` TIMESTAMP NULL COMMENT 'timestamp on wich the agent was placed for last time on this position' , `description` TEXT NULL COMMENT 'description of the region correoponding to this placemnt' , - `manual_placement` TINYINT(1) NULL DEFAULT 0 COMMENT '0 to show that the position cames from the agent, 1 to show that the position was established manualy' , + `manual_placement` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '0 to show that the position cames from the agent, 1 to show that the position was established manualy' , + `number_of_packages` INT NOT NULL DEFAULT 1 COMMENT 'Number of data packages received with this position from the start_timestampa to the_end_timestamp' , `tagente_id_agente` INT(10) NOT NULL COMMENT 'reference to the agent' , PRIMARY KEY (`id_tgis_data`) , INDEX `start_timestamp_index` (`start_timestamp` ASC) , diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index cac1b0e8ae..023d8c997f 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -870,7 +870,8 @@ CREATE TABLE IF NOT EXISTS `tgis_data` ( `start_timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'timestamp on wich the agente started to be in this position' , `end_timestamp` TIMESTAMP NULL COMMENT 'timestamp on wich the agent was placed for last time on this position' , `description` TEXT NULL COMMENT 'description of the region correoponding to this placemnt' , - `manual_placement` TINYINT(1) NULL DEFAULT 0 COMMENT '0 to show that the position cames from the agent, 1 to show that the position was established manualy' , + `manual_placement` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '0 to show that the position cames from the agent, 1 to show that the position was established manualy' , + `number_of_packages` INT NOT NULL DEFAULT 1 COMMENT 'Number of data packages received with this position from the start_timestampa to the_end_timestamp' , `tagente_id_agente` INT(10) NOT NULL COMMENT 'reference to the agent' , PRIMARY KEY (`id_tgis_data`) , INDEX `start_timestamp_index` (`start_timestamp` ASC) ,