| 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
| 2 | |
| 3 | <table> |
| 4 | <base>CRM/Core</base> |
| 5 | <class>MessageTemplate</class> |
| 6 | <name>civicrm_msg_template</name> |
| 7 | <comment>Users will need a way to save and retrieve templates with tokens for use in recurring email communication tasks</comment> |
| 8 | <add>1.6</add> |
| 9 | <field> |
| 10 | <name>id</name> |
| 11 | <title>Message Template ID</title> |
| 12 | <type>int unsigned</type> |
| 13 | <required>true</required> |
| 14 | <comment>Message Template ID</comment> |
| 15 | <add>1.6</add> |
| 16 | </field> |
| 17 | <primaryKey> |
| 18 | <name>id</name> |
| 19 | <autoincrement>true</autoincrement> |
| 20 | </primaryKey> |
| 21 | <field> |
| 22 | <name>msg_title</name> |
| 23 | <title>Message Template Title</title> |
| 24 | <type>varchar</type> |
| 25 | <length>255</length> |
| 26 | <comment>Descriptive title of message</comment> |
| 27 | <add>1.6</add> |
| 28 | </field> |
| 29 | <field> |
| 30 | <name>msg_subject</name> |
| 31 | <title>Message Template Subject</title> |
| 32 | <type>text</type> |
| 33 | <comment>Subject for email message.</comment> |
| 34 | <add>1.6</add> |
| 35 | <!-- type changed from VARCHAR(255) to TEXT in 3.1 --> |
| 36 | </field> |
| 37 | <field> |
| 38 | <name>msg_text</name> |
| 39 | <title>Message Template Text</title> |
| 40 | <type>longtext</type> |
| 41 | <html> |
| 42 | <type>TextArea</type> |
| 43 | <rows>10</rows> |
| 44 | <cols>75</cols> |
| 45 | </html> |
| 46 | <comment>Text formatted message</comment> |
| 47 | <add>1.6</add> |
| 48 | <!-- type changed from TEXT to LONGTEXT in 4.3 --> |
| 49 | </field> |
| 50 | <field> |
| 51 | <name>msg_html</name> |
| 52 | <title>Message Template HTML</title> |
| 53 | <type>longtext</type> |
| 54 | <html> |
| 55 | <type>RichTextEditor</type> |
| 56 | <rows>10</rows> |
| 57 | <cols>75</cols> |
| 58 | </html> |
| 59 | <comment>HTML formatted message</comment> |
| 60 | <add>1.6</add> |
| 61 | <!-- type changed from TEXT to LONGTEXT in 4.3 --> |
| 62 | </field> |
| 63 | <field> |
| 64 | <name>is_active</name> |
| 65 | <title>Is Active</title> |
| 66 | <type>boolean</type> |
| 67 | <default>1</default> |
| 68 | <add>1.6</add> |
| 69 | </field> |
| 70 | <field> |
| 71 | <name>workflow_id</name> |
| 72 | <title>Message Template Workflow</title> |
| 73 | <type>int unsigned</type> |
| 74 | <comment>a pseudo-FK to civicrm_option_value</comment> |
| 75 | <add>3.1</add> |
| 76 | </field> |
| 77 | <field> |
| 78 | <name>is_default</name> |
| 79 | <title>Message Template Is Default?</title> |
| 80 | <type>boolean</type> |
| 81 | <default>1</default> |
| 82 | <comment>is this the default message template for the workflow referenced by workflow_id?</comment> |
| 83 | <add>3.1</add> |
| 84 | </field> |
| 85 | <field> |
| 86 | <name>is_reserved</name> |
| 87 | <title>Message Template Is Reserved?</title> |
| 88 | <type>boolean</type> |
| 89 | <comment>is this the reserved message template which we ship for the workflow referenced by workflow_id?</comment> |
| 90 | <add>3.1</add> |
| 91 | </field> |
| 92 | <field> |
| 93 | <name>is_sms</name> |
| 94 | <title>Message Template is used for SMS?</title> |
| 95 | <type>boolean</type> |
| 96 | <default>0</default> |
| 97 | <comment>Is this message template used for sms?</comment> |
| 98 | <add>4.5</add> |
| 99 | </field> |
| 100 | <field> |
| 101 | <name>pdf_format_id</name> |
| 102 | <title>Message Template Format</title> |
| 103 | <type>int unsigned</type> |
| 104 | <comment>a pseudo-FK to civicrm_option_value containing PDF Page Format.</comment> |
| 105 | <pseudoconstant> |
| 106 | <optionGroupName>pdf_format</optionGroupName> |
| 107 | <keyColumn>id</keyColumn> |
| 108 | </pseudoconstant> |
| 109 | <add>3.4</add> |
| 110 | </field> |
| 111 | </table> |