| 1 | <?xml version="1.0" encoding="utf-8" ?> |
| 2 | <table> |
| 3 | <base>CRM/Dedupe</base> |
| 4 | <class>RuleGroup</class> |
| 5 | <name>civicrm_dedupe_rule_group</name> |
| 6 | <comment>Dedupe 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 group 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>contact_type</name> |
| 21 | <type>varchar</type> |
| 22 | <length>12</length> |
| 23 | <comment>The type of contacts this group applies to</comment> |
| 24 | <pseudoconstant> |
| 25 | <table>civicrm_contact_type</table> |
| 26 | <keyColumn>name</keyColumn> |
| 27 | <labelColumn>label</labelColumn> |
| 28 | <condition>parent_id IS NULL</condition> |
| 29 | </pseudoconstant> |
| 30 | <add>1.8</add> |
| 31 | <html> |
| 32 | <type>Select</type> |
| 33 | </html> |
| 34 | </field> |
| 35 | <field> |
| 36 | <name>threshold</name> |
| 37 | <type>int</type> |
| 38 | <required>true</required> |
| 39 | <comment>The weight threshold the sum of the rule weights has to cross to consider two contacts the same</comment> |
| 40 | <add>1.8</add> |
| 41 | </field> |
| 42 | <field> |
| 43 | <name>level</name> |
| 44 | <type>enum</type> |
| 45 | <values>Strict, Fuzzy</values> |
| 46 | <comment>Whether the rule should be used for cases where strict maching of the given contact type is required or a fuzzy one</comment> |
| 47 | <add>2.1</add> |
| 48 | <drop>4.3</drop> |
| 49 | </field> |
| 50 | <field> |
| 51 | <name>used</name> |
| 52 | <type>varchar</type> |
| 53 | <length>12</length> |
| 54 | <required>true</required> |
| 55 | <comment>Whether the rule should be used for cases where usage is Unsupervised, Supervised OR General(programatically)</comment> |
| 56 | <pseudoconstant> |
| 57 | <callback>CRM_Core_SelectValues::getDedupeRuleTypes</callback> |
| 58 | </pseudoconstant> |
| 59 | <add>4.3</add> |
| 60 | <html> |
| 61 | <type>Select</type> |
| 62 | </html> |
| 63 | </field> |
| 64 | <field> |
| 65 | <name>is_default</name> |
| 66 | <type>boolean</type> |
| 67 | <comment>Is this a default rule (one rule for every contact type + level combination should be default)</comment> |
| 68 | <add>2.1</add> |
| 69 | <drop>4.3</drop> |
| 70 | </field> |
| 71 | <field> |
| 72 | <name>name</name> |
| 73 | <type>varchar</type> |
| 74 | <length>64</length> |
| 75 | <comment>Name of the rule group</comment> |
| 76 | <add>2.1</add> |
| 77 | </field> |
| 78 | <field> |
| 79 | <name>title</name> |
| 80 | <type>varchar</type> |
| 81 | <length>255</length> |
| 82 | <comment>Label of the rule group</comment> |
| 83 | <add>4.1</add> |
| 84 | </field> |
| 85 | <field> |
| 86 | <name>is_reserved</name> |
| 87 | <type>boolean</type> |
| 88 | <comment>Is this a reserved rule - a rule group that has been optimized and cannot be changed by the admin</comment> |
| 89 | <add>4.1</add> |
| 90 | </field> |
| 91 | </table> |