wp_batchpilot_operations

Static

Stores batchpilot operations data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINT UNSIGNEDNO
typeVARCHAR(64)NO
targetVARCHAR(64)NO
user_idBIGINT UNSIGNEDNO
filters_jsonLONGTEXTYES
params_jsonLONGTEXTYES
queued_ids_jsonLONGTEXTYES
affected_countINT UNSIGNEDNO
affected_ids_jsonLONGTEXTYES
statusVARCHAR(32)NO
error_messageTEXTYES
created_atDATETIMENO
completed_atDATETIMEYES
operation_idBIGINT UNSIGNEDNO
object_typeVARCHAR(64)NO
object_idBIGINT UNSIGNEDNO
fieldVARCHAR(64)NO
old_valueLONGTEXTYES
nameVARCHAR(255)NO
operation_typeVARCHAR(64)NO
target_typeVARCHAR(64)NO
filters_jsonLONGTEXTYES
params_jsonLONGTEXTYES
recurrence_jsonLONGTEXTYES
action_scheduler_idBIGINT UNSIGNEDYES
enabledTINYINT(1)NO
last_run_atDATETIMEYES
next_run_atDATETIMEYES
created_atDATETIMENO
updated_atDATETIMENO

CREATE TABLE Statement

CREATE TABLE wp_batchpilot_operations ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, type VARCHAR(64) NOT NULL, target VARCHAR(64) NOT NULL, user_id BIGINT UNSIGNED NOT NULL DEFAULT 0, filters_json LONGTEXT NULL, params_json LONGTEXT NULL, queued_ids_json LONGTEXT NULL, affected_count INT UNSIGNED NOT NULL DEFAULT 0, affected_ids_json LONGTEXT NULL, status VARCHAR(32) NOT NULL DEFAULT 'pending', error_message TEXT NULL, created_at DATETIME NOT NULL, completed_at DATETIME NULL, PRIMARY KEY (id), KEY user_created (user_id, created_at), KEY status (status) ) {$charset_collate};"; $snapshots = "CREATE TABLE wp_batchpilot_snapshots ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, operation_id BIGINT UNSIGNED NOT NULL, object_type VARCHAR(64) NOT NULL, object_id BIGINT UNSIGNED NOT NULL, field VARCHAR(64) NOT NULL, old_value LONGTEXT NULL, PRIMARY KEY (id), KEY operation_id (operation_id), KEY object (object_type, object_id) ) {$charset_collate};"; $schedules = "CREATE TABLE wp_batchpilot_schedules ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, operation_type VARCHAR(64) NOT NULL, target_type VARCHAR(64) NOT NULL, filters_json LONGTEXT NULL, params_json LONGTEXT NULL, recurrence_json LONGTEXT NULL, action_scheduler_id BIGINT UNSIGNED NULL, enabled TINYINT(1) NOT NULL DEFAULT 1, last_run_at DATETIME NULL, next_run_at DATETIME NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY (id), KEY enabled_next_run (enabled, next_run_at) ) {$charset_collate};"; dbDelta( $operations );

Safe to delete?

If you have uninstalled BatchPilot, 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_batchpilot_operations`;

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

Other tables from BatchPilot