| 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
| 2 | |
| 3 | <table> |
| 4 | <base>CRM/Core</base> |
| 5 | <class>Navigation</class> |
| 6 | <name>civicrm_navigation</name> |
| 7 | <comment>Table to store navigation.</comment> |
| 8 | <add>3.0</add> |
| 9 | <field> |
| 10 | <name>id</name> |
| 11 | <title>Navigation ID</title> |
| 12 | <type>int unsigned</type> |
| 13 | <required>true</required> |
| 14 | <add>3.0</add> |
| 15 | </field> |
| 16 | <primaryKey> |
| 17 | <name>id</name> |
| 18 | <autoincrement>true</autoincrement> |
| 19 | </primaryKey> |
| 20 | <field> |
| 21 | <name>domain_id</name> |
| 22 | <title>Navigation Domain</title> |
| 23 | <type>int unsigned</type> |
| 24 | <required>true</required> |
| 25 | <pseudoconstant> |
| 26 | <table>civicrm_domain</table> |
| 27 | <keyColumn>id</keyColumn> |
| 28 | <labelColumn>name</labelColumn> |
| 29 | </pseudoconstant> |
| 30 | <comment>Which Domain is this navigation item for</comment> |
| 31 | <add>3.0</add> |
| 32 | </field> |
| 33 | <foreignKey> |
| 34 | <name>domain_id</name> |
| 35 | <table>civicrm_domain</table> |
| 36 | <key>id</key> |
| 37 | <add>3.0</add> |
| 38 | </foreignKey> |
| 39 | <field> |
| 40 | <name>label</name> |
| 41 | <title>Navigation Item Label</title> |
| 42 | <type>varchar</type> |
| 43 | <length>255</length> |
| 44 | <comment>Navigation Title</comment> |
| 45 | <add>3.0</add> |
| 46 | </field> |
| 47 | <field> |
| 48 | <name>name</name> |
| 49 | <title>Navigation Item Machine Name</title> |
| 50 | <type>varchar</type> |
| 51 | <length>255</length> |
| 52 | <comment>Internal Name</comment> |
| 53 | <add>3.0</add> |
| 54 | </field> |
| 55 | <field> |
| 56 | <name>url</name> |
| 57 | <title>Url</title> |
| 58 | <type>varchar</type> |
| 59 | <length>255</length> |
| 60 | <comment>url in case of custom navigation link</comment> |
| 61 | <add>3.0</add> |
| 62 | </field> |
| 63 | <field> |
| 64 | <name>permission</name> |
| 65 | <title>Required Permission</title> |
| 66 | <type>varchar</type> |
| 67 | <length>255</length> |
| 68 | <comment>Permission for menu item</comment> |
| 69 | <add>3.0</add> |
| 70 | </field> |
| 71 | <field> |
| 72 | <name>permission_operator</name> |
| 73 | <title>Permission Operator</title> |
| 74 | <type>varchar</type> |
| 75 | <length>3</length> |
| 76 | <comment>Permission Operator</comment> |
| 77 | <add>3.0</add> |
| 78 | </field> |
| 79 | <field> |
| 80 | <name>parent_id</name> |
| 81 | <title>Navigation parent ID</title> |
| 82 | <type>int unsigned</type> |
| 83 | <comment>Parent navigation item, used for grouping</comment> |
| 84 | <pseudoconstant> |
| 85 | <table>civicrm_navigation</table> |
| 86 | <keyColumn>name</keyColumn> |
| 87 | <labelColumn>label</labelColumn> |
| 88 | </pseudoconstant> |
| 89 | <add>3.0</add> |
| 90 | </field> |
| 91 | <foreignKey> |
| 92 | <name>parent_id</name> |
| 93 | <table>civicrm_navigation</table> |
| 94 | <key>id</key> |
| 95 | <onDelete>CASCADE</onDelete> |
| 96 | <add>3.0</add> |
| 97 | </foreignKey> |
| 98 | <field> |
| 99 | <name>is_active</name> |
| 100 | <title>Is Active</title> |
| 101 | <type>boolean</type> |
| 102 | <comment>Is this navigation item active?</comment> |
| 103 | <add>3.0</add> |
| 104 | </field> |
| 105 | <field> |
| 106 | <name>has_separator</name> |
| 107 | <title>Use separator</title> |
| 108 | <type>boolean</type> |
| 109 | <comment>If separator needs to be added after this menu item</comment> |
| 110 | <add>3.0</add> |
| 111 | </field> |
| 112 | <field> |
| 113 | <name>weight</name> |
| 114 | <title>Order</title> |
| 115 | <type>int</type> |
| 116 | <comment>Ordering of the navigation items in various blocks.</comment> |
| 117 | <add>3.0</add> |
| 118 | </field> |
| 119 | </table> |