wp_emr_shifts

Static

Stores emr shifts data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINT UNSIGNEDNO
titleVARCHAR(200)NO
start_datetimeDATETIMENO
end_datetimeDATETIMENO
locationVARCHAR(200)NO
departmentVARCHAR(120)NO
assignment_typeVARCHAR(20)NO
break_minutesSMALLINT UNSIGNEDNO
colorVARCHAR(20)NO
slot_limitSMALLINT UNSIGNEDYES
notesTEXTYES
attachment_idBIGINT UNSIGNEDYES
statusVARCHAR(20)NO
created_byBIGINT UNSIGNEDNO
created_atDATETIMENO
updated_atDATETIMENO

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