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
4bbed516
authored
May 24, 2017
by
Jose Antonio
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Issue
#221
, closed
parent
c6ea746f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
sails/roles/database/files/triggers-sessions-integrity-constraints.sql
sails/roles/database/files/triggers-sessions-integrity-constraints.sql
View file @
4bbed516
...
...
@@ -107,6 +107,9 @@ BEGIN
IF
(
idopentry
IS
NOT
NULL
)
THEN
DELETE
FROM
try
WHERE
id
=
idopentry
;
DELETE
FROM
stu_opentry
WHERE
id_ws
=
ws
;
END
IF
;
END
;;
...
...
@@ -303,15 +306,19 @@ thisTrigger: BEGIN
IF
((
new
.
end
IS
NOT
NULL
)
AND
(
new
.
current
IS
NOT
NULL
))
THEN
SET
new
.
current
=
NULL
;
-- DONE IN TRG_SESSION_CLOSED
-- Remove opentry record
DELETE
FROM
stu_opentry
WHERE
id_ws
=
new
.
id
;
--
DELETE FROM stu_opentry
--
WHERE id_ws = new.id;
-- Remove tries with no actions
DELETE
FROM
`try`
WHERE
end
=
NULL
AND
id_ws
=
new
.
id
;
--
DELETE FROM `try`
--
WHERE
-- end IS
NULL AND
--
id_ws = new.id;
END
IF
;
END
;;
...
...
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