Commit 51002b9c authored by Jamie McClelland's avatar Jamie McClelland

ensure all profiles/custom fields are properly created.

parent 64f217f4
......@@ -80,4 +80,15 @@ class CRM_Petitionemail_Upgrader extends CRM_Petitionemail_Upgrader_Base {
return TRUE;
}
/**
* Ensure all profiles and custom fields are created.
*/
function upgrade_1003() {
// These are indempotent.
petitionemail_create_custom_fields();
petitionemail_get_profile_id('petitionemail_profile_matching_fields');
petitionemail_get_profile_id('petitionemail_profile_default_contact');
petitionemail_get_profile_id('petitionemail_profile_default_activity');
}
}
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