| 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
| 2 | |
| 3 | <table> |
| 4 | <base>CRM/Core</base> |
| 5 | <class>Domain</class> |
| 6 | <name>civicrm_domain</name> |
| 7 | <comment>Top-level hierarchy to support multi-org/domain installations. Define domains for multi-org installs, else all contacts belong to one domain.</comment> |
| 8 | <add>1.1</add> |
| 9 | <field> |
| 10 | <name>id</name> |
| 11 | <type>int unsigned</type> |
| 12 | <required>true</required> |
| 13 | <comment>Domain ID</comment> |
| 14 | <add>1.1</add> |
| 15 | </field> |
| 16 | <primaryKey> |
| 17 | <name>id</name> |
| 18 | <autoincrement>true</autoincrement> |
| 19 | </primaryKey> |
| 20 | <field> |
| 21 | <name>name</name> |
| 22 | <type>varchar</type> |
| 23 | <length>64</length> |
| 24 | <comment>Name of Domain / Organization</comment> |
| 25 | <add>1.1</add> |
| 26 | </field> |
| 27 | <field> |
| 28 | <name>description</name> |
| 29 | <type>varchar</type> |
| 30 | <length>255</length> |
| 31 | <comment>Description of Domain.</comment> |
| 32 | <add>1.1</add> |
| 33 | </field> |
| 34 | <index> |
| 35 | <name>UI_name</name> |
| 36 | <fieldName>name</fieldName> |
| 37 | <unique>true</unique> |
| 38 | <add>1.1</add> |
| 39 | </index> |
| 40 | <field> |
| 41 | <name>contact_name</name> |
| 42 | <type>varchar</type> |
| 43 | <length>64</length> |
| 44 | <comment>Name of the person responsible for this domain</comment> |
| 45 | <add>1.1</add> |
| 46 | <drop>1.9</drop> |
| 47 | </field> |
| 48 | <field> |
| 49 | <name>email_name</name> |
| 50 | <type>varchar</type> |
| 51 | <length>255</length> |
| 52 | <comment>The default email name that is used in the from address for all outgoing emails</comment> |
| 53 | <add>1.9</add> |
| 54 | <drop>2.2</drop> |
| 55 | </field> |
| 56 | <field> |
| 57 | <name>email_address</name> |
| 58 | <type>varchar</type> |
| 59 | <length>255</length> |
| 60 | <comment>The default email address that is used as the from address for all outgoing emails</comment> |
| 61 | <add>1.9</add> |
| 62 | <drop>2.2</drop> |
| 63 | </field> |
| 64 | <field> |
| 65 | <name>email_domain</name> |
| 66 | <type>varchar</type> |
| 67 | <length>64</length> |
| 68 | <comment>The domain from which outgoing email for this domain will appear to originate</comment> |
| 69 | <add>1.1</add> |
| 70 | <drop>2.2</drop> |
| 71 | </field> |
| 72 | <field> |
| 73 | <name>email_return_path</name> |
| 74 | <type>varchar</type> |
| 75 | <length>64</length> |
| 76 | <comment>The domain from which outgoing email for this domain will appear to originate</comment> |
| 77 | <add>1.1</add> |
| 78 | <drop>2.2</drop> |
| 79 | </field> |
| 80 | <field> |
| 81 | <name>config_backend</name> |
| 82 | <type>text</type> |
| 83 | <comment>Backend configuration.</comment> |
| 84 | <html> |
| 85 | <type>TextArea</type> |
| 86 | <rows>20</rows> |
| 87 | <cols>80</cols> |
| 88 | </html> |
| 89 | <add>1.6</add> |
| 90 | </field> |
| 91 | <field> |
| 92 | <name>version</name> |
| 93 | <type>varchar</type> |
| 94 | <length>32</length> |
| 95 | <comment>The civicrm version this instance is running</comment> |
| 96 | <add>2.0</add> |
| 97 | </field> |
| 98 | <field> |
| 99 | <name>loc_block_id</name> |
| 100 | <type>int unsigned</type> |
| 101 | <comment>FK to Location Block ID. This is specifically not an FK to avoid circular constraints</comment> |
| 102 | <add>2.0</add> |
| 103 | <drop>4.3</drop> |
| 104 | </field> |
| 105 | <field> |
| 106 | <name>contact_id</name> |
| 107 | <type>int unsigned</type> |
| 108 | <comment>FK to Contact ID. This is specifically not an FK to avoid circular constraints</comment> |
| 109 | <add>4.3</add> |
| 110 | </field> |
| 111 | <foreignKey> |
| 112 | <name>contact_id</name> |
| 113 | <table>civicrm_contact</table> |
| 114 | <key>id</key> |
| 115 | <add>4.3</add> |
| 116 | </foreignKey> |
| 117 | <field> |
| 118 | <name>locales</name> |
| 119 | <type>text</type> |
| 120 | <comment>list of locales supported by the current db state (NULL for single-lang install)</comment> |
| 121 | <add>2.1</add> |
| 122 | </field> |
| 123 | <field> |
| 124 | <name>locale_custom_strings</name> |
| 125 | <type>text</type> |
| 126 | <comment>Locale specific string overrides</comment> |
| 127 | <html> |
| 128 | <type>TextArea</type> |
| 129 | <rows>20</rows> |
| 130 | <cols>80</cols> |
| 131 | </html> |
| 132 | <add>3.2</add> |
| 133 | </field> |
| 134 | </table> |