summaryrefslogtreecommitdiffstats
path: root/admin/Database/ogAdmBD-1.1.1c-1.2.0.sql
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2020-07-23 18:27:24 +0200
committerRamón M. Gómez <ramongomez@us.es>2020-07-23 18:27:24 +0200
commitc607df7196c186ef3fc721901bdaf01b5638be98 (patch)
treef9faecab85ba15224e3c001fe361cd78e76c1ab7 /admin/Database/ogAdmBD-1.1.1c-1.2.0.sql
parent363defe753c42058849721b304c75757cab34591 (diff)
#992: Set/unset URL to release a client for remote access.
Diffstat (limited to 'admin/Database/ogAdmBD-1.1.1c-1.2.0.sql')
-rw-r--r--admin/Database/ogAdmBD-1.1.1c-1.2.0.sql14
1 files changed, 12 insertions, 2 deletions
diff --git a/admin/Database/ogAdmBD-1.1.1c-1.2.0.sql b/admin/Database/ogAdmBD-1.1.1c-1.2.0.sql
index e02aad1e..fb16fe46 100644
--- a/admin/Database/ogAdmBD-1.1.1c-1.2.0.sql
+++ b/admin/Database/ogAdmBD-1.1.1c-1.2.0.sql
@@ -22,15 +22,25 @@ CREATE PROCEDURE altercols() BEGIN
ADD inremotepc SMALLINT NOT NULL DEFAULT 0,
ADD maintenance SMALLINT NOT NULL DEFAULT 0;
END IF;
+ # Añadir campo con URL para liberar equipo reservado para acceso remoto (ticket #992).
+ IF NOT EXISTS (SELECT * FROM information_schema.COLUMNS
+ WHERE COLUMN_NAME='urlrelease' AND TABLE_NAME='remotepc' AND TABLE_SCHEMA=DATABASE())
+ THEN
+ ALTER TABLE remotepc
+ ADD urlrelease VARCHAR(100) DEFAULT NULL;
+ END IF;
END//
# Ejecutar actualización condicional.
DELIMITER ';'
CALL altercols();
DROP PROCEDURE altercols;
-# Redefinir algunos campos como no nulos.
+# Redefinir campos como no nulos.
ALTER TABLE aulas
MODIFY inremotepc SMALLINT NOT NULL DEFAULT 0;
ALTER TABLE imagenes
MODIFY inremotepc SMALLINT NOT NULL DEFAULT 0;
-
+# Redefinir campos como nulos por defecto.
+ALTER TABLE remotepc
+ MODIFY urllogin VARCHAR(100) DEFAULT NULL,
+ MODIFY urllogout VARCHAR(100) DEFAULT NULL;