wp_donorcore_donation_logs
StaticA logging table that records activity, events, or audit history.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT(20) UNSIGNED | NO |
| order_id | BIGINT(20) UNSIGNED | NO |
| campaign_id | BIGINT(20) UNSIGNED | YES |
| donor_id | BIGINT(20) UNSIGNED | YES |
| amount | DECIMAL(18,2) | NO |
| currency | CHAR(3) | NO |
| type | VARCHAR(20) | NO |
| gateway | VARCHAR(50) | NO |
| created_at | DATETIME | NO |
CREATE TABLE Statement
CREATE TABLE wp_donorcore_donation_logs ( id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, order_id BIGINT(20) UNSIGNED NOT NULL, campaign_id BIGINT(20) UNSIGNED DEFAULT 0, donor_id BIGINT(20) UNSIGNED DEFAULT 0, amount DECIMAL(18,2) NOT NULL, currency CHAR(3) NOT NULL DEFAULT 'USD', type VARCHAR(20) NOT NULL DEFAULT 'one-time', gateway VARCHAR(50) NOT NULL DEFAULT 'unknown', created_at DATETIME NOT NULL, PRIMARY KEY (id), KEY order_id (order_id), KEY campaign_id (campaign_id), KEY donor_id (donor_id), KEY type (type), KEY created_at (created_at) ) $charset_collate;"; dbDelta( $sql_logs );
Safe to delete?
If you have uninstalled DonorCore – Donations for WooCommerce, 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_donorcore_donation_logs`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from DonorCore – Donations for WooCommerce