-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Reset Stream Database" doesn't clear everything #347
Comments
What does |
@powelski It is used by other extensions, similar to a "post type", such as So we don't want to delete that data, only the |
@powelski So I think the solution here will just be to add another $wpdb->query( "DELETE from {$wpdb->stream} WHERE type = 'stream'" ); So we first delete stream rows with the contexts/meta tied to them, then go back through and do a cleanup in case there were any rows left that weren't tied to those other tables. |
@fjarrett |
In some way, I got empty records that can't be deleted with
Reset Stream Database
option. I figured out that it doesINNER JOIN
onstream_context
andstream_meta
tables, so if there are no relations in either of those, this record is being skipped. It should be changed, because custom connectors might save logs without meta.The text was updated successfully, but these errors were encountered: