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
e780a1fa
authored
Nov 08, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
new-grid adapt2 revision
parent
f2c54969
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
sails/roles/database/files/new-grid-system-adapt2.sql
sails/roles/database/files/new-grid-system-adapt2.sql
View file @
e780a1fa
...
...
@@ -35,16 +35,16 @@ WHERE
attributes
->>
"$.coord_y"
>
0
;
INSERT
INTO
grid
(
name
,
id
,
id_stu
)
SELECT
p
icto_exp
.
text
,
stu_picto
.
id_child_grid
,
stu_picto
.
id_stu
FROM
stu_picto
,
picto_exp
WHERE
stu_picto
.
id_child_grid
IS
NOT
NULL
AND
stu_picto
.
id_pic
=
picto_exp
.
id_pic
AND
picto_exp
.
lang
=
'es-es'
LIMIT
1
;
-- NOTA: LIMIT 1 es para los casos en los que tenemos varias expresiones para
-- el mismo picto en el mismo idioma
SELECT
p
e
.
text
,
sp
.
id_child_grid
,
sp
.
id_stu
FROM
stu_picto
sp
JOIN
picto_exp
pe
ON
sp
.
id_child_grid
IS
NOT
NULL
AND
pe
.
id
=
(
SELECT
pe2
.
id
FROM
picto_exp
pe2
WHERE
pe2
.
id_pic
=
sp
.
id_pic
AND
pe2
.
lang
=
"es-es"
LIMIT
1
);
-- Pictos hijos: los asociamos a su escena correspondiente
...
...
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