close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
|
Last change
on this file since 8c7b374 was
60ea634,
checked in by Ramón M. Gómez <ramongomez@…>, 7 years ago
|
|
#875: Remove unused field from repositories table and update list of closed tickets.
|
-
Property mode set to
100644
|
|
File size:
997 bytes
|
| Line | |
|---|
| 1 | ### Fichero de actualización de la base de datos. |
|---|
| 2 | # OpenGnsys 1.1.1 |
|---|
| 3 | #use ogAdmBD |
|---|
| 4 | |
|---|
| 5 | # Eliminar procedimiento y disparador para evitar errores de ejecución. |
|---|
| 6 | DROP PROCEDURE IF EXISTS addcols; |
|---|
| 7 | # Procedimiento para actualización condicional de tablas. |
|---|
| 8 | DELIMITER '//' |
|---|
| 9 | CREATE PROCEDURE addcols() BEGIN |
|---|
| 10 | # Añadir campo para incluir PC de profesor de aula (ticket #816). |
|---|
| 11 | IF NOT EXISTS (SELECT * FROM information_schema.COLUMNS |
|---|
| 12 | WHERE COLUMN_NAME='idordprofesor' AND TABLE_NAME='aulas' AND TABLE_SCHEMA=DATABASE()) |
|---|
| 13 | THEN |
|---|
| 14 | ALTER TABLE aulas |
|---|
| 15 | ADD idordprofesor INT(11) DEFAULT 0 AFTER puestos; |
|---|
| 16 | END IF; |
|---|
| 17 | # Borrar campos sin uso del antiguo servicio ogAdmRepo (ticket #875). |
|---|
| 18 | IF EXISTS (SELECT * FROM information_schema.COLUMNS |
|---|
| 19 | WHERE COLUMN_NAME='puertorepo' AND TABLE_NAME='repositorios' AND TABLE_SCHEMA=DATABASE()) |
|---|
| 20 | THEN |
|---|
| 21 | ALTER TABLE repositorios |
|---|
| 22 | DROP passguor, |
|---|
| 23 | DROP puertorepo; |
|---|
| 24 | END IF; |
|---|
| 25 | END// |
|---|
| 26 | # Ejecutar actualización condicional. |
|---|
| 27 | DELIMITER ';' |
|---|
| 28 | CALL addcols(); |
|---|
| 29 | DROP PROCEDURE addcols; |
|---|
| 30 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.