Commit | Line | Data |
---|---|---|
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> | |
61ce9b45 | 11 | <title>Word Replacement ID</title> |
d83a3991 | 12 | <type>int unsigned</type> |
13 | <required>true</required> | |
14 | <comment>Word replacement ID</comment> | |
0481e12c A |
15 | <html> |
16 | <type>Number</type> | |
17 | </html> | |
d83a3991 | 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> | |
61ce9b45 | 26 | <title>Replaced Word</title> |
d83a3991 | 27 | <type>varchar</type> |
28 | <length>255</length> | |
311de541 | 29 | <collate>utf8_bin</collate> |
d83a3991 | 30 | <comment>Word which need to be replaced</comment> |
31 | <add>4.4</add> | |
32 | </field> | |
33 | <field> | |
34 | <name>replace_word</name> | |
61ce9b45 | 35 | <title>Replacement Word</title> |
d83a3991 | 36 | <type>varchar</type> |
37 | <length>255</length> | |
311de541 | 38 | <collate>utf8_bin</collate> |
d83a3991 | 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> | |
50d42431 | 46 | <default>1</default> |
c1e814c7 | 47 | <required>true</required> |
d83a3991 | 48 | <comment>Is this entry active?</comment> |
49 | <add>4.4</add> | |
50 | </field> | |
51 | <index> | |
44379fac | 52 | <name>UI_domain_find</name> |
311de541 | 53 | <fieldName>domain_id</fieldName> |
d83a3991 | 54 | <fieldName>find_word</fieldName> |
55 | <unique>true</unique> | |
56 | <add>4.4</add> | |
57 | </index> | |
675605a7 | 58 | <field> |
61ce9b45 EM |
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> | |
675605a7 | 71 | </field> |
d83a3991 | 72 | <field> |
73 | <name>domain_id</name> | |
047c5009 | 74 | <title>Domain ID</title> |
d83a3991 | 75 | <type>int unsigned</type> |
c2b4755a EM |
76 | <pseudoconstant> |
77 | <table>civicrm_domain</table> | |
78 | <keyColumn>id</keyColumn> | |
79 | <labelColumn>name</labelColumn> | |
80 | </pseudoconstant> | |
d83a3991 | 81 | <comment>FK to Domain ID. This is for Domain specific word replacement</comment> |
57e94608 | 82 | <html> |
047c5009 | 83 | <label>Domain</label> |
57e94608 | 84 | </html> |
d83a3991 | 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> |