mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-28 17:38:54 +01:00
Fix pgsql compatibility on delete_old_messages (#1137)
This commit is contained in:
parent
c928956d73
commit
2efa8677c9
@ -80,8 +80,8 @@ remove_old_messages(Days, LServer) ->
|
|||||||
LServer,
|
LServer,
|
||||||
[<<"DELETE FROM spool"
|
[<<"DELETE FROM spool"
|
||||||
" WHERE created_at < "
|
" WHERE created_at < "
|
||||||
"DATE_SUB(CURDATE(), INTERVAL ">>,
|
"NOW() - INTERVAL '">>,
|
||||||
integer_to_list(Days), <<" DAY);">>]) of
|
integer_to_list(Days), <<"';">>]) of
|
||||||
{updated, N} ->
|
{updated, N} ->
|
||||||
?INFO_MSG("~p message(s) deleted from offline spool", [N]);
|
?INFO_MSG("~p message(s) deleted from offline spool", [N]);
|
||||||
_Error ->
|
_Error ->
|
||||||
|
Loading…
Reference in New Issue
Block a user