wp_emr_swap_requests

Static

Stores emr swap requests data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINT UNSIGNEDNO
requester_idBIGINT UNSIGNEDNO
requester_shift_idBIGINT UNSIGNEDNO
target_user_idBIGINT UNSIGNEDYES
reasonTEXTYES
statusVARCHAR(20)NO
reviewed_byBIGINT UNSIGNEDYES
reviewed_atDATETIMEYES
created_atDATETIMENO

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS wp_emr_swap_requests ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, requester_id BIGINT UNSIGNED NOT NULL, requester_shift_id BIGINT UNSIGNED NOT NULL, target_user_id BIGINT UNSIGNED DEFAULT NULL, reason TEXT DEFAULT NULL, status VARCHAR(20) NOT NULL DEFAULT 'pending', reviewed_by BIGINT UNSIGNED DEFAULT NULL, reviewed_at DATETIME DEFAULT NULL, created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY idx_requester (requester_id), KEY idx_status (status) ) $c;" );

Safe to delete?

If you have uninstalled EmpRoster, 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_emr_swap_requests`;

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

Other tables from EmpRoster