wp_cheerful_gift_campaigns

Static

Stores cheerful gift campaigns data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idbigint(20) unsignedNO
titlevarchar(255)NO
slugvarchar(200)NO
goal_amountbigint(20) unsignedYES
deadlinedateYES
statusvarchar(20)NO
preset_amountslongtextYES
preset_labelslongtextYES
preset_populartinyint unsignedNO
preset_amounts_monthlylongtextYES
preset_labels_monthlylongtextYES
preset_popular_monthlytinyint unsignedNO
show_fees_checkboxtinyint(1)NO
show_feed_checkboxtinyint(1)NO
show_privacy_checkboxtinyint(1)NO
show_terms_checkboxtinyint(1)NO
paidtinyint(1)NO
created_atdatetimeNO
campaign_idbigint(20) unsignedNO
donor_first_namevarchar(100)NO
donor_last_namevarchar(100)NO
donor_emailvarchar(255)NO
donor_cityvarchar(100)NO
amountbigint(20) unsignedNO
gift_amountbigint(20) unsignedNO
amount_chargedbigint(20) unsignedNO
platform_feebigint(20) unsignedNO
stripe_feebigint(20) unsignedNO
fee_estimatedtinyint(1)NO
net_amountbigint(20) unsignedNO
frequencyvarchar(20)NO
fees_coveredtinyint(1)NO
gift_aidtinyint(1)NO
gift_aid_first_namevarchar(100)NO
gift_aid_last_namevarchar(100)NO
gift_aid_address1varchar(255)NO
gift_aid_address2varchar(255)NO
gift_aid_cityvarchar(100)NO
gift_aid_postcodevarchar(20)NO
show_in_feedtinyint(1)NO
mailing_listtinyint(1)NO
livemodetinyint(1)NO
gdpr_consenttinyint(1)NO
privacy_consenttinyint(1)NO
terms_consenttinyint(1)NO
stripe_idvarchar(255)YES
stripe_customer_idvarchar(255)NO
stripe_subscription_idvarchar(255)NO
stripe_balance_txn_idvarchar(255)NO
stripe_payout_idvarchar(255)NO
card_brandvarchar(20)NO
card_last4varchar(4)NO
cancellation_reasonvarchar(255)NO
refunded_amountbigint(20) unsignedNO
tip_refundedbigint(20) unsignedNO
refunded_atdatetimeYES
dispute_statusvarchar(20)NO
dispute_reasonvarchar(64)NO
disputed_atdatetimeYES
statusvarchar(50)NO
anonymisedtinyint(1)NO
supporter_messagetextYES
supporter_avatarbigint(20) unsignedNO
created_atdatetimeNO
user_idbigint(20) unsignedNO
user_loginvarchar(120)NO
actionvarchar(60)NO
detailvarchar(255)NO
ipvarchar(45)NO
created_atdatetimeNO

CREATE TABLE Statement

