Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tcexam_uibk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
User expired
tcexam_uibk
Commits
6b2e6433
Commit
6b2e6433
authored
8 years ago
by
User expired
Browse files
Options
Downloads
Plain Diff
Merge branch 'uibk' of git.uibk.ac.at:c102215/tcexam_uibk into uibk
parents
66588675
beb84cd2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install/postgres_db_structure_functions.sql
+8
-8
8 additions, 8 deletions
install/postgres_db_structure_functions.sql
with
8 additions
and
8 deletions
install/postgres_db_structure_functions.sql
+
8
−
8
View file @
6b2e6433
...
...
@@ -82,11 +82,6 @@ ALTER FUNCTION set_admin_group(bigint, bigint)
OWNER
TO
tcexam
;
-- functions for tcexam esb integration
-- assign_tcexam_user_to_group
...
...
@@ -284,6 +279,7 @@ $BODY$
DECLARE
externalid
character
varying
;
appointmentid
character
varying
;
groupname
character
varying
;
grouptype
character
varying
;
groupvo
xml
;
...
...
@@ -292,12 +288,16 @@ BEGIN
externalid
=
CONCAT
(
pgroupid
,
':'
,
pappointmentid
);
IF
pappointmentid
=
'owner'
THEN
grouptype
=
'B'
;
pappointmentid
=
'Betreuergruppe'
;
END
IF
;
groupname
=
CONCAT
(
pgroupname
,
' - '
,
pappointmentid
);
IF
NOT
EXISTS
(
SELECT
group_id
FROM
tce_user_groups
WHERE
external_id
=
externalid
)
THEN
INSERT
INTO
tce_user_groups
(
group_name
,
external_id
,
group_type
)
VALUES
(
p
groupname
,
externalid
,
grouptype
);
INSERT
INTO
tce_user_groups
(
group_name
,
external_id
,
group_type
)
VALUES
(
groupname
,
externalid
,
grouptype
);
END
IF
;
END
;
$
BODY
$
END
;
$
BODY
$
LANGUAGE
plpgsql
VOLATILE
SECURITY
DEFINER
-- Set a secure search_path: trusted schema(s), then 'pg_temp'.
...
...
@@ -404,7 +404,7 @@ BEGIN
theKey
=
pgroupid
||
':'
||
pappointmentid
;
IF
(
SELECT
group_name
FROM
tce_user_groups
WHERE
external_id
=
theKey
)
!=
pgroupname
THEN
UPDATE
tce_user_groups
set
group_name
=
pgroupname
WHERE
external_id
=
theKey
;
UPDATE
tce_user_groups
set
group_name
=
CONCAT
(
pgroupname
,
' - '
,
pappointmentid
)
WHERE
external_id
=
theKey
;
END
IF
;
END
;
$
BODY
$
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment