Commit | Line | Data |
---|---|---|
6a488035 TO |
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> | |
7cd3d797 | 12 | <title>Group Nesting ID</title> |
6a488035 TO |
13 | <type>int unsigned</type> |
14 | <required>true</required> | |
15 | <comment>Relationship ID</comment> | |
0481e12c A |
16 | <html> |
17 | <type>Number</type> | |
18 | </html> | |
6a488035 TO |
19 | <add>2.0</add> |
20 | </field> | |
21 | <primaryKey> | |
22 | <name>id</name> | |
23 | <autoincrement>true</autoincrement> | |
24 | </primaryKey> | |
25 | <field> | |
26 | <name>child_group_id</name> | |
57e94608 | 27 | <title>Child Group ID</title> |
6a488035 TO |
28 | <type>int unsigned</type> |
29 | <required>true</required> | |
30 | <comment>ID of the child group</comment> | |
57e94608 A |
31 | <html> |
32 | <label>Child Group</label> | |
33 | </html> | |
6a488035 TO |
34 | <add>2.0</add> |
35 | </field> | |
36 | <foreignKey> | |
37 | <name>child_group_id</name> | |
38 | <table>civicrm_group</table> | |
39 | <key>id</key> | |
40 | <onDelete>CASCADE</onDelete> | |
41 | <add>2.0</add> | |
42 | </foreignKey> | |
43 | <field> | |
44 | <name>parent_group_id</name> | |
57e94608 | 45 | <title>Parent Group ID</title> |
6a488035 TO |
46 | <type>int unsigned</type> |
47 | <required>true</required> | |
48 | <comment>ID of the parent group</comment> | |
57e94608 A |
49 | <html> |
50 | <label>Parent Group</label> | |
51 | </html> | |
6a488035 TO |
52 | <add>2.0</add> |
53 | </field> | |
54 | <foreignKey> | |
55 | <name>parent_group_id</name> | |
56 | <table>civicrm_group</table> | |
57 | <key>id</key> | |
58 | <onDelete>CASCADE</onDelete> | |
59 | <add>2.0</add> | |
60 | </foreignKey> | |
61 | </table> |