Fix FiveFortyNine is_public to default to 0
[civicrm-core.git] / xml / schema / Core / Website.xml
CommitLineData
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>
449c4e6b 9 <icon>fa-desktop</icon>
8ab43c93 10 <labelField>url</labelField>
6a488035 11 <field>
8f069c03
EM
12 <name>id</name>
13 <type>int unsigned</type>
14 <title>Website ID</title>
15 <required>true</required>
16 <comment>Unique Website ID</comment>
0481e12c
A
17 <html>
18 <type>Number</type>
19 </html>
8f069c03 20 <add>3.2</add>
6a488035
TO
21 </field>
22 <primaryKey>
8f069c03
EM
23 <name>id</name>
24 <autoincrement>true</autoincrement>
6a488035
TO
25 </primaryKey>
26 <field>
8f069c03 27 <name>contact_id</name>
57e94608 28 <title>Contact ID</title>
8f069c03
EM
29 <type>int unsigned</type>
30 <comment>FK to Contact ID</comment>
57e94608
A
31 <html>
32 <label>Contact</label>
33 </html>
8f069c03 34 <add>3.2</add>
6a488035
TO
35 </field>
36 <foreignKey>
8f069c03
EM
37 <name>contact_id</name>
38 <table>civicrm_contact</table>
39 <key>id</key>
40 <add>3.2</add>
41 <onDelete>CASCADE</onDelete>
6a488035
TO
42 </foreignKey>
43 <field>
8f069c03
EM
44 <name>url</name>
45 <title>Website</title>
46 <type>varchar</type>
47 <length>128</length>
48 <html>
49 <type>Text</type>
54f5e87f 50 <size>30</size>
8f069c03
EM
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>
6a488035
TO
57 </field>
58 <field>
8f069c03
EM
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>
6a488035
TO
70 </field>
71 <index>
72 <name>UI_website_type_id</name>
3c7d2158 73 <fieldName>website_type_id</fieldName>
6a488035
TO
74 <add>3.2</add>
75 </index>
76</table>