Merge branch 'master' of https://github.com/rollox/civicrm-core into CRM-18317
[civicrm-core.git] / xml / schema / Dedupe / Exception.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2 <table>
3 <base>CRM/Dedupe</base>
4 <class>Exception</class>
5 <name>civicrm_dedupe_exception</name>
6 <comment>Dedupe exceptions</comment>
7 <add>3.3</add>
8 <field>
9 <name>id</name>
10 <title>Dedupe Exception ID</title>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Unique dedupe exception id</comment>
14 <add>3.3</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>contact_id1</name>
22 <title>First Dupe Contact ID</title>
23 <type>int unsigned</type>
24 <comment>FK to Contact ID</comment>
25 <add>3.3</add>
26 </field>
27 <foreignKey>
28 <name>contact_id1</name>
29 <table>civicrm_contact</table>
30 <key>id</key>
31 <add>3.3</add>
32 <onDelete>CASCADE</onDelete>
33 </foreignKey>
34 <field>
35 <name>contact_id2</name>
36 <title>Second Dupe Contact ID</title>
37 <type>int unsigned</type>
38 <comment>FK to Contact ID</comment>
39 <add>3.3</add>
40 </field>
41 <foreignKey>
42 <name>contact_id2</name>
43 <table>civicrm_contact</table>
44 <key>id</key>
45 <add>3.3</add>
46 <onDelete>CASCADE</onDelete>
47 </foreignKey>
48 <index>
49 <name>UI_contact_id1_contact_id2</name>
50 <fieldName>contact_id1</fieldName>
51 <fieldName>contact_id2</fieldName>
52 <unique>true</unique>
53 <add>3.3</add>
54 </index>
55 </table>