Commit | Line | Data |
---|---|---|
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> | |
71e5aa5c ARW |
34 | <dynamicForeignKey> |
35 | <idColumn>entity_id</idColumn> | |
36 | <typeColumn>entity_table</typeColumn> | |
37 | <add>2.2</add> | |
38 | </dynamicForeignKey> | |
6a488035 TO |
39 | <foreignKey> |
40 | <name>entity_id</name> | |
41 | <table>civicrm_contribution_page</table> | |
42 | <key>id</key> | |
43 | <add>2.2</add> | |
44 | <drop>4.1</drop> | |
45 | </foreignKey> | |
46 | <field> | |
47 | <name>target_entity_type</name> | |
48 | <type>varchar</type> | |
49 | <length>255</length> | |
50 | <required>true</required> | |
51 | <default>'contribute'</default> | |
52 | <comment>The type of entity that this pcp targets</comment> | |
53 | <add>4.1</add> | |
54 | </field> | |
55 | <field> | |
56 | <name>target_entity_id</name> | |
57 | <type>int unsigned</type> | |
58 | <required>true</required> | |
59 | <comment>The entity that this pcp targets</comment> | |
60 | <add>4.1</add> | |
61 | </field> | |
71e5aa5c ARW |
62 | <dynamicForeignKey> |
63 | <idColumn>target_entity_id</idColumn> | |
64 | <!-- FIXME: typename and not tablename? --> | |
65 | <typeColumn>target_entity_type</typeColumn> | |
66 | <add>4.1</add> | |
67 | </dynamicForeignKey> | |
6a488035 TO |
68 | <field> |
69 | <name>supporter_profile_id</name> | |
70 | <type>int unsigned</type> | |
71 | <comment>FK to civicrm_uf_group.id. Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?</comment> | |
72 | <default>NULL</default> | |
73 | <add>2.2</add> | |
74 | </field> | |
75 | <foreignKey> | |
76 | <name>supporter_profile_id</name> | |
77 | <table>civicrm_uf_group</table> | |
78 | <key>id</key> | |
79 | <add>3.1</add> | |
80 | <onDelete>SET NULL</onDelete> | |
81 | </foreignKey> | |
82 | <field> | |
83 | <name>is_approval_needed</name> | |
84 | <type>boolean</type> | |
85 | <comment>Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?</comment> | |
86 | <default>NULL</default> | |
87 | <add>2.2</add> | |
88 | </field> | |
89 | <field> | |
90 | <name>is_tellfriend_enabled</name> | |
91 | <type>boolean</type> | |
92 | <comment>Does Personal Campaign Page allow using tell a friend?</comment> | |
93 | <default>NULL</default> | |
94 | <add>2.2</add> | |
95 | </field> | |
96 | <field> | |
97 | <name>tellfriend_limit</name> | |
98 | <type>int unsigned</type> | |
99 | <default>NULL</default> | |
100 | <comment>Maximum recipient fields allowed in tell a friend</comment> | |
101 | <add>2.2</add> | |
102 | </field> | |
103 | <field> | |
104 | <name>link_text</name> | |
105 | <type>varchar</type> | |
106 | <length>255</length> | |
107 | <default>NULL</default> | |
108 | <localizable>true</localizable> | |
109 | <comment>Link text for PCP.</comment> | |
110 | <add>2.2</add> | |
111 | </field> | |
112 | <field> | |
113 | <name>is_active</name> | |
114 | <type>boolean</type> | |
115 | <comment>Is Personal Campaign Page Block enabled/active?</comment> | |
116 | <default>1</default> | |
117 | <add>2.2</add> | |
118 | </field> | |
119 | <field> | |
120 | <name>notify_email</name> | |
121 | <type>varchar</type> | |
122 | <length>255</length> | |
123 | <comment>If set, notification is automatically emailed to this email-address on create/update Personal Campaign Page</comment> | |
124 | <default>NULL</default> | |
125 | <add>2.2</add> | |
126 | </field> | |
127 | </table> |