Merge pull request #17187 from alexymik/recur_contribution_source
[civicrm-core.git] / xml / schema / Core / Navigation.xml
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>icon</name>
65 <title>Icon</title>
66 <type>varchar</type>
67 <length>255</length>
68 <comment>CSS class name for an icon</comment>
69 <default>NULL</default>
70 <required>false</required>
71 <add>4.7</add>
72 </field>
73 <field>
74 <name>permission</name>
75 <title>Required Permission</title>
76 <type>varchar</type>
77 <length>255</length>
78 <comment>Permission for menu item</comment>
79 <add>3.0</add>
80 </field>
81 <field>
82 <name>permission_operator</name>
83 <title>Permission Operator</title>
84 <type>varchar</type>
85 <length>3</length>
86 <comment>Permission Operator</comment>
87 <add>3.0</add>
88 </field>
89 <field>
90 <name>parent_id</name>
91 <title>Navigation parent ID</title>
92 <type>int unsigned</type>
93 <comment>Parent navigation item, used for grouping</comment>
94 <pseudoconstant>
95 <table>civicrm_navigation</table>
96 <keyColumn>id</keyColumn>
97 <nameColumn>name</nameColumn>
98 <labelColumn>label</labelColumn>
99 </pseudoconstant>
100 <add>3.0</add>
101 </field>
102 <foreignKey>
103 <name>parent_id</name>
104 <table>civicrm_navigation</table>
105 <key>id</key>
106 <onDelete>CASCADE</onDelete>
107 <add>3.0</add>
108 </foreignKey>
109 <field>
110 <name>is_active</name>
111 <title>Is Active</title>
112 <type>boolean</type>
113 <comment>Is this navigation item active?</comment>
114 <add>3.0</add>
115 </field>
116 <field>
117 <name>has_separator</name>
118 <title>Use separator</title>
119 <type>boolean</type>
120 <comment>If separator needs to be added after this menu item</comment>
121 <add>3.0</add>
122 </field>
123 <field>
124 <name>weight</name>
125 <title>Order</title>
126 <type>int</type>
127 <comment>Ordering of the navigation items in various blocks.</comment>
128 <add>3.0</add>
129 </field>
130 </table>