CREATE TABLE wp_cheerful_gift_campaigns ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, title varchar(255) NOT NULL DEFAULT '', slug varchar(200) NOT NULL DEFAULT '', goal_amount bigint(20) unsigned DEFAULT NULL, deadline date DEFAULT NULL, status varchar(20) NOT NULL DEFAULT 'active', preset_amounts longtext DEFAULT NULL, preset_labels longtext DEFAULT NULL, preset_popular tinyint unsigned NOT NULL DEFAULT 1, preset_amounts_monthly longtext DEFAULT NULL, preset_labels_monthly longtext DEFAULT NULL, preset_popular_monthly tinyint unsigned NOT NULL DEFAULT 1, show_fees_checkbox tinyint(1) NOT NULL DEFAULT 1, show_feed_checkbox tinyint(1) NOT NULL DEFAULT 0, show_privacy_checkbox tinyint(1) NOT NULL DEFAULT 1, show_terms_checkbox tinyint(1) NOT NULL DEFAULT 1, paid tinyint(1) NOT NULL DEFAULT 0, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), UNIQUE KEY slug (slug) ) $charset_collate;"; $donations = "CREATE TABLE wp_cheerful_gift_donations ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, campaign_id bigint(20) unsigned NOT NULL DEFAULT 1, donor_first_name varchar(100) NOT NULL DEFAULT '', donor_last_name varchar(100) NOT NULL DEFAULT '', donor_email varchar(255) NOT NULL DEFAULT '', donor_city varchar(100) NOT NULL DEFAULT '', amount bigint(20) unsigned NOT NULL DEFAULT 0, gift_amount bigint(20) unsigned NOT NULL DEFAULT 0, amount_charged bigint(20) unsigned NOT NULL DEFAULT 0, platform_fee bigint(20) unsigned NOT NULL DEFAULT 0, stripe_fee bigint(20) unsigned NOT NULL DEFAULT 0, fee_estimated tinyint(1) NOT NULL DEFAULT 0, net_amount bigint(20) unsigned NOT NULL DEFAULT 0, frequency varchar(20) NOT NULL DEFAULT 'one-off', fees_covered tinyint(1) NOT NULL DEFAULT 0, gift_aid tinyint(1) NOT NULL DEFAULT 0, gift_aid_first_name varchar(100) NOT NULL DEFAULT '', gift_aid_last_name varchar(100) NOT NULL DEFAULT '', gift_aid_address1 varchar(255) NOT NULL DEFAULT '', gift_aid_address2 varchar(255) NOT NULL DEFAULT '', gift_aid_city varchar(100) NOT NULL DEFAULT '', gift_aid_postcode varchar(20) NOT NULL DEFAULT '', show_in_feed tinyint(1) NOT NULL DEFAULT 1, mailing_list tinyint(1) NOT NULL DEFAULT 0, livemode tinyint(1) NOT NULL DEFAULT 1, gdpr_consent tinyint(1) NOT NULL DEFAULT 0, privacy_consent tinyint(1) NOT NULL DEFAULT 0, terms_consent tinyint(1) NOT NULL DEFAULT 0, stripe_id varchar(255) DEFAULT NULL, stripe_customer_id varchar(255) NOT NULL DEFAULT '', stripe_subscription_id varchar(255) NOT NULL DEFAULT '', stripe_balance_txn_id varchar(255) NOT NULL DEFAULT '', stripe_payout_id varchar(255) NOT NULL DEFAULT '', card_brand varchar(20) NOT NULL DEFAULT '', card_last4 varchar(4) NOT NULL DEFAULT '', cancellation_reason varchar(255) NOT NULL DEFAULT '', refunded_amount bigint(20) unsigned NOT NULL DEFAULT 0, tip_refunded bigint(20) unsigned NOT NULL DEFAULT 0, refunded_at datetime DEFAULT NULL, dispute_status varchar(20) NOT NULL DEFAULT '', dispute_reason varchar(64) NOT NULL DEFAULT '', disputed_at datetime DEFAULT NULL, status varchar(50) NOT NULL DEFAULT 'pending', anonymised tinyint(1) NOT NULL DEFAULT 0, supporter_message text NULL, supporter_avatar bigint(20) unsigned NOT NULL DEFAULT 0, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY campaign_id (campaign_id), KEY donor_email (donor_email), KEY status (status), KEY created_at (created_at), UNIQUE KEY stripe_id (stripe_id), KEY stripe_subscription_id (stripe_subscription_id), KEY stripe_balance_txn_id (stripe_balance_txn_id) ) $charset_collate;"; $audit = "CREATE TABLE wp_cheerful_gift_audit_log ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, user_id bigint(20) unsigned NOT NULL DEFAULT 0, user_login varchar(120) NOT NULL DEFAULT '', action varchar(60) NOT NULL DEFAULT '', detail varchar(255) NOT NULL DEFAULT '', ip varchar(45) NOT NULL DEFAULT '', created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY action (action), KEY created_at (created_at) ) $charset_collate;"; dbDelta( $campaigns );

Safe to delete?

If you have uninstalled Cheerful Give, this table is generally safe to remove. However, always back up your database first.

Note: Some plugins share tables or are dependencies of other plugins. Verify nothing else depends on this table before dropping it.

How to remove this table

DROP TABLE IF EXISTS `wp_cheerful_gift_campaigns`;

Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.

Other tables from Cheerful Give