wp_erm_coupons

Static

Stores erm coupons data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idINTYES
nameVARCHAR(50)NO
codeVARCHAR(50)NO
discount_typeENUM('percentage', 'fixed')NO
discount_valueDECIMAL(10,2)NO
added_dateDATENO
expiration_dateDATENO
statusVARCHAR(50)NO
created_atDATETIMEYES
updated_atTIMESTAMPYES

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS `wp_erm_coupons` ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(50) NOT NULL, code VARCHAR(50) UNIQUE NOT NULL, discount_type ENUM('percentage', 'fixed') NOT NULL, discount_value DECIMAL(10,2) NOT NULL, added_date DATE NOT NULL, expiration_date DATE NOT NULL, status VARCHAR(50) NOT 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_coupons`;

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

Other tables from Easy Restaurant Manager