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
a8f28e51
authored
Aug 11, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
upgrade.sql updated
parent
35915b91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
sails/roles/database/files/upgrade.sql
sails/roles/database/files/upgrade.sql
View file @
a8f28e51
...
@@ -80,9 +80,9 @@ BEGIN
...
@@ -80,9 +80,9 @@ BEGIN
FETCH
off_cur
INTO
id_off_actual
,
name_sup
,
id_admin
;
FETCH
off_cur
INTO
id_off_actual
,
name_sup
,
id_admin
;
SELECT
concat
(
id_off_actual
,
' '
,
name_sup
,
' '
,
id_admin
);
--
SELECT concat(id_off_actual, ' ', name_sup, ' ', id_admin);
SELECT
*
from
stu_sup
where
id_sup
=
105
;
--
SELECT * from stu_sup where id_sup = 105;
IF
done
THEN
IF
done
THEN
LEAVE
read_loop
;
LEAVE
read_loop
;
...
@@ -91,15 +91,15 @@ BEGIN
...
@@ -91,15 +91,15 @@ BEGIN
UPDATE
supervisor
SET
name
=
name_sup
,
surname
=
''
,
role
=
'office'
UPDATE
supervisor
SET
name
=
name_sup
,
surname
=
''
,
role
=
'office'
WHERE
id
=
id_admin
;
WHERE
id
=
id_admin
;
SELECT
*
from
stu_sup
where
id_sup
=
105
;
--
SELECT * from stu_sup where id_sup = 105;
UPDATE
supervisor
SET
id_off
=
id_admin
WHERE
id_off
=
id_off_actual
;
UPDATE
supervisor
SET
id_off
=
id_admin
WHERE
id_off
=
id_off_actual
;
SELECT
*
from
stu_sup
where
id_sup
=
105
;
--
SELECT * from stu_sup where id_sup = 105;
UPDATE
student
SET
id_off
=
id_admin
WHERE
id_off
=
id_off_actual
;
UPDATE
student
SET
id_off
=
id_admin
WHERE
id_off
=
id_off_actual
;
SELECT
*
from
stu_sup
where
id_sup
=
105
;
--
SELECT * from stu_sup where id_sup = 105;
END
LOOP
;
END
LOOP
;
CLOSE
off_cur
;
CLOSE
off_cur
;
...
...
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