| 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
| 2 | |
| 3 | <table> |
| 4 | <base>CRM/Core</base> |
| 5 | <class>OptionGroup</class> |
| 6 | <name>civicrm_option_group</name> |
| 7 | <add>1.5</add> |
| 8 | <log>true</log> |
| 9 | <field> |
| 10 | <name>id</name> |
| 11 | <title>Option Group ID</title> |
| 12 | <type>int unsigned</type> |
| 13 | <required>true</required> |
| 14 | <comment>Option Group ID</comment> |
| 15 | <add>1.5</add> |
| 16 | </field> |
| 17 | <primaryKey> |
| 18 | <name>id</name> |
| 19 | <autoincrement>true</autoincrement> |
| 20 | </primaryKey> |
| 21 | <field> |
| 22 | <name>name</name> |
| 23 | <title>Option Group Name</title> |
| 24 | <type>varchar</type> |
| 25 | <length>64</length> |
| 26 | <required>true</required> |
| 27 | <comment>Option group name. Used as selection key by class properties which lookup options in civicrm_option_value.</comment> |
| 28 | <add>1.5</add> |
| 29 | </field> |
| 30 | <field> |
| 31 | <name>title</name> |
| 32 | <title>Option Group title</title> |
| 33 | <type>varchar</type> |
| 34 | <length>255</length> |
| 35 | <localizable>true</localizable> |
| 36 | <comment>Option Group title.</comment> |
| 37 | <add>1.5</add> |
| 38 | </field> |
| 39 | <field> |
| 40 | <name>description</name> |
| 41 | <title>Option Group Description</title> |
| 42 | <type>varchar</type> |
| 43 | <length>255</length> |
| 44 | <localizable>true</localizable> |
| 45 | <comment>Option group description.</comment> |
| 46 | <add>1.5</add> |
| 47 | </field> |
| 48 | <field> |
| 49 | <name>is_reserved</name> |
| 50 | <title>Option Group Is Reserved?</title> |
| 51 | <type>boolean</type> |
| 52 | <default>1</default> |
| 53 | <comment>Is this a predefined system option group (i.e. it can not be deleted)?</comment> |
| 54 | <add>1.5</add> |
| 55 | </field> |
| 56 | <field> |
| 57 | <name>is_active</name> |
| 58 | <title>Option Group Is Active?</title> |
| 59 | <type>boolean</type> |
| 60 | <comment>Is this option group active?</comment> |
| 61 | <add>1.5</add> |
| 62 | </field> |
| 63 | <field> |
| 64 | <name>is_locked</name> |
| 65 | <title>Option Group Is Locked</title> |
| 66 | <type>boolean</type> |
| 67 | <comment>A lock to remove the ability to add new options via the UI.</comment> |
| 68 | <add>4.5</add> |
| 69 | </field> |
| 70 | <index> |
| 71 | <name>UI_name</name> |
| 72 | <fieldName>name</fieldName> |
| 73 | <unique>true</unique> |
| 74 | <add>2.1</add> |
| 75 | </index> |
| 76 | </table> |