Merge pull request #7825 from torrance/editable-button-fix-master
[civicrm-core.git] / xml / schema / Core / Navigation.xml
CommitLineData
6a488035
TO
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>
8f069c03 10 <name>id</name>
1c4f4ae6 11 <title>Navigation ID</title>
8f069c03
EM
12 <type>int unsigned</type>
13 <required>true</required>
14 <add>3.0</add>
6a488035
TO
15 </field>
16 <primaryKey>
8f069c03
EM
17 <name>id</name>
18 <autoincrement>true</autoincrement>
6a488035
TO
19 </primaryKey>
20 <field>
8f069c03 21 <name>domain_id</name>
1c4f4ae6 22 <title>Navigation Domain</title>
8f069c03
EM
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>
6a488035
TO
32 </field>
33 <foreignKey>
8f069c03
EM
34 <name>domain_id</name>
35 <table>civicrm_domain</table>
36 <key>id</key>
37 <add>3.0</add>
6a488035
TO
38 </foreignKey>
39 <field>
8f069c03 40 <name>label</name>
1c4f4ae6 41 <title>Navigation Item Label</title>
8f069c03
EM
42 <type>varchar</type>
43 <length>255</length>
44 <comment>Navigation Title</comment>
45 <add>3.0</add>
6a488035
TO
46 </field>
47 <field>
8f069c03 48 <name>name</name>
1c4f4ae6 49 <title>Navigation Item Machine Name</title>
8f069c03
EM
50 <type>varchar</type>
51 <length>255</length>
52 <comment>Internal Name</comment>
53 <add>3.0</add>
6a488035
TO
54 </field>
55 <field>
56 <name>url</name>
1c4f4ae6 57 <title>Url</title>
6a488035
TO
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>
8f069c03 64 <name>permission</name>
1c4f4ae6 65 <title>Required Permission</title>
8f069c03
EM
66 <type>varchar</type>
67 <length>255</length>
68 <comment>Permission for menu item</comment>
69 <add>3.0</add>
6a488035
TO
70 </field>
71 <field>
8f069c03 72 <name>permission_operator</name>
1c4f4ae6 73 <title>Permission Operator</title>
8f069c03
EM
74 <type>varchar</type>
75 <length>3</length>
76 <comment>Permission Operator</comment>
77 <add>3.0</add>
6a488035
TO
78 </field>
79 <field>
8f069c03 80 <name>parent_id</name>
1c4f4ae6 81 <title>Navigation parent ID</title>
8f069c03
EM
82 <type>int unsigned</type>
83 <comment>Parent navigation item, used for grouping</comment>
dfbeefd8 84 <pseudoconstant>
85 <table>civicrm_navigation</table>
86 <keyColumn>name</keyColumn>
87 <labelColumn>label</labelColumn>
88 </pseudoconstant>
8f069c03 89 <add>3.0</add>
6a488035
TO
90 </field>
91 <foreignKey>
8f069c03
EM
92 <name>parent_id</name>
93 <table>civicrm_navigation</table>
94 <key>id</key>
95 <onDelete>CASCADE</onDelete>
96 <add>3.0</add>
6a488035
TO
97 </foreignKey>
98 <field>
8f069c03 99 <name>is_active</name>
1c4f4ae6 100 <title>Is Active</title>
8f069c03
EM
101 <type>boolean</type>
102 <comment>Is this navigation item active?</comment>
103 <add>3.0</add>
6a488035
TO
104 </field>
105 <field>
8f069c03 106 <name>has_separator</name>
1c4f4ae6 107 <title>Use separator</title>
8f069c03
EM
108 <type>boolean</type>
109 <comment>If separator needs to be added after this menu item</comment>
110 <add>3.0</add>
6a488035
TO
111 </field>
112 <field>
113 <name>weight</name>
7ecddde4 114 <title>Order</title>
6a488035
TO
115 <type>int</type>
116 <comment>Ordering of the navigation items in various blocks.</comment>
117 <add>3.0</add>
118 </field>
119</table>