Merge pull request #3649 from colemanw/totten-colemanw-validate
[civicrm-core.git] / xml / schema / Core / WordReplacement.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>WordReplacement</class>
6 <name>civicrm_word_replacement</name>
7 <comment>Top-level hierarchy to support word replacement.</comment>
8 <add>4.4</add>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Word replacement ID</comment>
14 <add>4.4</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>find_word</name>
22 <type>varchar</type>
23 <length>255</length>
24 <collate>utf8_bin</collate>
25 <comment>Word which need to be replaced</comment>
26 <add>4.4</add>
27 </field>
28 <field>
29 <name>replace_word</name>
30 <type>varchar</type>
31 <length>255</length>
32 <collate>utf8_bin</collate>
33 <comment>Word which will replace the word in find</comment>
34 <add>4.4</add>
35 </field>
36 <field>
37 <name>is_active</name>
38 <title>Word Replacement is Active</title>
39 <type>boolean</type>
40 <default>1</default>
41 <comment>Is this entry active?</comment>
42 <add>4.4</add>
43 </field>
44 <index>
45 <name>UI_domain_find</name>
46 <fieldName>domain_id</fieldName>
47 <fieldName>find_word</fieldName>
48 <unique>true</unique>
49 <add>4.4</add>
50 </index>
51 <field>
52 <name>match_type</name>
53 <type>varchar</type>
54 <length>16</length>
55 <default>"wildcardMatch"</default>
56 <pseudoconstant>
57 <callback>CRM_Core_SelectValues::getWordReplacementMatchType</callback>
58 </pseudoconstant>
59 <add>4.4</add>
60 <html>
61 <type>Select</type>
62 </html>
63 </field>
64 <field>
65 <name>domain_id</name>
66 <type>int unsigned</type>
67 <pseudoconstant>
68 <table>civicrm_domain</table>
69 <keyColumn>id</keyColumn>
70 <labelColumn>name</labelColumn>
71 </pseudoconstant>
72 <comment>FK to Domain ID. This is for Domain specific word replacement</comment>
73 <add>1.1</add>
74 </field>
75 <foreignKey>
76 <name>domain_id</name>
77 <table>civicrm_domain</table>
78 <key>id</key>
79 <add>1.1</add>
80 </foreignKey>
81 </table>