Merge pull request #23052 from konadave/r25088
[civicrm-core.git] / xml / schema / Core / OptionGroup.xml
index 013e76dde9886221f95b92e27156a6c66ec5776e..36c64076429b1381a1f91a3ca5e116f0bd489bc1 100644 (file)
@@ -12,6 +12,9 @@
     <type>int unsigned</type>
     <required>true</required>
     <comment>Option Group ID</comment>
+    <html>
+      <type>Number</type>
+    </html>
     <add>1.5</add>
   </field>
   <primaryKey>
   </field>
   <field>
     <name>data_type</name>
-    <title>Data Type for this option group</title>
+    <title>Data Type</title>
     <type>varchar</type>
     <length>128</length>
-    <comment>Option group description.</comment>
+    <comment>Type of data stored by this option group.</comment>
     <pseudoconstant>
       <callback>CRM_Utils_Type::dataTypes</callback>
     </pseudoconstant>
@@ -61,6 +64,7 @@
     <title>Option Group Is Reserved?</title>
     <type>boolean</type>
     <default>1</default>
+    <required>true</required>
     <comment>Is this a predefined system option group (i.e. it can not be deleted)?</comment>
     <add>1.5</add>
   </field>
     <name>is_active</name>
     <title>Option Group Is Active?</title>
     <type>boolean</type>
+    <default>1</default>
+    <required>true</required>
     <comment>Is this option group active?</comment>
     <add>1.5</add>
   </field>
   <field>
     <name>is_locked</name>
     <title>Option Group Is Locked</title>
+    <default>0</default>
+    <required>true</required>
     <type>boolean</type>
     <comment>A lock to remove the ability to add new options via the UI.</comment>
     <add>4.5</add>
   </field>
+  <field>
+    <name>option_value_fields</name>
+    <title>Option Value Fields</title>
+    <type>varchar</type>
+    <length>128</length>
+    <default>"name,label,description"</default>
+    <comment>Which optional columns from the option_value table are in use by this group.</comment>
+    <pseudoconstant>
+      <callback>CRM_Core_SelectValues::optionValueFields</callback>
+    </pseudoconstant>
+    <serialize>COMMA</serialize>
+    <add>5.49</add>
+  </field>
   <index>
     <name>UI_name</name>
     <fieldName>name</fieldName>