From 7218162d69e1d4b5b78617d0026d1d274b22e5ad Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Mon, 17 Feb 2020 12:28:30 +0100 Subject: #873: Fix SQL sentence in `importimage` script. --- repoman/bin/importimage | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/repoman/bin/importimage b/repoman/bin/importimage index beab8a9b..c5ac8eba 100755 --- a/repoman/bin/importimage +++ b/repoman/bin/importimage @@ -10,6 +10,9 @@ #@version 1.1.1 - Initial version #@author Ramón M. Gómez, ETSII Universidad de Sevilla #@date 2018-10-08 +#@version 1.1.1b - Fix some bugs. +#@author Ramón M. Gómez, ETSII Universidad de Sevilla +#@date 2020-02-17 #*/ @@ -134,8 +137,10 @@ INSERT INTO perfilessoft (descripcion, idcentro, grupoid) LIMIT 1; SET @profid = LAST_INSERT_ID(); INSERT INTO imagenes - (nombreca, revision, idperfilsoft, idcentro, comentarios, grupoid, idrepositorio, fechacreacion) - VALUES ('$IMAGE', 1, @profid, '$OUID', 'Image imported from repo $REPO', 0, @repoid, NOW());" + (nombreca, revision, descripcion, idperfilsoft, idcentro, + comentarios, grupoid, idrepositorio, tipo, fechacreacion) + VALUES ('$IMAGE', 1, '$IMAGE imported', @profid, '$OUID', + 'Image imported from repo $REPO', 0, @repoid, 1, NOW());" fi fi else -- cgit v1.2.3-18-g5258