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
788666e1
authored
Feb 13, 2018
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
trigger fixed
parent
e350dd89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
sails/cron/logrotate.conf
sails/roles/database/files/triggers-enrolments-integrity-constraints.sql
sails/cron/logrotate.conf
View file @
788666e1
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
access
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
error
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
debug
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
silly
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
info
.
json
{
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
access
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
error
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
debug
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
silly
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
info
.
json
{
size
4
M
size
1
k
rotate
7
rotate
7
dateext
dateext
mail
amontejo
@
ujaen
.
es
mail
amontejo
@
ujaen
.
es
...
...
sails/roles/database/files/triggers-enrolments-integrity-constraints.sql
View file @
788666e1
...
@@ -103,7 +103,7 @@ BEGIN
...
@@ -103,7 +103,7 @@ BEGIN
-- Selecciona el texto para el tablero hijo
-- Selecciona el texto para el tablero hijo
SELECT
lang
INTO
_lang
FROM
student
WHERE
id
=
_id_stu
LIMIT
1
;
SELECT
lang
INTO
_lang
FROM
student
WHERE
id
=
_id_stu
LIMIT
1
;
SELECT
`text`
INTO
_grid_name
FROM
picto_exp
WHERE
id_pic
=
_id_pic
AND
lang
=
_lang
COLLATE
utf8_general
_ci
LIMIT
1
;
SELECT
`text`
INTO
_grid_name
FROM
picto_exp
WHERE
id_pic
=
_id_pic
AND
lang
=
_lang
COLLATE
utf8_unicode
_ci
LIMIT
1
;
-- Crea el nuevo tablero hijo
-- Crea el nuevo tablero hijo
INSERT
INTO
grid
(
name
,
active
,
id_stu
)
INSERT
INTO
grid
(
name
,
active
,
id_stu
)
...
@@ -118,7 +118,7 @@ BEGIN
...
@@ -118,7 +118,7 @@ BEGIN
-- Inserta los pictogramas correspondientes en el tablero recien creado
-- Inserta los pictogramas correspondientes en el tablero recien creado
SELECT
lang
INTO
_lang
FROM
student
WHERE
id
=
_id_stu
LIMIT
1
;
SELECT
lang
INTO
_lang
FROM
student
WHERE
id
=
_id_stu
LIMIT
1
;
SELECT
`text`
INTO
_grid_name
FROM
picto_exp
WHERE
id_pic
=
_id_cat_pic
AND
lang
=
_lang
COLLATE
utf8_general
_ci
LIMIT
1
;
SELECT
`text`
INTO
_grid_name
FROM
picto_exp
WHERE
id_pic
=
_id_cat_pic
AND
lang
=
_lang
COLLATE
utf8_unicode
_ci
LIMIT
1
;
SELECT
id
INTO
_id_grid
FROM
grid
WHERE
name
=
_grid_name
COLLATE
utf8_general_ci
AND
id_stu
=
_id_stu
LIMIT
1
;
SELECT
id
INTO
_id_grid
FROM
grid
WHERE
name
=
_grid_name
COLLATE
utf8_general_ci
AND
id_stu
=
_id_stu
LIMIT
1
;
INSERT
INTO
stu_picto
(
id_stu
,
id_pic
,
attributes
,
id_grid
)
INSERT
INTO
stu_picto
(
id_stu
,
id_pic
,
attributes
,
id_grid
)
...
...
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