wp_emr_shifts
StaticStores emr shifts data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT UNSIGNED | NO |
| title | VARCHAR(200) | NO |
| start_datetime | DATETIME | NO |
| end_datetime | DATETIME | NO |
| location | VARCHAR(200) | NO |
| department | VARCHAR(120) | NO |
| assignment_type | VARCHAR(20) | NO |
| break_minutes | SMALLINT UNSIGNED | NO |
| color | VARCHAR(20) | NO |
| slot_limit | SMALLINT UNSIGNED | YES |
| notes | TEXT | YES |
| attachment_id | BIGINT UNSIGNED | YES |
| status | VARCHAR(20) | NO |
| created_by | BIGINT UNSIGNED | NO |
| created_at | DATETIME | NO |
| updated_at | DATETIME | NO |
CREATE TABLE Statement
CREATE TABLE IF NOT EXISTS wp_emr_shifts ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, title VARCHAR(200) NOT NULL DEFAULT '', start_datetime DATETIME NOT NULL, end_datetime DATETIME NOT NULL, location VARCHAR(200) NOT NULL DEFAULT '', department VARCHAR(120) NOT NULL DEFAULT '', assignment_type VARCHAR(20) NOT NULL DEFAULT 'direct', break_minutes SMALLINT UNSIGNED NOT NULL DEFAULT 30, color VARCHAR(20) NOT NULL DEFAULT '#2563EB', slot_limit SMALLINT UNSIGNED DEFAULT NULL, notes TEXT DEFAULT NULL, attachment_id BIGINT UNSIGNED DEFAULT NULL, status VARCHAR(20) NOT NULL DEFAULT 'published', created_by BIGINT UNSIGNED NOT NULL DEFAULT 0, created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY idx_start (start_datetime), 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_shifts`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from EmpRoster