Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | <table> | |
3 | <base>CRM/Dedupe</base> | |
bb4187d7 | 4 | <class>DedupeRule</class> |
6a488035 TO |
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> | |
f3ea5182 | 10 | <title>Dedupe Rule ID</title> |
6a488035 TO |
11 | <type>int unsigned</type> |
12 | <required>true</required> | |
13 | <comment>Unique dedupe rule id</comment> | |
0481e12c A |
14 | <html> |
15 | <type>Number</type> | |
16 | </html> | |
6a488035 TO |
17 | <add>1.8</add> |
18 | </field> | |
19 | <primaryKey> | |
20 | <name>id</name> | |
21 | <autoincrement>true</autoincrement> | |
22 | </primaryKey> | |
23 | <field> | |
24 | <name>dedupe_rule_group_id</name> | |
047c5009 | 25 | <title>Group ID</title> |
6a488035 TO |
26 | <type>int unsigned</type> |
27 | <required>true</required> | |
28 | <comment>The id of the rule group this rule belongs to</comment> | |
57e94608 | 29 | <html> |
047c5009 | 30 | <label>Group</label> |
57e94608 | 31 | </html> |
6a488035 TO |
32 | <add>1.8</add> |
33 | </field> | |
34 | <foreignKey> | |
35 | <name>dedupe_rule_group_id</name> | |
36 | <table>civicrm_dedupe_rule_group</table> | |
37 | <key>id</key> | |
38 | <add>1.8</add> | |
39 | </foreignKey> | |
40 | <field> | |
41 | <name>rule_table</name> | |
f3ea5182 | 42 | <title>Rule Table</title> |
6a488035 TO |
43 | <type>varchar</type> |
44 | <length>64</length> | |
45 | <required>true</required> | |
46 | <comment>The name of the table this rule is about</comment> | |
47 | <add>1.8</add> | |
48 | </field> | |
49 | <field> | |
50 | <name>rule_field</name> | |
f3ea5182 | 51 | <title>Rule Field</title> |
6a488035 TO |
52 | <type>varchar</type> |
53 | <length>64</length> | |
54 | <required>true</required> | |
55 | <comment>The name of the field of the table referenced in rule_table</comment> | |
56 | <add>1.8</add> | |
57 | </field> | |
58 | <field> | |
59 | <name>rule_length</name> | |
f3ea5182 | 60 | <title>Rule Length</title> |
6a488035 | 61 | <type>int unsigned</type> |
e4f46be0 | 62 | <comment>The length of the matching substring</comment> |
6a488035 | 63 | <add>1.8</add> |
a4969aee TM |
64 | <html> |
65 | <type>Text</type> | |
66 | </html> | |
6a488035 TO |
67 | </field> |
68 | <field> | |
69 | <name>rule_weight</name> | |
f3ea5182 | 70 | <title>Order</title> |
6a488035 TO |
71 | <type>int</type> |
72 | <required>true</required> | |
73 | <comment>The weight of the rule</comment> | |
74 | <add>1.8</add> | |
a4969aee TM |
75 | <html> |
76 | <type>Text</type> | |
77 | </html> | |
6a488035 TO |
78 | </field> |
79 | </table> |