2012-11-06 Ramon Novoa <rnovoa@artica.es>

* pandoradb.sql,
	  pandoradb.postgreSQL.sql,
	  pandoradb.oracle.sql,
	  extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
	  extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
	  extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql: Added a new
	  column to tagente_estado to store possible errors.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7132 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2012-11-06 17:57:24 +00:00
parent 85655653f6
commit b03592cef0
7 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,13 @@
2012-11-06 Ramon Novoa <rnovoa@artica.es>
* pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql: Added a new
column to tagente_estado to store possible errors.
2012-11-05 Miguel de Dios <miguel.dedios@artica.es> 2012-11-05 Miguel de Dios <miguel.dedios@artica.es>
* operation/events/events_list.php: fixed the lost tag span (with * operation/events/events_list.php: fixed the lost tag span (with

View File

@ -328,6 +328,7 @@ ALTER TABLE tnetwork_map ADD `show_modules` TINYINT(1) UNSIGNED NOT NULL DEFAULT
-- Table `tagente_estado` -- Table `tagente_estado`
-- ---------------------------------------------------------------------- -- ----------------------------------------------------------------------
ALTER TABLE `tagente_estado` ADD COLUMN `last_known_status` tinyint(4) NOT NULL DEFAULT 0; ALTER TABLE `tagente_estado` ADD COLUMN `last_known_status` tinyint(4) NOT NULL DEFAULT 0;
ALTER TABLE `tagente_estado` ADD COLUMN `last_error` int(4) NOT NULL DEFAULT '0',
-- --------------------------------------------------------------------- -- ---------------------------------------------------------------------
-- Table `tevent_response` -- Table `tevent_response`

View File

@ -358,7 +358,8 @@ ALTER TABLE tnetwork_map ADD (show_groups NUMBER(10, 0) default 0 NOT NULL);
------------------------------------------------------------------------ ------------------------------------------------------------------------
-- Table tagente_estado -- Table tagente_estado
------------------------------------------------------------------------ ------------------------------------------------------------------------
ALTER TABLE tagente_estado ADD (last_known_status NUMBER(5, 0) default 0 NOT NULL); ALTER TABLE tagente_estado ADD (last_known_status NUMBER(10, 0) default 0 NOT NULL);
ALTER TABLE tagente_estado ADD (last_error NUMBER(10, 0) default 0 NOT NULL);
-- ----------------------------------------------------- -- -----------------------------------------------------
-- Table tevent_response -- Table tevent_response

View File

@ -350,6 +350,7 @@ ALTER TABLE "tnetwork_map" ADD COLUMN "show_groups" INTEGER NOT NULL DEFAULT 0;
-- Table "tagente_estado" -- Table "tagente_estado"
------------------------------------------------------------------------ ------------------------------------------------------------------------
ALTER TABLE "tagente_estado" ADD COLUMN "last_known_status" INTEGER default 0; ALTER TABLE "tagente_estado" ADD COLUMN "last_known_status" INTEGER default 0;
ALTER TABLE "tagente_estado" ADD COLUMN "last_error" INTEGER default 0;
-- ----------------------------------------------------- -- -----------------------------------------------------
-- Table "tevent_response" -- Table "tevent_response"

View File

@ -154,7 +154,8 @@ CREATE TABLE tagente_estado (
last_execution_try NUMBER(19, 0) default 0 NOT NULL, last_execution_try NUMBER(19, 0) default 0 NOT NULL,
status_changes NUMBER(10, 0) default 0, status_changes NUMBER(10, 0) default 0,
last_status NUMBER(10, 0) default 0, last_status NUMBER(10, 0) default 0,
last_known_status NUMBER(10, 0) default 0 last_known_status NUMBER(10, 0) default 0,
last_error NUMBER(10, 0) default 0
); );
CREATE INDEX tagente_estado_id_agente_idx ON tagente_estado(id_agente); CREATE INDEX tagente_estado_id_agente_idx ON tagente_estado(id_agente);
CREATE INDEX tagente_estado_estado_idx ON tagente_estado(estado); CREATE INDEX tagente_estado_estado_idx ON tagente_estado(estado);

View File

@ -147,7 +147,8 @@ CREATE TABLE "tagente_estado" (
"last_execution_try" BIGINT NOT NULL default 0, "last_execution_try" BIGINT NOT NULL default 0,
"status_changes" INTEGER default 0, "status_changes" INTEGER default 0,
"last_status" INTEGER default 0, "last_status" INTEGER default 0,
"last_known_status" INTEGER default 0 "last_known_status" INTEGER default 0,
"last_error" INTEGER default 0
); );
CREATE INDEX "tagente_estado_id_agente_modulo_idx" ON "tagente_estado"("id_agente_modulo"); CREATE INDEX "tagente_estado_id_agente_modulo_idx" ON "tagente_estado"("id_agente_modulo");
CREATE INDEX "tagente_estado_id_agente_idx" ON "tagente_estado"("id_agente"); CREATE INDEX "tagente_estado_id_agente_idx" ON "tagente_estado"("id_agente");

View File

@ -146,6 +146,7 @@ CREATE TABLE `tagente_estado` (
`status_changes` tinyint(4) default 0, `status_changes` tinyint(4) default 0,
`last_status` tinyint(4) default 0, `last_status` tinyint(4) default 0,
`last_known_status` tinyint(4) default 0, `last_known_status` tinyint(4) default 0,
`last_error` int(4) NOT NULL default '0',
PRIMARY KEY (`id_agente_estado`), PRIMARY KEY (`id_agente_estado`),
KEY `status_index_1` (`id_agente_modulo`), KEY `status_index_1` (`id_agente_modulo`),
KEY `idx_agente` (`id_agente`), KEY `idx_agente` (`id_agente`),