CRM-14181 fixes - migrate enums to varchar in schema for all tables
[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 <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>
24 <collate>utf8_bin</collate>
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>
32 <collate>utf8_bin</collate>
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 <default>1</default>
41 <comment>Is this entry active?</comment>
42 <add>4.4</add>
43 </field>
44 <index>
45 <name>UI_domain_find</name>
46 <fieldName>domain_id</fieldName>
47 <fieldName>find_word</fieldName>
48 <unique>true</unique>
49 <add>4.4</add>
50 </index>
51 <field>
52 <name>match_type</name>
53 <type>varchar</type>
54 <length>16</length>
55 <default>"wildcardMatch"</default>
56 <add>4.4</add>
57 <html>
58 <type>Select</type>
59 </html>
60 </field>
61 <field>
62 <name>domain_id</name>
63 <type>int unsigned</type>
64 <comment>FK to Domain ID. This is for Domain specific word replacement</comment>
65 <add>1.1</add>
66 </field>
67 <foreignKey>
68 <name>domain_id</name>
69 <table>civicrm_domain</table>
70 <key>id</key>
71 <add>1.1</add>
72 </foreignKey>
73 </table>