| 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
| 2 | |
| 3 | <table> |
| 4 | <base>CRM/PCP</base> |
| 5 | <class>PCP</class> |
| 6 | <name>civicrm_pcp</name> |
| 7 | <add>2.2</add> |
| 8 | <log>true</log> |
| 9 | <field> |
| 10 | <name>id</name> |
| 11 | <uniqueName>pcp_id</uniqueName> |
| 12 | <type>int unsigned</type> |
| 13 | <required>true</required> |
| 14 | <title>Personal Campaign Page ID</title> |
| 15 | <comment>Personal Campaign Page ID</comment> |
| 16 | <add>2.2</add> |
| 17 | </field> |
| 18 | <primaryKey> |
| 19 | <name>id</name> |
| 20 | <autoincrement>true</autoincrement> |
| 21 | </primaryKey> |
| 22 | <field> |
| 23 | <name>contact_id</name> |
| 24 | <uniqueName>pcp_contact_id</uniqueName> |
| 25 | <title>Contact ID</title> |
| 26 | <type>int unsigned</type> |
| 27 | <required>true</required> |
| 28 | <comment>FK to Contact ID</comment> |
| 29 | <add>2.2</add> |
| 30 | <html> |
| 31 | <type>Autocomplete-Select</type> |
| 32 | </html> |
| 33 | </field> |
| 34 | <foreignKey> |
| 35 | <name>contact_id</name> |
| 36 | <table>civicrm_contact</table> |
| 37 | <key>id</key> |
| 38 | <add>2.2</add> |
| 39 | <onDelete>CASCADE</onDelete> |
| 40 | </foreignKey> |
| 41 | <field> |
| 42 | <name>status_id</name> |
| 43 | <title>Personal Campaign Page Status</title> |
| 44 | <required>true</required> |
| 45 | <type>int unsigned</type> |
| 46 | <add>2.2</add> |
| 47 | <pseudoconstant> |
| 48 | <optionGroupName>pcp_status</optionGroupName> |
| 49 | </pseudoconstant> |
| 50 | <html> |
| 51 | <type>Select</type> |
| 52 | </html> |
| 53 | </field> |
| 54 | <field> |
| 55 | <name>title</name> |
| 56 | <title>Personal Campaign Page Title</title> |
| 57 | <type>varchar</type> |
| 58 | <length>255</length> |
| 59 | <default>NULL</default> |
| 60 | <add>2.2</add> |
| 61 | <html> |
| 62 | <type>Text</type> |
| 63 | </html> |
| 64 | </field> |
| 65 | <field> |
| 66 | <name>intro_text</name> |
| 67 | <type>text</type> |
| 68 | <default>NULL</default> |
| 69 | <add>2.2</add> |
| 70 | <html> |
| 71 | <type>TexArea</type> |
| 72 | </html> |
| 73 | </field> |
| 74 | <field> |
| 75 | <name>page_text</name> |
| 76 | <type>text</type> |
| 77 | <default>NULL</default> |
| 78 | <add>2.2</add> |
| 79 | <html> |
| 80 | <type>TexArea</type> |
| 81 | </html> |
| 82 | </field> |
| 83 | <field> |
| 84 | <name>donate_link_text</name> |
| 85 | <type>varchar</type> |
| 86 | <length>255</length> |
| 87 | <default>NULL</default> |
| 88 | <add>2.2</add> |
| 89 | <html> |
| 90 | <type>Text</type> |
| 91 | </html> |
| 92 | </field> |
| 93 | <field> |
| 94 | <name>contribution_page_id</name> |
| 95 | <type>int unsigned</type> |
| 96 | <required>true</required> |
| 97 | <comment>The Contribution Page which triggered this pcp</comment> |
| 98 | <add>2.2</add> |
| 99 | <drop>4.1</drop> |
| 100 | </field> |
| 101 | <foreignKey> |
| 102 | <name>contribution_page_id</name> |
| 103 | <table>civicrm_contribution_page</table> |
| 104 | <key>id</key> |
| 105 | <drop>4.1</drop> |
| 106 | </foreignKey> |
| 107 | <field> |
| 108 | <name>page_id</name> |
| 109 | <type>int unsigned</type> |
| 110 | <required>true</required> |
| 111 | <comment>The Contribution or Event Page which triggered this pcp</comment> |
| 112 | <add>4.1</add> |
| 113 | </field> |
| 114 | <field> |
| 115 | <name>page_type</name> |
| 116 | <title>PCP Page Type</title> |
| 117 | <comment>The type of PCP this is: contribute or event</comment> |
| 118 | <type>varchar</type> |
| 119 | <length>64</length> |
| 120 | <default>'contribute'</default> |
| 121 | <html> |
| 122 | <type>Select</type> |
| 123 | </html> |
| 124 | <add>2.2</add> |
| 125 | </field> |
| 126 | <field> |
| 127 | <name>pcp_block_id</name> |
| 128 | <comment>The pcp block that this pcp page was created from</comment> |
| 129 | <type>int unsigned</type> |
| 130 | <required>true</required> |
| 131 | <add>4.1</add> |
| 132 | </field> |
| 133 | <field> |
| 134 | <name>is_thermometer</name> |
| 135 | <type>int unsigned</type> |
| 136 | <default>0</default> |
| 137 | <html> |
| 138 | <type>CheckBox</type> |
| 139 | </html> |
| 140 | <add>2.2</add> |
| 141 | </field> |
| 142 | <field> |
| 143 | <name>is_honor_roll</name> |
| 144 | <type>int unsigned</type> |
| 145 | <default>0</default> |
| 146 | <add>2.2</add> |
| 147 | <html> |
| 148 | <type>CheckBox</type> |
| 149 | </html> |
| 150 | </field> |
| 151 | <field> |
| 152 | <name>goal_amount</name> |
| 153 | <type>decimal</type> |
| 154 | <comment>Goal amount of this Personal Campaign Page.</comment> |
| 155 | <add>2.2</add> |
| 156 | <html> |
| 157 | <type>Text</type> |
| 158 | </html> |
| 159 | </field> |
| 160 | <field> |
| 161 | <name>currency</name> |
| 162 | <type>varchar</type> |
| 163 | <length>3</length> |
| 164 | <default>NULL</default> |
| 165 | <comment>3 character string, value from config setting or input via user.</comment> |
| 166 | <add>3.2</add> |
| 167 | <pseudoconstant> |
| 168 | <table>civicrm_currency</table> |
| 169 | <keyColumn>name</keyColumn> |
| 170 | <labelColumn>full_name</labelColumn> |
| 171 | <nameColumn>numeric_code</nameColumn> |
| 172 | </pseudoconstant> |
| 173 | <html> |
| 174 | <type>Select</type> |
| 175 | </html> |
| 176 | </field> |
| 177 | <field> |
| 178 | <name>referer</name> |
| 179 | <type>varchar</type> |
| 180 | <length>255</length> |
| 181 | <default>NULL</default> |
| 182 | <add>2.2</add> |
| 183 | <drop>4.1</drop> |
| 184 | </field> |
| 185 | <field> |
| 186 | <name>is_active</name> |
| 187 | <type>boolean</type> |
| 188 | <comment>Is Personal Campaign Page enabled/active?</comment> |
| 189 | <default>0</default> |
| 190 | <add>2.2</add> |
| 191 | <html> |
| 192 | <type>CheckBox</type> |
| 193 | </html> |
| 194 | </field> |
| 195 | <field> |
| 196 | <name>is_notify</name> |
| 197 | <type>boolean</type> |
| 198 | <comment>Notify owner via email when someone donates to page?</comment> |
| 199 | <default>0</default> |
| 200 | <add>4.6</add> |
| 201 | <html> |
| 202 | <type>CheckBox</type> |
| 203 | </html> |
| 204 | </field> |
| 205 | </table> |