wp_emr_leave_balances
StaticStores emr leave balances data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT UNSIGNED | NO |
| user_id | BIGINT UNSIGNED | NO |
| leave_type | VARCHAR(20) | NO |
| year | SMALLINT UNSIGNED | NO |
| accrued | DECIMAL(8,2) | NO |
| used | DECIMAL(8,2) | NO |
| adjustment | DECIMAL(8,2) | NO |
| last_accrual_date | DATE | YES |
| created_at | DATETIME | NO |
| updated_at | DATETIME | NO |
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