minor changes

parent 5ce08a09
...@@ -56,6 +56,12 @@ BEGIN ...@@ -56,6 +56,12 @@ BEGIN
`attributes` = JSON_REMOVE(`attributes`, '$.free_category_coord_y') `attributes` = JSON_REMOVE(`attributes`, '$.free_category_coord_y')
WHERE id = _id_stu_picto; WHERE id = _id_stu_picto;
-- Elimina id_cat, puesto que dicho valor no lo volveremos a necesitar
UPDATE stu_picto
SET
`attributes` = JSON_REMOVE(`attributes`, '$.id_cat')
WHERE id = _id_stu_picto;
-- Pictogramas que estan en escenas con categorias -- Pictogramas que estan en escenas con categorias
ELSE ELSE
...@@ -85,7 +91,7 @@ BEGIN ...@@ -85,7 +91,7 @@ BEGIN
SET id_grid = _grid_id SET id_grid = _grid_id
WHERE id = _id_stu_picto; WHERE id = _id_stu_picto;
-- Se pone id_cat a NULL, puesto que dicho valor no lo volveremos a necesitar -- Elimina id_cat, puesto que dicho valor no lo volveremos a necesitar
UPDATE stu_picto UPDATE stu_picto
SET SET
`attributes` = JSON_REMOVE(`attributes`, '$.id_cat') `attributes` = JSON_REMOVE(`attributes`, '$.id_cat')
...@@ -112,10 +118,10 @@ BEGIN ...@@ -112,10 +118,10 @@ BEGIN
SET id_grid = LID SET id_grid = LID
WHERE id = _id_stu_picto; WHERE id = _id_stu_picto;
-- Se pone id_cat a NULL, puesto que dicho valor no lo volveremos a necesitar -- Elimina id_cat, puesto que dicho valor no lo volveremos a necesitar
UPDATE stu_picto UPDATE stu_picto
SET SET
`attributes` = JSON_REMOVE(`attributes`, '$.id_cat', NULL) `attributes` = JSON_REMOVE(`attributes`, '$.id_cat')
WHERE id = _id_stu_picto; WHERE id = _id_stu_picto;
END IF; END IF;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment