Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-helpdesk
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-helpdesk
Commits
54e50a6e
Commit
54e50a6e
authored
Aug 27, 2021
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added field for email regexp selector to ticket containers
parent
9ae1c84a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
intranet-helpdesk-create.sql
sql/postgresql/intranet-helpdesk-create.sql
+5
-0
upgrade-5.0.4.0.2-5.1.0.0.0.sql
sql/postgresql/upgrade/upgrade-5.0.4.0.2-5.1.0.0.0.sql
+27
-0
No files found.
sql/postgresql/intranet-helpdesk-create.sql
View file @
54e50a6e
...
...
@@ -1684,6 +1684,11 @@ SELECT im_dynfield_attribute_new ('im_ticket', 'ticket_customer_contact_id', 'Cu
SELECT
im_dynfield_attribute_new
(
'im_ticket'
,
'ticket_dept_id'
,
'Department'
,
'cost_centers'
,
'integer'
,
'f'
);
-- New ticket_container_email_selector !!!
SELECT
im_dynfield_attribute_new
(
'im_project'
,
'ticket_container_email_selector'
,
'Email Selector RegExp'
,
'textarea_small'
,
'string'
,
'f'
);
alter
table
im_projects
add
column
ticket_container_email_selector
text
;
-----------------------------------------------------------
-- Unused fields
--
...
...
sql/postgresql/upgrade/upgrade-5.0.4.0.2-5.1.0.0.0.sql
0 → 100644
View file @
54e50a6e
-- upgrade-5.0.4.0.1-5.0.4.0.2.sql
SELECT
acs_log__debug
(
'/packages/intranet-helpdesk/sql/postgresql/upgrade/upgrade-5.0.4.0.1-5.0.4.0.2.sql'
,
''
);
-- New ticket_container_email_selector
SELECT
im_dynfield_attribute_new
(
'im_project'
,
'ticket_container_email_selector'
,
'Email Selector RegExp'
,
'textarea_small'
,
'string'
,
'f'
);
-- Add a RegExp email selector to ticket containers
--
create
or
replace
function
inline_0
()
returns
integer
as
$
body
$
DECLARE
v_count
integer
;
BEGIN
-- Check if colum exists in the database
select
count
(
*
)
into
v_count
from
user_tab_columns
where
lower
(
table_name
)
=
'im_projects'
and
lower
(
column_name
)
=
'ticket_container_email_selector'
;
IF
v_count
>
0
THEN
return
1
;
alter
table
im_projects
add
column
ticket_container_email_selector
text
;
return
0
;
END
;
$
body
$
language
'plpgsql'
;
SELECT
inline_0
();
DROP
FUNCTION
inline_0
();
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