diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql index a77d91882d..447b98a981 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql @@ -183,8 +183,9 @@ ALTER TABLE tevent_filter ADD COLUMN `date_to` date DEFAULT NULL; -- --------------------------------------------------------------------- -- Table `tusuario` -- --------------------------------------------------------------------- -ALTER TABLE tusuario ADD (`id_filter` int(10) unsigned NULL default NULL); -ALTER TABLE tusuario ADD CONSTRAINT fk_id_filter FOREIGN KEY (id_filter) REFERENCES tevent_filter(id_filter) ON DELETE SET NULL; +ALTER TABLE tusuario ADD COLUMN `id_filter` int(10) unsigned NULL default NULL; +ALTER TABLE tusuario ADD COLUMN CONSTRAINT `fk_id_filter` FOREIGN KEY (id_filter) REFERENCES tevent_filter(id_filter) ON DELETE SET NULL; +ALTER TABLE tusuario ADD COLUMN `session_time` int(10) unsigned NOT NULL default '0'; -- --------------------------------------------------------------------- -- Table `tagente_modulo` diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql index fa565a15a8..14d05bc4bb 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql @@ -105,8 +105,9 @@ ALTER TABLE tevent_filter ADD COLUMN date_to date DEFAULT NULL; -- --------------------------------------------------------------------- -- Table `tusuario` -- --------------------------------------------------------------------- -ALTER TABLE tusuario ADD (id_filter int(10) unsigned NULL default NULL); -ALTER TABLE tusuario ADD CONSTRAINT fk_id_filter FOREIGN KEY (id_filter) REFERENCES tevent_filter(id_filter) ON DELETE SET NULL; +ALTER TABLE tusuario ADD COLUMN id_filter int(10) unsigned default NULL; +ALTER TABLE tusuario ADD COLUMN CONSTRAINT fk_id_filter FOREIGN KEY (id_filter) REFERENCES tevent_filter(id_filter) ON DELETE SET NULL; +ALTER TABLE tusuario ADD COLUMN session_time int(10) NOT NULL default '0'; -- --------------------------------------------------------------------- -- Table `tagente_modulo` diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.postgreSQL.sql index 0835b8bff3..6965a65447 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.postgreSQL.sql @@ -5,6 +5,14 @@ ALTER TABLE tagente_estado RENAME COLUMN last_known_status TO known_status; ALTER TABLE tagente_estado ADD COLUMN last_known_status NUMBER(10, 0) DEFAULT 0; +-- --------------------------------------------------------------------- +-- Table `tusuario` +-- --------------------------------------------------------------------- + +ALTER TABLE tusuario ADD COLUMN id_filter int(10) unsigned default NULL; +ALTER TABLE tusuario ADD COLUMN CONSTRAINT fk_id_filter FOREIGN KEY (id_filter) REFERENCES tevent_filter(id_filter) ON DELETE SET NULL; +ALTER TABLE tusuario ADD COLUMN session_time int(10) NOT NULL default 0; + -- --------------------------------------------------------------------- -- Table `tagente_modulo` -- ---------------------------------------------------------------------