Added cron task to remove expired chat tokens.
This commit is contained in:
parent
5c3747ecb6
commit
8f7a0feeed
1 changed files with 9 additions and 0 deletions
|
@ -176,6 +176,15 @@ if(MSZ_CLI) {
|
|||
WHERE `reset_requested` < NOW() - INTERVAL 1 WEEK
|
||||
",
|
||||
],
|
||||
[
|
||||
'name' => 'Remove old chat login tokens.',
|
||||
'type' => 'sql',
|
||||
'run' => true,
|
||||
'command' => "
|
||||
DELETE FROM `msz_user_chat_tokens`
|
||||
WHERE `token_created` < NOW() - INTERVAL 1 WEEK
|
||||
",
|
||||
],
|
||||
[
|
||||
'name' => 'Clean up login history.',
|
||||
'type' => 'sql',
|
||||
|
|
Loading…
Add table
Reference in a new issue