Fix FiveFortyNine is_public to default to 0
[civicrm-core.git] / 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 <icon>fa-desktop</icon>
10 <labelField>url</labelField>
11 <field>
12 <name>id</name>
13 <type>int unsigned</type>
14 <title>Website ID</title>
15 <required>true</required>
16 <comment>Unique Website ID</comment>
17 <html>
18 <type>Number</type>
19 </html>
20 <add>3.2</add>
21 </field>
22 <primaryKey>
23 <name>id</name>
24 <autoincrement>true</autoincrement>
25 </primaryKey>
26 <field>
27 <name>contact_id</name>
28 <title>Contact ID</title>
29 <type>int unsigned</type>
30 <comment>FK to Contact ID</comment>
31 <html>
32 <label>Contact</label>
33 </html>
34 <add>3.2</add>
35 </field>
36 <foreignKey>
37 <name>contact_id</name>
38 <table>civicrm_contact</table>
39 <key>id</key>
40 <add>3.2</add>
41 <onDelete>CASCADE</onDelete>
42 </foreignKey>
43 <field>
44 <name>url</name>
45 <title>Website</title>
46 <type>varchar</type>
47 <length>128</length>
48 <html>
49 <type>Text</type>
50 <size>30</size>
51 </html>
52 <import>true</import>
53 <headerPattern>/Website/i</headerPattern>
54 <dataPattern>/^[A-Za-z][0-9A-Za-z]{20,}$/</dataPattern>
55 <comment>Website</comment>
56 <add>3.2</add>
57 </field>
58 <field>
59 <name>website_type_id</name>
60 <title>Website Type</title>
61 <type>int unsigned</type>
62 <comment>Which Website type does this website belong to.</comment>
63 <add>3.2</add>
64 <pseudoconstant>
65 <optionGroupName>website_type</optionGroupName>
66 </pseudoconstant>
67 <html>
68 <type>Select</type>
69 </html>
70 </field>
71 <index>
72 <name>UI_website_type_id</name>
73 <fieldName>website_type_id</fieldName>
74 <add>3.2</add>
75 </index>
76 </table>