Merge pull request #3066 from relldoesphp/CRM-14466
[civicrm-core.git] / xml / schema / Campaign / CampaignGroup.xml
index 04de043b7b63a71cf89b85ddc1ae9f51a9c782cb..a3b849a588a2b1393f4f22df3af9ae669aea8947 100644 (file)
@@ -5,7 +5,7 @@
   <name>civicrm_campaign_group</name>
   <comment>Campaign Group Details.</comment>
   <add>3.3</add>
-  
+
   <field>
     <name>id</name>
     <type>int unsigned</type>
     <name>id</name>
     <autoincrement>true</autoincrement>
   </primaryKey>
-  
+
   <field>
     <name>campaign_id</name>
     <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> 
+  <field>
     <name>entity_table</name>
     <type>varchar</type>
-    <length>64</length> 
+    <length>64</length>
     <default>NULL</default>
     <comment>Name of table where item being referenced is stored.</comment>
     <add>3.3</add>