Added rule to remove stale forum tracking rows.
This commit is contained in:
parent
32ac6816f7
commit
f01eaf87c0
1 changed files with 8 additions and 0 deletions
|
@ -150,6 +150,14 @@ if (PHP_SAPI === 'cli') {
|
|||
DELETE FROM `msz_audit_log`
|
||||
WHERE `log_created` < NOW() - INTERVAL 1 YEAR
|
||||
');
|
||||
|
||||
// Delete ignored forum tracking entries
|
||||
db_exec('
|
||||
DELETE tt FROM `msz_forum_topics_track` as tt
|
||||
LEFT JOIN `msz_forum_topics` as t
|
||||
ON t.`topic_id` = tt.`topic_id`
|
||||
WHERE t.`topic_bumped` < NOW() - INTERVAL 1 MONTH
|
||||
');
|
||||
break;
|
||||
|
||||
case 'migrate':
|
||||
|
|
Loading…
Add table
Reference in a new issue