summaryrefslogtreecommitdiffstats
path: root/admin/Database
diff options
context:
space:
mode:
authoralbertogp <albertogp@uma.es>2017-06-07 11:59:56 +0000
committeralbertogp <albertogp@uma.es>2017-06-07 11:59:56 +0000
commit90c670e37f64fb7c3caea82148a675be8fa45bf4 (patch)
tree738cad869cbe05a4a3e23d3bf963b6c6e35f0f10 /admin/Database
parentd13a559a2f7ff44357750b0e02faf24dd4842956 (diff)
#768
Introducir cambios en la consola web para gestionar multiples ogLives git-svn-id: https://opengnsys.es/svn/branches/version1.1@5350 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Database')
-rw-r--r--admin/Database/ogAdmBD-1.1.0pre.sql7
-rw-r--r--admin/Database/ogAdmBD.sql1
2 files changed, 8 insertions, 0 deletions
diff --git a/admin/Database/ogAdmBD-1.1.0pre.sql b/admin/Database/ogAdmBD-1.1.0pre.sql
index 4fbdd038..48f24a37 100644
--- a/admin/Database/ogAdmBD-1.1.0pre.sql
+++ b/admin/Database/ogAdmBD-1.1.0pre.sql
@@ -70,6 +70,13 @@ CREATE PROCEDURE addcols() BEGIN
ALTER TABLE ordenadores
ADD oglivedir VARCHAR(50) NOT NULL DEFAULT 'ogLive';
END IF;
+ # AƱadir campo para directorio de ogLive asociado al cliente (ticket #768).
+ IF NOT EXISTS (SELECT * FROM information_schema.COLUMNS
+ WHERE COLUMN_NAME='oglivedir' AND TABLE_NAME='aulas' AND TABLE_SCHEMA=DATABASE())
+ THEN
+ ALTER TABLE aulas
+ ADD oglivedir VARCHAR(50) NOT NULL DEFAULT 'ogLive';
+ END IF;
# Eliminar campos no usado en inventario de hardware (ticket #713).
IF EXISTS (SELECT * FROM information_schema.COLUMNS
WHERE COLUMN_NAME='pci' AND TABLE_NAME='tipohardwares' AND TABLE_SCHEMA=DATABASE())
diff --git a/admin/Database/ogAdmBD.sql b/admin/Database/ogAdmBD.sql
index 18e8e67b..a3801da2 100644
--- a/admin/Database/ogAdmBD.sql
+++ b/admin/Database/ogAdmBD.sql
@@ -133,6 +133,7 @@ CREATE TABLE IF NOT EXISTS `aulas` (
`paginalogin` varchar(100),
`paginavalidacion` varchar(100),
`inremotepc` tinyint DEFAULT '0',
+ `oglivedir` varchar(50) NOT NULL DEFAULT 'ogLive',
PRIMARY KEY (`idaula`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;