wp_ec_invoice

Static

Stores ec invoice data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑invoice_idint(11)NO
order_idint(11)NO
invoice_typevarchar(20)NO
invoice_numbervarchar(64)NO
sequence_numberint(11)NO
sequence_yearint(11)NO
issue_datedatetimeYES
payment_termsvarchar(64)NO
due_datedatetimeYES
amountfloat(15,3)NO
parent_invoice_idint(11)NO
refund_refvarchar(100)NO
snapshotlongtextYES
created_bybigint(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