wp_emr_leave_balances

Static

Stores emr leave balances data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINT UNSIGNEDNO
user_idBIGINT UNSIGNEDNO
leave_typeVARCHAR(20)NO
yearSMALLINT UNSIGNEDNO
accruedDECIMAL(8,2)NO
usedDECIMAL(8,2)NO
adjustmentDECIMAL(8,2)NO
last_accrual_dateDATEYES
created_atDATETIMENO
updated_atDATETIMENO

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS wp_emr_leave_balances ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, user_id BIGINT UNSIGNED NOT NULL, leave_type VARCHAR(20) NOT NULL, year SMALLINT UNSIGNED NOT NULL, accrued DECIMAL(8,2) NOT NULL DEFAULT '0.00', used DECIMAL(8,2) NOT NULL DEFAULT '0.00', adjustment DECIMAL(8,2) NOT NULL DEFAULT '0.00', last_accrual_date DATE DEFAULT NULL, created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (id), UNIQUE KEY uq_user_type_year (user_id, leave_type, year), KEY idx_user (user_id) ) $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_leave_balances`;

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

Other tables from EmpRoster