CRM-14955 - add custom tokens to greetings
[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>
50d42431 40 <default>1</default>
d83a3991 41 <comment>Is this entry active?</comment>
42 <add>4.4</add>
43 </field>
44 <index>
44379fac 45 <name>UI_domain_find</name>
311de541 46 <fieldName>domain_id</fieldName>
d83a3991 47 <fieldName>find_word</fieldName>
48 <unique>true</unique>
49 <add>4.4</add>
50 </index>
675605a7 51 <field>
52 <name>match_type</name>
909ca5f6 53 <type>varchar</type>
54 <length>16</length>
675605a7 55 <default>"wildcardMatch"</default>
e204d358 56 <pseudoconstant>
93bfa565 57 <callback>CRM_Core_SelectValues::getWordReplacementMatchType</callback>
e204d358 58 </pseudoconstant>
675605a7 59 <add>4.4</add>
614d72ec 60 <html>
61 <type>Select</type>
62 </html>
675605a7 63 </field>
d83a3991 64 <field>
65 <name>domain_id</name>
66 <type>int unsigned</type>
67 <comment>FK to Domain ID. This is for Domain specific word replacement</comment>
68 <add>1.1</add>
69 </field>
70 <foreignKey>
71 <name>domain_id</name>
72 <table>civicrm_domain</table>
73 <key>id</key>
74 <add>1.1</add>
75 </foreignKey>
76</table>