CRM-14955 - add custom tokens to greetings
[civicrm-core.git] / xml / schema / Core / WordReplacement.xml
index e19d76423410cb9599bb5ca89ff97f0eed45d311..9c64a1afe6eee2bd7099120f7234df524fa5a53d 100644 (file)
@@ -21,6 +21,7 @@
     <name>find_word</name>
     <type>varchar</type>
     <length>255</length>
+    <collate>utf8_bin</collate>
     <comment>Word which need to be replaced</comment>
     <add>4.4</add>
   </field>
@@ -28,6 +29,7 @@
     <name>replace_word</name>
     <type>varchar</type>
     <length>255</length>
+    <collate>utf8_bin</collate>
     <comment>Word which will replace the word in find</comment>
     <add>4.4</add>
   </field>
     <name>is_active</name>
     <title>Word Replacement is Active</title>
     <type>boolean</type>
+    <default>1</default>
     <comment>Is this entry active?</comment>
     <add>4.4</add>
   </field>
   <index>
-    <name>UI_find</name>
+    <name>UI_domain_find</name>
+    <fieldName>domain_id</fieldName>
     <fieldName>find_word</fieldName>
     <unique>true</unique>
     <add>4.4</add>
   </index>
   <field>
        <name>match_type</name>
-       <type>enum</type>
-       <values>wildcardMatch, exactMatch</values>
+       <type>varchar</type>
+       <length>16</length>
        <default>"wildcardMatch"</default>
+       <pseudoconstant>
+         <callback>CRM_Core_SelectValues::getWordReplacementMatchType</callback>
+       </pseudoconstant>
        <add>4.4</add>
+       <html>
+         <type>Select</type>
+       </html>
   </field>
   <field>
     <name>domain_id</name>