Skip to content
Snippets Groups Projects
Commit 48b18e65 authored by Pradeep Nayak's avatar Pradeep Nayak
Browse files

-- added install and uninstall code for RG-149

parent 1e0f9b7f
No related branches found
No related tags found
No related merge requests found
......@@ -329,3 +329,13 @@ VALUES('civicrm_financial_type', @financialTypeID, @option_value_rel_id_exp, IFN
-- Account Payable
('civicrm_financial_type', @financialTypeID, @weight, @accountPayable);
-- RG-149
INSERT INTO `civicrm_option_group` (`name`, `title`, `description`, `is_reserved`, `is_active`) VALUES
('grant_info_too_late', 'Grant Info Too Late', 'Grant becomes ineligible due to information being provided too late if the information is still being waited for when the course end date is more than this number of days in the past.', 1, 1);
SET @ogId := LAST_INSERT_ID();
INSERT INTO
`civicrm_option_value` (`option_group_id`, `label`, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `description`, `is_optgroup`, `is_reserved`, `is_active`, `component_id`, `visibility_id`)
VALUES
(@ogId, 'Number of Days after Course till Ineligible', 120, 'number_of_days_after_course_till_ineligible', NULL, 0, 0, 1, 'Number of Days after Course till Ineligible', 0, 1, 1, 2, NULL);
\ No newline at end of file
......@@ -37,4 +37,9 @@ DELETE FROM civicrm_entity_financial_account WHERE entity_table = 'civicrm_finan
DELETE FROM civicrm_financial_account WHERE name = 'NEI Grant';
DELETE FROM civicrm_financial_type WHERE name = 'NEI Grant';
\ No newline at end of file
DELETE FROM civicrm_financial_type WHERE name = 'NEI Grant';
-- RG-149
DELETE cg, cv FROM civicrm_option_group cg
INNER JOIN civicrm_option_value cv ON cg.id = cv.option_group_id
WHERE cg.name = 'grant_info_too_late';
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment