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
9c662978
Commit
9c662978
authored
8 years ago
by
User expired
Browse files
Options
Downloads
Patches
Plain Diff
fixed sql errors
parent
143fde46
No related branches found
Branches containing commit
No related tags found
1 merge request
!10
160705
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install/postgres_db_structure_functions.sql
+11
-18
11 additions, 18 deletions
install/postgres_db_structure_functions.sql
with
11 additions
and
18 deletions
install/postgres_db_structure_functions.sql
+
11
−
18
View file @
9c662978
-- modifying the schema to allow an external_id
ALTER
TABLE
tce_user_groups
ADD
COLUMN
external_id
varchar
(
255
);
...
...
@@ -181,9 +180,6 @@ ALTER FUNCTION get_tcexam_group_users(character varying)
-- get tcexam_user
CREATE
OR
REPLACE
FUNCTION
get_tcexam_user
(
userid
character
varying
)
RETURNS
text
LANGUAGE
plpgsql
SECURITY
DEFINER
SET
search_path
TO
tcexam
,
pg_temp
AS
$
function
$
DECLARE
...
...
@@ -209,7 +205,9 @@ WHERE u.user_name = userid
RETURN
xoutput
;
END
;
$
function
$
LANGUAGE
plpgsql
SECURITY
DEFINER
SET
search_path
TO
tcexam
,
pg_temp
;
-- insert_tcexam_group
...
...
@@ -245,9 +243,6 @@ ALTER FUNCTION insert_tcexam_group(text, character varying, character varying, c
CREATE
OR
REPLACE
FUNCTION
insert_tcexam_user
(
xmlbody
text
)
RETURNS
void
LANGUAGE
plpgsql
SECURITY
DEFINER
SET
search_path
TO
tcexam
,
pg_temp
AS
$
function
$
DECLARE
login
character
varying
;
...
...
@@ -274,6 +269,9 @@ AS $function$
END
;
$
function
$
LANGUAGE
plpgsql
SECURITY
DEFINER
SET
search_path
TO
tcexam
,
pg_temp
;
ALTER
FUNCTION
insert_tcexam_user
(
text
)
OWNER
TO
tcexam
;
...
...
@@ -356,9 +354,6 @@ ALTER FUNCTION update_tcexam_group(character varying, character varying, charact
CREATE
OR
REPLACE
FUNCTION
update_tcexam_user
(
xmlbody
text
)
RETURNS
void
LANGUAGE
plpgsql
SECURITY
DEFINER
SET
search_path
TO
tcexam
,
pg_temp
AS
$
function
$
DECLARE
login
character
varying
;
...
...
@@ -399,6 +394,10 @@ AS $function$
END
;
$
function
$
LANGUAGE
plpgsql
SECURITY
DEFINER
SET
search_path
TO
tcexam
,
pg_temp
;
ALTER
FUNCTION
update_tcexam_user
(
text
)
OWNER
TO
tcexam
;
...
...
@@ -572,10 +571,4 @@ GRANT EXECUTE ON FUNCTION update_tcexam_user(xmlbody text) TO esb;
GRANT
EXECUTE
ON
FUNCTION
get_tcexam_recent_tests
(
externalid
character
varying
)
TO
esb
;
GRANT
EXECUTE
ON
FUNCTION
set_tcexam_email_sent
(
groupid
character
varying
,
emailnumber
integer
)
TO
esb
;
GRANT
EXECUTE
ON
FUNCTION
count_tcexam_users_by_exam
(
external_group_id
character
varying
,
external_appointment_id
character
varying
)
TO
esb
;
GRANT
EXECUTE
ON
FUNCTION
get_tcexam_groupid
(
pgroupid
character
varying
,
pappointmentid
character
varying
)
TO
esb
;
GRANT
EXECUTE
ON
FUNCTION
get_tcexam_groupid
(
pgroupid
character
varying
,
pappointmentid
character
varying
)
TO
esb
;
\ No newline at end of file
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