Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Core</base> | |
5 | <class>Website</class> | |
6 | <name>civicrm_website</name> | |
7 | <comment>Website information for a specific location.</comment> | |
8 | <add>3.2</add> | |
9 | <field> | |
8f069c03 EM |
10 | <name>id</name> |
11 | <type>int unsigned</type> | |
12 | <title>Website ID</title> | |
13 | <required>true</required> | |
14 | <comment>Unique Website ID</comment> | |
15 | <add>3.2</add> | |
6a488035 TO |
16 | </field> |
17 | <primaryKey> | |
8f069c03 EM |
18 | <name>id</name> |
19 | <autoincrement>true</autoincrement> | |
6a488035 TO |
20 | </primaryKey> |
21 | <field> | |
8f069c03 EM |
22 | <name>contact_id</name> |
23 | <title>Contact</title> | |
24 | <type>int unsigned</type> | |
25 | <comment>FK to Contact ID</comment> | |
26 | <add>3.2</add> | |
6a488035 TO |
27 | </field> |
28 | <foreignKey> | |
8f069c03 EM |
29 | <name>contact_id</name> |
30 | <table>civicrm_contact</table> | |
31 | <key>id</key> | |
32 | <add>3.2</add> | |
33 | <onDelete>CASCADE</onDelete> | |
6a488035 TO |
34 | </foreignKey> |
35 | <field> | |
8f069c03 EM |
36 | <name>url</name> |
37 | <title>Website</title> | |
38 | <type>varchar</type> | |
39 | <length>128</length> | |
40 | <html> | |
41 | <type>Text</type> | |
54f5e87f | 42 | <size>30</size> |
8f069c03 EM |
43 | </html> |
44 | <import>true</import> | |
45 | <headerPattern>/Website/i</headerPattern> | |
46 | <dataPattern>/^[A-Za-z][0-9A-Za-z]{20,}$/</dataPattern> | |
47 | <comment>Website</comment> | |
48 | <add>3.2</add> | |
6a488035 TO |
49 | </field> |
50 | <field> | |
8f069c03 EM |
51 | <name>website_type_id</name> |
52 | <title>Website Type</title> | |
53 | <type>int unsigned</type> | |
54 | <comment>Which Website type does this website belong to.</comment> | |
55 | <add>3.2</add> | |
56 | <pseudoconstant> | |
57 | <optionGroupName>website_type</optionGroupName> | |
58 | </pseudoconstant> | |
59 | <html> | |
60 | <type>Select</type> | |
61 | </html> | |
6a488035 TO |
62 | </field> |
63 | <index> | |
64 | <name>UI_website_type_id</name> | |
3c7d2158 | 65 | <fieldName>website_type_id</fieldName> |
6a488035 TO |
66 | <add>3.2</add> |
67 | </index> | |
68 | </table> |