Merge pull request #23216 from eileenmcnaughton/import_more
[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 <title>Word Replacement ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Word replacement ID</comment>
15 <html>
16 <type>Number</type>
17 </html>
18 <add>4.4</add>
19 </field>
20 <primaryKey>
21 <name>id</name>
22 <autoincrement>true</autoincrement>
23 </primaryKey>
24 <field>
25 <name>find_word</name>
26 <title>Replaced Word</title>
27 <type>varchar</type>
28 <length>255</length>
29 <collate>utf8_bin</collate>
30 <comment>Word which need to be replaced</comment>
31 <add>4.4</add>
32 </field>
33 <field>
34 <name>replace_word</name>
35 <title>Replacement Word</title>
36 <type>varchar</type>
37 <length>255</length>
38 <collate>utf8_bin</collate>
39 <comment>Word which will replace the word in find</comment>
40 <add>4.4</add>
41 </field>
42 <field>
43 <name>is_active</name>
44 <title>Word Replacement is Active</title>
45 <type>boolean</type>
46 <default>1</default>
47 <required>true</required>
48 <comment>Is this entry active?</comment>
49 <add>4.4</add>
50 </field>
51 <index>
52 <name>UI_domain_find</name>
53 <fieldName>domain_id</fieldName>
54 <fieldName>find_word</fieldName>
55 <unique>true</unique>
56 <add>4.4</add>
57 </index>
58 <field>
59 <name>match_type</name>
60 <title>Word Replacement Match Type</title>
61 <type>varchar</type>
62 <length>16</length>
63 <default>"wildcardMatch"</default>
64 <pseudoconstant>
65 <callback>CRM_Core_SelectValues::getWordReplacementMatchType</callback>
66 </pseudoconstant>
67 <add>4.4</add>
68 <html>
69 <type>Select</type>
70 </html>
71 </field>
72 <field>
73 <name>domain_id</name>
74 <title>Domain ID</title>
75 <type>int unsigned</type>
76 <pseudoconstant>
77 <table>civicrm_domain</table>
78 <keyColumn>id</keyColumn>
79 <labelColumn>name</labelColumn>
80 </pseudoconstant>
81 <comment>FK to Domain ID. This is for Domain specific word replacement</comment>
82 <html>
83 <label>Domain</label>
84 </html>
85 <add>1.1</add>
86 </field>
87 <foreignKey>
88 <name>domain_id</name>
89 <table>civicrm_domain</table>
90 <key>id</key>
91 <add>1.1</add>
92 </foreignKey>
93 </table>