| 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 | <type>int unsigned</type> |
| 11 | <required>true</required> |
| 12 | <comment>Unique dedupe exception id</comment> |
| 13 | <add>3.3</add> |
| 14 | </field> |
| 15 | <primaryKey> |
| 16 | <name>id</name> |
| 17 | <autoincrement>true</autoincrement> |
| 18 | </primaryKey> |
| 19 | <field> |
| 20 | <name>contact_id1</name> |
| 21 | <title>First Dupe Contact ID</title> |
| 22 | <type>int unsigned</type> |
| 23 | <comment>FK to Contact ID</comment> |
| 24 | <add>3.3</add> |
| 25 | </field> |
| 26 | <foreignKey> |
| 27 | <name>contact_id1</name> |
| 28 | <table>civicrm_contact</table> |
| 29 | <key>id</key> |
| 30 | <add>3.3</add> |
| 31 | <onDelete>CASCADE</onDelete> |
| 32 | </foreignKey> |
| 33 | <field> |
| 34 | <name>contact_id2</name> |
| 35 | <title>Second Dupe Contact ID</title> |
| 36 | <type>int unsigned</type> |
| 37 | <comment>FK to Contact ID</comment> |
| 38 | <add>3.3</add> |
| 39 | </field> |
| 40 | <foreignKey> |
| 41 | <name>contact_id2</name> |
| 42 | <table>civicrm_contact</table> |
| 43 | <key>id</key> |
| 44 | <add>3.3</add> |
| 45 | <onDelete>CASCADE</onDelete> |
| 46 | </foreignKey> |
| 47 | <index> |
| 48 | <name>UI_contact_id1_contact_id2</name> |
| 49 | <fieldName>contact_id1</fieldName> |
| 50 | <fieldName>contact_id2</fieldName> |
| 51 | <unique>true</unique> |
| 52 | <add>3.3</add> |
| 53 | </index> |
| 54 | </table> |