Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-09-25-01-46-57
[civicrm-core.git] / xml / schema / Dedupe / Rule.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="utf-8" ?>
2<table>
3 <base>CRM/Dedupe</base>
4 <class>Rule</class>
5 <name>civicrm_dedupe_rule</name>
6 <comment>Dedupe rules for use by rule groups</comment>
7 <add>1.8</add>
8 <field>
9 <name>id</name>
10 <type>int unsigned</type>
11 <required>true</required>
12 <comment>Unique dedupe rule id</comment>
13 <add>1.8</add>
14 </field>
15 <primaryKey>
16 <name>id</name>
17 <autoincrement>true</autoincrement>
18 </primaryKey>
19 <field>
20 <name>dedupe_rule_group_id</name>
21 <type>int unsigned</type>
22 <required>true</required>
23 <comment>The id of the rule group this rule belongs to</comment>
24 <add>1.8</add>
25 </field>
26 <foreignKey>
27 <name>dedupe_rule_group_id</name>
28 <table>civicrm_dedupe_rule_group</table>
29 <key>id</key>
30 <add>1.8</add>
31 </foreignKey>
32 <field>
33 <name>rule_table</name>
34 <type>varchar</type>
35 <length>64</length>
36 <required>true</required>
37 <comment>The name of the table this rule is about</comment>
38 <add>1.8</add>
39 </field>
40 <field>
41 <name>rule_field</name>
42 <type>varchar</type>
43 <length>64</length>
44 <required>true</required>
45 <comment>The name of the field of the table referenced in rule_table</comment>
46 <add>1.8</add>
47 </field>
48 <field>
49 <name>rule_length</name>
50 <type>int unsigned</type>
51 <comment>The lenght of the matching substring</comment>
52 <add>1.8</add>
53 </field>
54 <field>
55 <name>rule_weight</name>
56 <type>int</type>
57 <required>true</required>
58 <comment>The weight of the rule</comment>
59 <add>1.8</add>
60 </field>
61</table>