wp_ec_invoice
StaticStores ec invoice data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑invoice_id | int(11) | NO |
| order_id | int(11) | NO |
| invoice_type | varchar(20) | NO |
| invoice_number | varchar(64) | NO |
| sequence_number | int(11) | NO |
| sequence_year | int(11) | NO |
| issue_date | datetime | YES |
| payment_terms | varchar(64) | NO |
| due_date | datetime | YES |
| amount | float(15,3) | NO |
| parent_invoice_id | int(11) | NO |
| refund_ref | varchar(100) | NO |
| snapshot | longtext | YES |
| created_by | bigint(20) | NO |
CREATE TABLE Statement
CREATE TABLE IF NOT EXISTS ec_invoice ( invoice_id int(11) NOT NULL AUTO_INCREMENT, order_id int(11) NOT NULL DEFAULT '0', invoice_type varchar(20) NOT NULL DEFAULT 'invoice', invoice_number varchar(64) NOT NULL DEFAULT '', sequence_number int(11) NOT NULL DEFAULT '0', sequence_year int(11) NOT NULL DEFAULT '0', issue_date datetime DEFAULT NULL, payment_terms varchar(64) NOT NULL DEFAULT '', due_date datetime DEFAULT NULL, amount float(15,3) NOT NULL DEFAULT '0.000', parent_invoice_id int(11) NOT NULL DEFAULT '0', refund_ref varchar(100) NOT NULL DEFAULT '', snapshot longtext, created_by bigint(20) NOT NULL DEFAULT '0', PRIMARY KEY (invoice_id), KEY order_id (order_id), UNIQUE KEY invoice_type_number (invoice_type,invoice_number), KEY issue_date (issue_date) ) $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_invoice`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from WP EasyCart: Shopping Cart and eCommerce Store