wp_audit_trail

Static

Stores audit trail data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idint(11)NO
operationvarchar(40)NO
user_idint(11)NO
ipint(11) unsignedNO
happened_atdatetimeNO
item_idint(11)YES
datalongtextYES
titlevarchar(100)YES

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS `wp_audit_trail`( `id` int(11) NOT NULL auto_increment, `operation` varchar(40) NOT NULL default '', `user_id` int(11) NOT NULL, `ip` int(11) unsigned NOT NULL default '0', `happened_at` datetime NOT NULL, `item_id` int(11) default NULL, `data` longtext, `title` varchar(100) default NULL, PRIMARY KEY ( `id`) )");

Safe to delete?

If you have uninstalled Audit Trail, 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_audit_trail`;

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