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
c0cbba75
authored
Dec 01, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
procedure to create new users with core fixed
parent
b196c2f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
sails/roles/database/files/triggers-enrolments-integrity-constraints.sql
sails/roles/database/files/triggers-enrolments-integrity-constraints.sql
View file @
c0cbba75
...
@@ -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
LIMIT
1
;
SELECT
`text`
INTO
_grid_name
FROM
picto_exp
WHERE
id_pic
=
_id_pic
AND
lang
=
_lang
COLLATE
utf8_general_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,8 +118,8 @@ BEGIN
...
@@ -118,8 +118,8 @@ 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
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
id
INTO
_id_grid
FROM
grid
WHERE
name
=
_grid_name
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
)
VALUES
(
_id_stu
,
_id_pic
,
_attributes
,
_id_grid
);
VALUES
(
_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