summaryrefslogtreecommitdiffstats
path: root/admin/Database
diff options
context:
space:
mode:
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 ;