Import from SVN (r45945, r596)
[civicrm-core.git] / xml / schema / PCP / PCPBlock.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/PCP</base>
5 <class>PCPBlock</class>
6 <name>civicrm_pcp_block</name>
7 <comment>A Personal Campaign Page Block stores admin configurable status options and rules</comment>
8 <add>2.2</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>PCP block Id</comment>
15 <add>2.2</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>entity_table</name>
23 <type>varchar</type>
24 <length>64</length>
25 <add>2.2</add>
26 </field>
27 <field>
28 <name>entity_id</name>
29 <type>int unsigned</type>
30 <required>true</required>
31 <comment>FK to civicrm_contribution_page.id OR civicrm_event.id</comment>
32 <add>2.2</add>
33 </field>
34 <foreignKey>
35 <name>entity_id</name>
36 <table>civicrm_contribution_page</table>
37 <key>id</key>
38 <add>2.2</add>
39 <drop>4.1</drop>
40 </foreignKey>
41 <field>
42 <name>target_entity_type</name>
43 <type>varchar</type>
44 <length>255</length>
45 <required>true</required>
46 <default>'contribute'</default>
47 <comment>The type of entity that this pcp targets</comment>
48 <add>4.1</add>
49 </field>
50 <field>
51 <name>target_entity_id</name>
52 <type>int unsigned</type>
53 <required>true</required>
54 <comment>The entity that this pcp targets</comment>
55 <add>4.1</add>
56 </field>
57 <field>
58 <name>supporter_profile_id</name>
59 <type>int unsigned</type>
60 <comment>FK to civicrm_uf_group.id. Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?</comment>
61 <default>NULL</default>
62 <add>2.2</add>
63 </field>
64 <foreignKey>
65 <name>supporter_profile_id</name>
66 <table>civicrm_uf_group</table>
67 <key>id</key>
68 <add>3.1</add>
69 <onDelete>SET NULL</onDelete>
70 </foreignKey>
71 <field>
72 <name>is_approval_needed</name>
73 <type>boolean</type>
74 <comment>Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?</comment>
75 <default>NULL</default>
76 <add>2.2</add>
77 </field>
78 <field>
79 <name>is_tellfriend_enabled</name>
80 <type>boolean</type>
81 <comment>Does Personal Campaign Page allow using tell a friend?</comment>
82 <default>NULL</default>
83 <add>2.2</add>
84 </field>
85 <field>
86 <name>tellfriend_limit</name>
87 <type>int unsigned</type>
88 <default>NULL</default>
89 <comment>Maximum recipient fields allowed in tell a friend</comment>
90 <add>2.2</add>
91 </field>
92 <field>
93 <name>link_text</name>
94 <type>varchar</type>
95 <length>255</length>
96 <default>NULL</default>
97 <localizable>true</localizable>
98 <comment>Link text for PCP.</comment>
99 <add>2.2</add>
100 </field>
101 <field>
102 <name>is_active</name>
103 <type>boolean</type>
104 <comment>Is Personal Campaign Page Block enabled/active?</comment>
105 <default>1</default>
106 <add>2.2</add>
107 </field>
108 <field>
109 <name>notify_email</name>
110 <type>varchar</type>
111 <length>255</length>
112 <comment>If set, notification is automatically emailed to this email-address on create/update Personal Campaign Page</comment>
113 <default>NULL</default>
114 <add>2.2</add>
115 </field>
116</table>