commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / xml / schema / Core / Website.xml
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>
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>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
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>
27 </field>
28 <foreignKey>
29 <name>contact_id</name>
30 <table>civicrm_contact</table>
31 <key>id</key>
32 <add>3.2</add>
33 <onDelete>CASCADE</onDelete>
34 </foreignKey>
35 <field>
36 <name>url</name>
37 <title>Website</title>
38 <type>varchar</type>
39 <length>128</length>
40 <html>
41 <type>Text</type>
42 <size>BIG</size>
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>
49 </field>
50 <field>
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>
62 </field>
63 <index>
64 <name>UI_website_type_id</name>
65 <fieldName>website_type_id</fieldName>
66 <add>3.2</add>
67 </index>
68 </table>