Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-sla-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-sla-management
Commits
3fa646a4
Commit
3fa646a4
authored
Mar 06, 2019
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed creation script - sequence was already there
parent
8062b724
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
intranet-sla-management-create.sql
sql/postgresql/intranet-sla-management-create.sql
+24
-0
No files found.
sql/postgresql/intranet-sla-management-create.sql
View file @
3fa646a4
...
@@ -97,6 +97,25 @@ BEGIN
...
@@ -97,6 +97,25 @@ BEGIN
alter
table
im_projects
alter
table
im_projects
add
sla_ticket_priority_map
text
;
add
sla_ticket_priority_map
text
;
return
0
;
end
;
$
body
$
language
'plpgsql'
;
select
inline_0
();
drop
function
inline_0
();
-- Add a field to im_projects to store ticket priority map
create
or
replace
function
inline_0
()
returns
integer
as
$
body
$
DECLARE
v_count
integer
;
v_attribute_id
integer
;
BEGIN
select
count
(
*
)
into
v_count
from
pg_class
where
lower
(
relname
)
=
'im_ticket_priority_map_seq'
;
IF
v_count
>
0
THEN
return
1
;
END
IF
;
-- Create a sequence for the map tuples
-- Create a sequence for the map tuples
create
sequence
im_ticket_priority_map_seq
;
create
sequence
im_ticket_priority_map_seq
;
...
@@ -108,6 +127,11 @@ drop function inline_0();
...
@@ -108,6 +127,11 @@ drop function inline_0();
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- SLA Parameter Object
-- SLA Parameter Object
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
...
...
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