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
550f8c66
authored
May 25, 2017
by
Jose Antonio
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Issue
#250
, closed
Reload triggers-session-constraints.sql on DEV
parent
c38782c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
sails/roles/database/files/triggers-sessions-integrity-constraints.sql
sails/roles/database/files/triggers-sessions-integrity-constraints.sql
View file @
550f8c66
...
@@ -264,9 +264,10 @@ thisTrigger: BEGIN
...
@@ -264,9 +264,10 @@ thisTrigger: BEGIN
-- Show and resumesession actions creates new tries
-- Show and resumesession actions creates new tries
CASE
NEW
.
type
CASE
NEW
.
type
WHEN
'Show'
THEN
WHEN
'Show'
THEN
IF
(
idopentry
IS
NOT
NULL
)
THEN
INSERT
INTO
try
(
`id_ws`
)
INSERT
INTO
try
(
`id_ws`
)
VALUES
(
idws
);
VALUES
(
idws
);
END
IF
;
WHEN
'pausesession'
THEN
WHEN
'pausesession'
THEN
...
@@ -276,7 +277,12 @@ thisTrigger: BEGIN
...
@@ -276,7 +277,12 @@ thisTrigger: BEGIN
result
=
'DISCARDED'
result
=
'DISCARDED'
WHERE
WHERE
id
=
idopentry
;
id
=
idopentry
;
END
IF
;
UPDATE
stu_opentry
SET
id_opentry
=
NULL
WHERE
id_ws
=
idws
;
END
IF
;
WHEN
'resumesession'
THEN
WHEN
'resumesession'
THEN
...
...
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