commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / xml / schema / Contact / GroupNesting.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Contact</base>
5 <class>GroupNesting</class>
6 <name>civicrm_group_nesting</name>
7 <comment>Provide parent-child relationships for groups</comment>
8 <add>2.0</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <title>Group Nesting ID</title>
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>Relationship ID</comment>
16 <add>2.0</add>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>child_group_id</name>
24 <title>Child Group</title>
25 <type>int unsigned</type>
26 <required>true</required>
27 <comment>ID of the child group</comment>
28 <add>2.0</add>
29 </field>
30 <foreignKey>
31 <name>child_group_id</name>
32 <table>civicrm_group</table>
33 <key>id</key>
34 <onDelete>CASCADE</onDelete>
35 <add>2.0</add>
36 </foreignKey>
37 <field>
38 <name>parent_group_id</name>
39 <title>Parent Group</title>
40 <type>int unsigned</type>
41 <required>true</required>
42 <comment>ID of the parent group</comment>
43 <add>2.0</add>
44 </field>
45 <foreignKey>
46 <name>parent_group_id</name>
47 <table>civicrm_group</table>
48 <key>id</key>
49 <onDelete>CASCADE</onDelete>
50 <add>2.0</add>
51 </foreignKey>
52 </table>