Merge pull request #3066 from relldoesphp/CRM-14466
[civicrm-core.git] / xml / schema / Campaign / CampaignGroup.xml
index b8cd70bd45f466045943a163b06ff6da8f517451..a3b849a588a2b1393f4f22df3af9ae669aea8947 100644 (file)
     <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>
 
   <field>
     <name>group_type</name>
-    <type>enum</type>
-    <values>Include, Exclude</values>
+    <type>varchar</type>
+    <length>8</length>
     <default>NULL</default>
     <comment>Type of Group.</comment>
+    <pseudoconstant>
+      <callback>CRM_Core_SelectValues::getCampaignGroupTypes</callback>
+    </pseudoconstant>
+    <html>
+      <type>Select</type>
+    </html>
   </field>
 
   <field>