wp_ec_offer_code
StaticStores ec offer code data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑offer_code_id | int(11) | NO |
| offer_id | int(11) | NO |
| code | varchar($max_index_length) | NO |
| max_redemptions | int(11) | NO |
| times_redeemed | int(11) | NO |
| assigned_email | varchar(255) | NO |
| is_active | tinyint(1) | NO |
| created_date | timestamp | YES |
CREATE TABLE Statement
CREATE TABLE IF NOT EXISTS ec_offer_code ( offer_code_id int(11) NOT NULL AUTO_INCREMENT, offer_id int(11) NOT NULL DEFAULT '0', code varchar($max_index_length) NOT NULL DEFAULT '', max_redemptions int(11) NOT NULL DEFAULT '0', times_redeemed int(11) NOT NULL DEFAULT '0', assigned_email varchar(255) NOT NULL DEFAULT '', is_active tinyint(1) NOT NULL DEFAULT '1', created_date timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (offer_code_id), UNIQUE KEY offer_code_code (code), KEY offer_code_offer_id (offer_id) ) $collate;" );
Safe to delete?
If you have uninstalled WP EasyCart: Shopping Cart and eCommerce Store, 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_ec_offer_code`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from WP EasyCart: Shopping Cart and eCommerce Store