generation of stu_picto entries fixed

parent 4e6c7d65
Showing with 2 additions and 6 deletions
......@@ -162,7 +162,6 @@ select a.name,b.attributes,text from student a, stu_picto b, picto c, picto_exp
--
-- CAJA Core vocabulary
--
CREATE TABLE id_office (SELECT id FROM office WHERE name='Comunicación Aumentativa JAén (CAJA)');
INSERT INTO stu_picto(id_stu,id_pic,attributes)
SELECT S.id,P.id_pic, concat('{"id_cat":', if (id_cat_pic is null, 'null',id_cat_pic),
',"coord_x":',coord_x,
......@@ -170,11 +169,8 @@ SELECT S.id,P.id_pic, concat('{"id_cat":', if (id_cat_pic is null, 'null',id_cat
',"status":"invisible"',
',"highlight":false',
',"color":', if (color is null, 'null',concat('"',color,'"')),
',"expression":"',text,'"'
'}') as attributes
FROM student S, picto_core_cat P,picto_exp E
WHERE S.id_off = (select id from id_office) and E.lang=S.lang and E.id_pic=P.id;
DROP TABLE id_office;
FROM student S, picto_core_cat P
WHERE S.id_off =(SELECT id from office where name='Comunicación Aumentativa JAén (CAJA)');
SET foreign_key_checks=1;
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