wp_lhdn_myinvoice

Static

Stores lhdn myinvoice data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINTYES
invoice_noVARCHAR(100)YES
order_idBIGINTYES
uuidVARCHAR(100)YES
longidVARCHAR(100)YES
item_classVARCHAR(100)YES
document_hashCHAR(64)YES
payloadLONGTEXTYES
statusVARCHAR(30)YES
codeVARCHAR(30)YES
responseLONGTEXTYES
retry_countINTYES
queue_statusVARCHAR(50)YES
queue_dateDATETIMEYES
refund_completeTINYINT(1)YES
created_atDATETIMEYES
updated_atDATETIMEYES

CREATE TABLE Statement

CREATE TABLE wp_lhdn_myinvoice ( id BIGINT AUTO_INCREMENT PRIMARY KEY, invoice_no VARCHAR(100) UNIQUE, order_id BIGINT, uuid VARCHAR(100), longid VARCHAR(100), item_class VARCHAR(100), document_hash CHAR(64), payload LONGTEXT, status VARCHAR(30), code VARCHAR(30), response LONGTEXT, retry_count INT DEFAULT 0, queue_status VARCHAR(50), queue_date DATETIME, refund_complete TINYINT(1) DEFAULT 0, created_at DATETIME, updated_at DATETIME, KEY idx_uuid (uuid), KEY idx_status_code (status, code), KEY idx_retry (retry_count), KEY idx_updated (updated_at), KEY idx_queue_status (queue_status) ) {$charset}; ");

Safe to delete?

If you have uninstalled MyInvoice Sync, 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_lhdn_myinvoice`;

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

Other tables from MyInvoice Sync