Merge pull request #13289 from mfb/pear-mail
[civicrm-core.git] / xml / schema / Dedupe / Exception.xml
CommitLineData
6a488035
TO
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>
f3ea5182 10 <title>Dedupe Exception ID</title>
6a488035
TO
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>
3c7d2158 20 <field>
f3ea5182 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>
b23a2a3b 26 <required>TRUE</required>
3c7d2158 27 </field>
28 <foreignKey>
f3ea5182 29 <name>contact_id1</name>
30 <table>civicrm_contact</table>
31 <key>id</key>
32 <add>3.3</add>
33 <onDelete>CASCADE</onDelete>
6a488035 34 </foreignKey>
3c7d2158 35 <field>
f3ea5182 36 <name>contact_id2</name>
37 <title>Second Dupe Contact ID</title>
38 <type>int unsigned</type>
39 <comment>FK to Contact ID</comment>
40 <add>3.3</add>
b23a2a3b 41 <required>TRUE</required>
3c7d2158 42 </field>
43 <foreignKey>
f3ea5182 44 <name>contact_id2</name>
45 <table>civicrm_contact</table>
46 <key>id</key>
47 <add>3.3</add>
48 <onDelete>CASCADE</onDelete>
6a488035
TO
49 </foreignKey>
50 <index>
f3ea5182 51 <name>UI_contact_id1_contact_id2</name>
52 <fieldName>contact_id1</fieldName>
53 <fieldName>contact_id2</fieldName>
54 <unique>true</unique>
55 <add>3.3</add>
6a488035
TO
56 </index>
57 </table>