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

-- worked on RG-212, added install, un-install, disable, enable script for...

-- worked on RG-212, added install, un-install, disable, enable script for activity type grant status change
parent 9f5383e1
No related branches found
No related tags found
No related merge requests found
......@@ -40,3 +40,8 @@ UPDATE civicrm_option_value SET is_active = 0 WHERE name = 'NEI Grant' AND optio
UPDATE civicrm_financial_account SET is_active = 0 WHERE name = 'NEI Grant';
UPDATE civicrm_financial_type SET is_active = 0 WHERE name = 'NEI Grant';
-- RG-212
UPDATE civicrm_option_group cog INNER JOIN civicrm_option_value cov ON cov.option_group_id = cog.id
SET cov.is_active = 0
WHERE cog.name = 'activity_type' AND cov.name = 'grant_status_change';
......@@ -41,3 +41,7 @@ UPDATE civicrm_option_value SET is_active = 1 WHERE name = 'NEI Grant' AND optio
UPDATE civicrm_financial_account SET is_active = 1 WHERE name = 'NEI Grant';
UPDATE civicrm_financial_type SET is_active = 1 WHERE name = 'NEI Grant';
-- RG-212
UPDATE civicrm_option_group cog INNER JOIN civicrm_option_value cov ON cov.option_group_id = cog.id
SET cov.is_active = 1
WHERE cog.name = 'activity_type' AND cov.name = 'grant_status_change';
\ No newline at end of file
......@@ -345,3 +345,10 @@ 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);
-- RG-212
SELECT @activityType := cog.id, @value := max(cast(value as unsigned)) + 1 FROM civicrm_option_group cog INNER JOIN civicrm_option_value cov ON cov.option_group_id = cog.id WHERE cog.name = 'activity_type';
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 (@activityType, 'Grant Status Change', @value, 'grant_status_change', NULL, 0, 0, @value, 'Grant status change', 0, 1, 1, 5, NULL);
......@@ -134,3 +134,6 @@ DELETE FROM civicrm_financial_type WHERE name = 'NEI Grant';
ALTER table civicrm_grant DROP column grant_incomplete_reason_id;
DELETE FROM civicrm_extension WHERE full_name = 'biz.jmaconsulting.grantprograms';
-- RG-212
DELETE cov FROM civicrm_option_group cog INNER JOIN civicrm_option_value cov ON cov.option_group_id = cog.id WHERE cog.name = 'activity_type' AND cov.name LIKE 'grant_status_change';
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