wp_cbt_course_enrollments

Static

Stores cbt course enrollments data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINT UNSIGNEDNO
user_idBIGINT UNSIGNEDNO
course_idBIGINT UNSIGNEDNO
enrolled_atDATETIMENO
statusVARCHAR(20)YES

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS wp_cbt_course_enrollments ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, user_id BIGINT UNSIGNED NOT NULL, course_id BIGINT UNSIGNED NOT NULL, enrolled_at DATETIME NOT NULL, status VARCHAR(20) DEFAULT 'active', PRIMARY KEY (id), UNIQUE KEY unique_enrollment (user_id, course_id), KEY user_id (user_id), KEY course_id (course_id) ) $charset_collate;"; dbDelta($enrollments);

Safe to delete?

If you have uninstalled Smitacs CBT Ujian, 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_cbt_course_enrollments`;

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

Other tables from Smitacs CBT Ujian