wp_batchpilot_operations
StaticStores batchpilot operations data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT UNSIGNED | NO |
| type | VARCHAR(64) | NO |
| target | VARCHAR(64) | NO |
| user_id | BIGINT UNSIGNED | NO |
| filters_json | LONGTEXT | YES |
| params_json | LONGTEXT | YES |
| queued_ids_json | LONGTEXT | YES |
| affected_count | INT UNSIGNED | NO |
| affected_ids_json | LONGTEXT | YES |
| status | VARCHAR(32) | NO |
| error_message | TEXT | YES |
| created_at | DATETIME | NO |
| completed_at | DATETIME | YES |
| operation_id | BIGINT UNSIGNED | NO |
| object_type | VARCHAR(64) | NO |
| object_id | BIGINT UNSIGNED | NO |
| field | VARCHAR(64) | NO |
| old_value | LONGTEXT | YES |
| name | VARCHAR(255) | NO |
| operation_type | VARCHAR(64) | NO |
| target_type | VARCHAR(64) | NO |
| filters_json | LONGTEXT | YES |
| params_json | LONGTEXT | YES |
| recurrence_json | LONGTEXT | YES |
| action_scheduler_id | BIGINT UNSIGNED | YES |
| enabled | TINYINT(1) | NO |
| last_run_at | DATETIME | YES |
| next_run_at | DATETIME | YES |
| created_at | DATETIME | NO |
| updated_at | DATETIME | NO |
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