Merge pull request #2120 from pratik-joshi/CRM-13857
[civicrm-core.git] / xml / schema / Core / WordReplacement.xml
CommitLineData
d83a3991 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>
311de541 24 <collate>utf8_bin</collate>
d83a3991 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>
311de541 32 <collate>utf8_bin</collate>
d83a3991 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 <comment>Is this entry active?</comment>
41 <add>4.4</add>
42 </field>
43 <index>
44379fac 44 <name>UI_domain_find</name>
311de541 45 <fieldName>domain_id</fieldName>
d83a3991 46 <fieldName>find_word</fieldName>
47 <unique>true</unique>
48 <add>4.4</add>
49 </index>
675605a7 50 <field>
51 <name>match_type</name>
52 <type>enum</type>
53 <values>wildcardMatch, exactMatch</values>
54 <default>"wildcardMatch"</default>
55 <add>4.4</add>
56 </field>
d83a3991 57 <field>
58 <name>domain_id</name>
59 <type>int unsigned</type>
60 <comment>FK to Domain ID. This is for Domain specific word replacement</comment>
61 <add>1.1</add>
62 </field>
63 <foreignKey>
64 <name>domain_id</name>
65 <table>civicrm_domain</table>
66 <key>id</key>
67 <add>1.1</add>
68 </foreignKey>
69</table>