summaryrefslogtreecommitdiffstats
path: root/admin/Database/ogAdmBD-1.1.0pre.sql
diff options
context:
space:
mode:
Diffstat (limited to 'admin/Database/ogAdmBD-1.1.0pre.sql')
-rw-r--r--admin/Database/ogAdmBD-1.1.0pre.sql8
1 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 c94ed993..5b59fb05 100644
--- a/admin/Database/ogAdmBD-1.1.0pre.sql
+++ b/admin/Database/ogAdmBD-1.1.0pre.sql
@@ -77,6 +77,14 @@ CREATE PROCEDURE addcols() BEGIN
ALTER TABLE aulas
ADD oglivedir VARCHAR(50) NOT NULL DEFAULT 'ogLive';
END IF;
+ # Eliminar campos sin uso en aulas (ticket #730).
+ IF EXISTS (SELECT * FROM information_schema.COLUMNS
+ WHERE COLUMN_NAME='cuadro_x' AND TABLE_NAME='aulas' AND TABLE_SCHEMA=DATABASE())
+ THEN
+ ALTER TABLE aulas
+ DROP cuadro_x,
+ DROP cuadro_y;
+ 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())