diff options
author | ramon <ramongomez@us.es> | 2017-06-01 11:49:37 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2017-06-01 11:49:37 +0000 |
commit | c311ef2f23332a9aff1a6f8a2ecd8ebd20be2190 (patch) | |
tree | bc0996ec04836ab91a922178b91ea877da6501e8 /admin/Database/ogAdmBD-1.1.0pre.sql | |
parent | 62077ff1766cab272b5a663351349526c3f3739c (diff) |
#768: Añadir campo de directorio de ogLive en table de ordenadores de la BD.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5332 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Database/ogAdmBD-1.1.0pre.sql')
-rw-r--r-- | admin/Database/ogAdmBD-1.1.0pre.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/Database/ogAdmBD-1.1.0pre.sql b/admin/Database/ogAdmBD-1.1.0pre.sql index 56d612b0..4fbdd038 100644 --- a/admin/Database/ogAdmBD-1.1.0pre.sql +++ b/admin/Database/ogAdmBD-1.1.0pre.sql @@ -63,6 +63,13 @@ CREATE PROCEDURE addcols() BEGIN ALTER TABLE ordenadores ADD KEY idaulaip (idaula ASC, ip ASC); 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='ordenadores' AND TABLE_SCHEMA=DATABASE()) + THEN + ALTER TABLE ordenadores + 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()) |