Merge branch '5.48' to master
[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 <comment>Is this entry active?</comment>
48 <add>4.4</add>
49 </field>
50 <index>
51 <name>UI_domain_find</name>
52 <fieldName>domain_id</fieldName>
53 <fieldName>find_word</fieldName>
54 <unique>true</unique>
55 <add>4.4</add>
56 </index>
57 <field>
58 <name>match_type</name>
59 <title>Word Replacement Match Type</title>
60 <type>varchar</type>
61 <length>16</length>
62 <default>"wildcardMatch"</default>
63 <pseudoconstant>
64 <callback>CRM_Core_SelectValues::getWordReplacementMatchType</callback>
65 </pseudoconstant>
66 <add>4.4</add>
67 <html>
68 <type>Select</type>
69 </html>
70 </field>
71 <field>
72 <name>domain_id</name>
73 <title>Domain ID</title>
74 <type>int unsigned</type>
75 <pseudoconstant>
76 <table>civicrm_domain</table>
77 <keyColumn>id</keyColumn>
78 <labelColumn>name</labelColumn>
79 </pseudoconstant>
80 <comment>FK to Domain ID. This is for Domain specific word replacement</comment>
81 <html>
82 <label>Domain</label>
83 </html>
84 <add>1.1</add>
85 </field>
86 <foreignKey>
87 <name>domain_id</name>
88 <table>civicrm_domain</table>
89 <key>id</key>
90 <add>1.1</add>
91 </foreignKey>
92 </table>