From 18bfa9e2ac42605fb8fe69f9255de734897aaab7 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 6 Oct 2016 16:39:44 +0200 Subject: [PATCH] add column and update alias --- .../extras/pandoradb_migrate_6.0_to_6.1.mysql.sql | 7 +++++++ .../extras/pandoradb_migrate_6.0_to_6.1.oracle.sql | 7 +++++++ 2 files changed, 14 insertions(+) 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 899243a21a..3503ebd7a4 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 @@ -68,3 +68,10 @@ ALTER TABLE tevent_filter ADD COLUMN `date_to` date DEFAULT NULL; -- --------------------------------------------------------------------- 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; + +-- --------------------------------------------------------------------- +-- Table `tagente` +-- --------------------------------------------------------------------- +ALTER TABLE tagente ADD COLUMN (alias varchar(600) not null default ''); + +UPDATE tagente SET tagente.alias = tagente.nombre; \ No newline at end of file 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 88d9dd5838..73052ec3ed 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 @@ -67,3 +67,10 @@ ALTER TABLE tevent_filter ADD COLUMN date_to date DEFAULT NULL; -- --------------------------------------------------------------------- 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; + +-- --------------------------------------------------------------------- +-- Table `tagente` +-- --------------------------------------------------------------------- +ALTER TABLE tagente ADD COLUMN (alias VARCHAR2(600) not null DEFAULT ''); + +UPDATE `tagente` SET tagente.alias = tagente.nombre; \ No newline at end of file