From 90c670e37f64fb7c3caea82148a675be8fa45bf4 Mon Sep 17 00:00:00 2001 From: albertogp Date: Wed, 7 Jun 2017 11:59:56 +0000 Subject: #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 --- admin/Database/ogAdmBD-1.1.0pre.sql | 7 +++++++ admin/Database/ogAdmBD.sql | 1 + 2 files changed, 8 insertions(+) (limited to 'admin/Database') 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 ; -- cgit v1.2.3-18-g5258