Pseudoconstants are intended for option lists small enough to be loaded into memory,
whereas FKs are for options of any size.
It is possible to have thousands of campaigns, and some sites do,
which slows or breaks some UIs (first noticed in the Search Kit bulk update action).
All these fields have both an FK and a pseudoconstant declared, which is redundant;
both are not needed, and the pseudoconstant was unnecessarily hogging memory for sites with many campaigns.
*
* Generated from xml/schema/CRM/Activity/Activity.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:20d5b91c29b14f4df12aabfc07c58e94)
+ * (GenCodeChecksum:e40c263d7d030dc0c6d6e714317a3970)
*/
/**
'html' => [
'type' => 'Select',
],
- 'pseudoconstant' => [
- 'table' => 'civicrm_campaign',
- 'keyColumn' => 'id',
- 'labelColumn' => 'title',
- ],
'add' => '3.4',
],
'activity_engagement_level' => [
*
* Generated from xml/schema/CRM/Campaign/CampaignGroup.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:88f73bc59595d75977b66fe76466a22c)
+ * (GenCodeChecksum:a10a2acb5e6198e023bf1b97883b16cf)
*/
/**
'bao' => 'CRM_Campaign_DAO_CampaignGroup',
'localizable' => 0,
'FKClassName' => 'CRM_Campaign_DAO_Campaign',
- 'pseudoconstant' => [
- 'table' => 'civicrm_campaign',
- 'keyColumn' => 'id',
- 'labelColumn' => 'title',
- ],
'add' => '3.3',
],
'group_type' => [
*
* Generated from xml/schema/CRM/Campaign/Survey.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:03edb270b63048ec3aa9f36667548961)
+ * (GenCodeChecksum:8a55f06388a594dd78f397320b1b55a6)
*/
/**
'bao' => 'CRM_Campaign_BAO_Survey',
'localizable' => 0,
'FKClassName' => 'CRM_Campaign_DAO_Campaign',
- 'pseudoconstant' => [
- 'table' => 'civicrm_campaign',
- 'keyColumn' => 'id',
- 'labelColumn' => 'title',
- ],
'add' => '3.3',
],
'activity_type_id' => [
*
* Generated from xml/schema/CRM/Contribute/Contribution.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:11b9f8bc6198e4338be2406de58b6723)
+ * (GenCodeChecksum:66fa0e83ae7eb57a3c2e515c8fdc371c)
*/
/**
'html' => [
'type' => 'Select',
],
- 'pseudoconstant' => [
- 'table' => 'civicrm_campaign',
- 'keyColumn' => 'id',
- 'labelColumn' => 'title',
- ],
'add' => '3.4',
],
'creditnote_id' => [
*
* Generated from xml/schema/CRM/Contribute/ContributionPage.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:958ef76562a951e9f80b8e6f16afd6ee)
+ * (GenCodeChecksum:a8f42298c3fbe5b8c1986c81d77a8a0f)
*/
/**
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'localizable' => 0,
'FKClassName' => 'CRM_Campaign_DAO_Campaign',
- 'pseudoconstant' => [
- 'table' => 'civicrm_campaign',
- 'keyColumn' => 'id',
- 'labelColumn' => 'title',
- ],
'add' => '3.4',
],
'is_share' => [
*
* Generated from xml/schema/CRM/Contribute/ContributionRecur.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5e2fa2241a3f8c014352d897be31fad1)
+ * (GenCodeChecksum:69bfc032333f519d938978caf8d9d7ec)
*/
/**
'html' => [
'type' => 'Select',
],
- 'pseudoconstant' => [
- 'table' => 'civicrm_campaign',
- 'keyColumn' => 'id',
- 'labelColumn' => 'title',
- ],
'add' => '4.1',
],
'is_email_receipt' => [
*
* Generated from xml/schema/CRM/Event/Event.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8747fe6387fcdec07b14c8a72e35868b)
+ * (GenCodeChecksum:c4d88cf24f327dc7f2f303f316e200c7)
*/
/**
'html' => [
'type' => 'EntityRef',
],
- 'pseudoconstant' => [
- 'table' => 'civicrm_campaign',
- 'keyColumn' => 'id',
- 'labelColumn' => 'title',
- ],
'add' => '3.4',
],
'is_share' => [
*
* Generated from xml/schema/CRM/Event/Participant.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a746f8f8a28c6f945abbba148794d2c2)
+ * (GenCodeChecksum:f9815c8a89ad1055602bed39a0f266e8)
*/
/**
'bao' => 'CRM_Event_BAO_Participant',
'localizable' => 0,
'FKClassName' => 'CRM_Campaign_DAO_Campaign',
- 'pseudoconstant' => [
- 'table' => 'civicrm_campaign',
- 'keyColumn' => 'id',
- 'labelColumn' => 'title',
- ],
'add' => '3.4',
],
'discount_amount' => [
*
* Generated from xml/schema/CRM/Mailing/Mailing.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e2de6d8875a7f838b190810bcec4e27e)
+ * (GenCodeChecksum:9e22faebb14e886d7a5b4382249a0da6)
*/
/**
'html' => [
'type' => 'Select',
],
- 'pseudoconstant' => [
- 'table' => 'civicrm_campaign',
- 'keyColumn' => 'id',
- 'labelColumn' => 'title',
- ],
'add' => '3.4',
],
'dedupe_email' => [
*
* Generated from xml/schema/CRM/Member/Membership.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:497f88dd714287acb6b42017dc0b7cd3)
+ * (GenCodeChecksum:614dc19edb8e63eb4a8a4c3523454511)
*/
/**
'html' => [
'type' => 'Select',
],
- 'pseudoconstant' => [
- 'table' => 'civicrm_campaign',
- 'keyColumn' => 'id',
- 'labelColumn' => 'title',
- ],
'add' => '3.4',
],
];
*
* Generated from xml/schema/CRM/Pledge/Pledge.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8a17ba664d9a2c65860be67652def7f5)
+ * (GenCodeChecksum:b7f0823c6d9fed7969a2734874ed20eb)
*/
/**
'html' => [
'type' => 'Select',
],
- 'pseudoconstant' => [
- 'table' => 'civicrm_campaign',
- 'keyColumn' => 'id',
- 'labelColumn' => 'title',
- ],
'add' => '3.4',
],
];
<title>Campaign</title>
<import>true</import>
<comment>The campaign for which this activity has been triggered.</comment>
- <pseudoconstant>
- <table>civicrm_campaign</table>
- <keyColumn>id</keyColumn>
- <labelColumn>title</labelColumn>
- </pseudoconstant>
<add>3.4</add>
<html>
<type>Select</type>
<type>int unsigned</type>
<required>true</required>
<comment>Foreign key to the activity Campaign.</comment>
- <pseudoconstant>
- <table>civicrm_campaign</table>
- <keyColumn>id</keyColumn>
- <labelColumn>title</labelColumn>
- </pseudoconstant>
<add>3.3</add>
</field>
<foreignKey>
<type>int unsigned</type>
<default>NULL</default>
<comment>Foreign key to the Campaign.</comment>
- <pseudoconstant>
- <table>civicrm_campaign</table>
- <keyColumn>id</keyColumn>
- <labelColumn>title</labelColumn>
- </pseudoconstant>
<add>3.3</add>
</field>
<foreignKey>
<title>Campaign</title>
<import>true</import>
<comment>The campaign for which this contribution has been triggered.</comment>
- <pseudoconstant>
- <table>civicrm_campaign</table>
- <keyColumn>id</keyColumn>
- <labelColumn>title</labelColumn>
- </pseudoconstant>
<add>3.4</add>
<html>
<type>Select</type>
<title>Contribution Page Campaign ID</title>
<type>int unsigned</type>
<comment>The campaign for which we are collecting contributions with this page.</comment>
- <pseudoconstant>
- <table>civicrm_campaign</table>
- <keyColumn>id</keyColumn>
- <labelColumn>title</labelColumn>
- </pseudoconstant>
<add>3.4</add>
</field>
<foreignKey>
<title>Campaign</title>
<import>true</import>
<comment>The campaign for which this contribution has been triggered.</comment>
- <pseudoconstant>
- <table>civicrm_campaign</table>
- <keyColumn>id</keyColumn>
- <labelColumn>title</labelColumn>
- </pseudoconstant>
<add>4.1</add>
<html>
<type>Select</type>
<type>int unsigned</type>
<title>Campaign</title>
<comment>The campaign for which this event has been created.</comment>
- <pseudoconstant>
- <table>civicrm_campaign</table>
- <keyColumn>id</keyColumn>
- <labelColumn>title</labelColumn>
- </pseudoconstant>
<add>3.4</add>
<html>
<type>EntityRef</type>
<title>Campaign</title>
<import>true</import>
<comment>The campaign for which this participant has been registered.</comment>
- <pseudoconstant>
- <table>civicrm_campaign</table>
- <keyColumn>id</keyColumn>
- <labelColumn>title</labelColumn>
- </pseudoconstant>
<add>3.4</add>
</field>
<foreignKey>
<type>int unsigned</type>
<title>Mailing Campaign</title>
<comment>The campaign for which this mailing has been initiated.</comment>
- <pseudoconstant>
- <table>civicrm_campaign</table>
- <keyColumn>id</keyColumn>
- <labelColumn>title</labelColumn>
- </pseudoconstant>
<add>3.4</add>
<html>
<type>Select</type>
<title>Campaign</title>
<import>true</import>
<comment>The campaign for which this membership is attached.</comment>
- <pseudoconstant>
- <table>civicrm_campaign</table>
- <keyColumn>id</keyColumn>
- <labelColumn>title</labelColumn>
- </pseudoconstant>
<add>3.4</add>
<html>
<type>Select</type>
<title>Campaign</title>
<import>true</import>
<comment>The campaign for which this pledge has been initiated.</comment>
- <pseudoconstant>
- <table>civicrm_campaign</table>
- <keyColumn>id</keyColumn>
- <labelColumn>title</labelColumn>
- </pseudoconstant>
<add>3.4</add>
<html>
<type>Select</type>