On a vBulletin to XF conversion (where some of the vB tables may have been corrupted), a residual issue is that there are old unexpired vBulletin warning points left over. As a result, if some members get a 1-point warning via XF, it puts them over the threshold and temporarily bans them.
I need an SQL query to remove warning points prior to December 31, 2018.
Can anyone help with the query?
I have been doing this manually, for example:
but obviously this is time-consuming and cumbersome. I'd like a query to find ALL warning points prior to December 31, 2018 and delete those points.
I need an SQL query to remove warning points prior to December 31, 2018.
Can anyone help with the query?
I have been doing this manually, for example:
Code:
SELECT * FROM `xf_user` WHERE `username` = "{membername}";
UPDATE `xf_user` SET `warning_points` = '3' WHERE `xf_user`.`user_id` = {12345};
but obviously this is time-consuming and cumbersome. I'd like a query to find ALL warning points prior to December 31, 2018 and delete those points.