wp_eerb_promo_codes

Static

Stores eerb promo codes data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idINT UNSIGNEDNO
codeVARCHAR(50)NO
descriptionVARCHAR(255)YES
discount_percentTINYINT UNSIGNEDNO
valid_fromDATEYES
valid_toDATEYES
max_usesSMALLINT UNSIGNEDYES
use_countSMALLINT UNSIGNEDNO
is_activeTINYINT(1)NO
created_atDATETIMENO

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS wp_eerb_promo_codes ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, code VARCHAR(50) NOT NULL, description VARCHAR(255), discount_percent TINYINT UNSIGNED NOT NULL DEFAULT 10 COMMENT 'e.g. 10 = 10% off', valid_from DATE, valid_to DATE, max_uses SMALLINT UNSIGNED COMMENT 'NULL = unlimited', use_count SMALLINT UNSIGNED NOT NULL DEFAULT 0, is_active TINYINT(1) NOT NULL DEFAULT 1, created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), UNIQUE KEY code (code) ) $charset;" );

Safe to delete?

If you have uninstalled Ettrick Escape Room Booking, 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_eerb_promo_codes`;

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

Other tables from Ettrick Escape Room Booking