From 3e3eacd0058db230fbffd0a131df6c99bddca9cf Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 20 Dec 2013 14:39:41 -0800 Subject: [PATCH] CRM-12464 - Add campaign pseudoconstants --- xml/schema/Activity/Activity.xml | 6 ++++++ xml/schema/Campaign/CampaignGroup.xml | 6 ++++++ xml/schema/Campaign/Survey.xml | 6 ++++++ xml/schema/Contribute/Contribution.xml | 6 ++++++ xml/schema/Contribute/ContributionPage.xml | 6 ++++++ xml/schema/Contribute/ContributionRecur.xml | 6 ++++++ xml/schema/Event/Event.xml | 6 ++++++ xml/schema/Event/Participant.xml | 6 ++++++ xml/schema/Mailing/Mailing.xml | 6 ++++++ xml/schema/Member/Membership.xml | 6 ++++++ xml/schema/Pledge/Pledge.xml | 6 ++++++ 11 files changed, 66 insertions(+) diff --git a/xml/schema/Activity/Activity.xml b/xml/schema/Activity/Activity.xml index 98175f3783..6757e76097 100644 --- a/xml/schema/Activity/Activity.xml +++ b/xml/schema/Activity/Activity.xml @@ -372,6 +372,12 @@ Campaign ID true The campaign for which this activity has been triggered. + + civicrm_campaign
+ id + title + (end_date IS NULL OR end_date > NOW()) +
3.4 diff --git a/xml/schema/Campaign/CampaignGroup.xml b/xml/schema/Campaign/CampaignGroup.xml index b8cd70bd45..29e97c76ec 100644 --- a/xml/schema/Campaign/CampaignGroup.xml +++ b/xml/schema/Campaign/CampaignGroup.xml @@ -23,6 +23,12 @@ int unsigned true Foreign key to the activity Campaign. + + civicrm_campaign
+ id + title + (end_date IS NULL OR end_date > NOW()) +
3.3 diff --git a/xml/schema/Campaign/Survey.xml b/xml/schema/Campaign/Survey.xml index 893cd2702f..0f8d394f9c 100644 --- a/xml/schema/Campaign/Survey.xml +++ b/xml/schema/Campaign/Survey.xml @@ -34,6 +34,12 @@ int unsigned NULL Foreign key to the Campaign. + + civicrm_campaign
+ id + title + (end_date IS NULL OR end_date > NOW()) +
3.3 diff --git a/xml/schema/Contribute/Contribution.xml b/xml/schema/Contribute/Contribution.xml index 0c868ae4e8..e85f2fe88d 100644 --- a/xml/schema/Contribute/Contribution.xml +++ b/xml/schema/Contribute/Contribution.xml @@ -400,6 +400,12 @@ Campaign ID true The campaign for which this contribution has been triggered. + + civicrm_campaign
+ id + title + (end_date IS NULL OR end_date > NOW()) +
3.4 diff --git a/xml/schema/Contribute/ContributionPage.xml b/xml/schema/Contribute/ContributionPage.xml index 10aa925d26..2198475823 100644 --- a/xml/schema/Contribute/ContributionPage.xml +++ b/xml/schema/Contribute/ContributionPage.xml @@ -411,6 +411,12 @@ Contribution Page Campaign ID int unsigned The campaign for which we are collecting contributions with this page. + + civicrm_campaign
+ id + title + (end_date IS NULL OR end_date > NOW()) +
3.4 diff --git a/xml/schema/Contribute/ContributionRecur.xml b/xml/schema/Contribute/ContributionRecur.xml index 5be85af260..61ff6c490a 100644 --- a/xml/schema/Contribute/ContributionRecur.xml +++ b/xml/schema/Contribute/ContributionRecur.xml @@ -295,6 +295,12 @@ Campaign ID true The campaign for which this contribution has been triggered. + + civicrm_campaign
+ id + title + (end_date IS NULL OR end_date > NOW()) +
4.1 diff --git a/xml/schema/Event/Event.xml b/xml/schema/Event/Event.xml index 4ed896a343..664b4a2aeb 100644 --- a/xml/schema/Event/Event.xml +++ b/xml/schema/Event/Event.xml @@ -593,6 +593,12 @@ int unsigned Campaign ID The campaign for which this event has been created. + + civicrm_campaign
+ id + title + (end_date IS NULL OR end_date > NOW()) +
3.4 diff --git a/xml/schema/Event/Participant.xml b/xml/schema/Event/Participant.xml index 728bf474f4..c49d796b83 100644 --- a/xml/schema/Event/Participant.xml +++ b/xml/schema/Event/Participant.xml @@ -226,6 +226,12 @@ Campaign ID true The campaign for which this participant has been registered. + + civicrm_campaign
+ id + title + (end_date IS NULL OR end_date > NOW()) +
3.4 diff --git a/xml/schema/Mailing/Mailing.xml b/xml/schema/Mailing/Mailing.xml index 7a7df67a68..47e90d2226 100644 --- a/xml/schema/Mailing/Mailing.xml +++ b/xml/schema/Mailing/Mailing.xml @@ -266,6 +266,12 @@ campaign_id int unsigned The campaign for which this mailing has been initiated. + + civicrm_campaign
+ id + title + (end_date IS NULL OR end_date > NOW()) +
3.4 diff --git a/xml/schema/Member/Membership.xml b/xml/schema/Member/Membership.xml index d94e6adf95..37cc73000b 100644 --- a/xml/schema/Member/Membership.xml +++ b/xml/schema/Member/Membership.xml @@ -204,6 +204,12 @@ Campaign ID true The campaign for which this membership is attached. + + civicrm_campaign
+ id + title + (end_date IS NULL OR end_date > NOW()) +
3.4 diff --git a/xml/schema/Pledge/Pledge.xml b/xml/schema/Pledge/Pledge.xml index 77f737aab2..4ca0f3e855 100644 --- a/xml/schema/Pledge/Pledge.xml +++ b/xml/schema/Pledge/Pledge.xml @@ -277,6 +277,12 @@ Campaign ID true The campaign for which this pledge has been initiated. + + civicrm_campaign
+ id + title + (end_date IS NULL OR end_date > NOW()) +
3.4 -- 2.25.1