wp_erm_order_items

Static

Stores order records and related transaction data.

Column Definitions

ColumnTypeNullable
🔑idINTYES
order_idINTNO
menu_item_idINTNO
quantityINTNO
priceDECIMAL(10,2)NO
selected_sizeVARCHAR(50)YES
selected_addonsJSONYES
special_instructionsTEXTYES
created_atDATETIMEYES
updated_atTIMESTAMPYES

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS `wp_erm_order_items` ( id INT PRIMARY KEY AUTO_INCREMENT, order_id INT NOT NULL, menu_item_id INT NOT NULL, quantity INT NOT NULL, price DECIMAL(10,2) NOT NULL, selected_size VARCHAR(50), selected_addons JSON DEFAULT NULL, special_instructions TEXT DEFAULT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) $charset_collate;"; dbDelta($sql);

Safe to delete?

If you have uninstalled Easy Restaurant Manager, 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_erm_order_items`;

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

Other tables from Easy Restaurant Manager