Commit 54e50a6e authored by Frank Bergmann's avatar Frank Bergmann

- Added field for email regexp selector to ticket containers

parent 9ae1c84a
......@@ -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
--
......
-- 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 ();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment