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

-- fixed for RG-212, added missing instalation for grant payment activity type

parent d60486ed
No related branches found
No related tags found
No related merge requests found
......@@ -44,4 +44,4 @@ 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';
WHERE cog.name = 'activity_type' AND cov.name IN ('grant_status_change', 'grant_payment');
......@@ -44,4 +44,4 @@ 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
WHERE cog.name = 'activity_type' AND cov.name IN ('grant_status_change', 'grant_payment');
\ No newline at end of file
......@@ -350,5 +350,6 @@ VALUES
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);
VALUES (@activityType, 'Grant Status Change', @value, 'grant_status_change', NULL, 0, 0, @value, 'Grant status change', 0, 1, 1, 5, NULL),
(@activityType, 'Grant Payment', @value + 1, 'grant_payment', NULL, 0, 0, @value + 1, 'Grant payment', 0, 1, 1, 5, NULL);
......@@ -136,4 +136,4 @@ 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';
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 IN ('grant_status_change', 'grant_payment');
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