Commit c221bd04 authored by Erick Hitter's avatar Erick Hitter
Browse files

Add status to the unique key, otherwise unique constraint is too...constraining

When events are cleared with `wp_clear_scheduled_hook()`, they can't be rescheduled until the cleanup job runs.
parent 61597bc5
......@@ -100,7 +100,7 @@ class Events_Store extends Singleton {
`last_modified` datetime NOT NULL,
PRIMARY KEY (`ID`),
UNIQUE KEY `ts_action_instance` (`timestamp`, `action`, `instance`)
UNIQUE KEY `ts_action_instance` (`timestamp`, `action`, `instance`, `status`)
) ENGINE=InnoDB;\n";
dbDelta( $schema, true );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment