Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
850fa2d6
authored
Jan 06, 2016
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
generation of stu_picto entries fixed
parent
4e6c7d65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
sails/conf/pictodb-test-caja.sql
sails/conf/pictodb-test-caja.sql
View file @
850fa2d6
...
...
@@ -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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment