diff options
author | Kim Alvefur <zash@zash.se> | 2017-10-05 17:44:47 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-10-05 17:44:47 +0200 |
commit | 621ee7226fc62b872cb6b74797b97ee509d620c8 (patch) | |
tree | 9b822604cd6346fcf8942e0af609127bb69eba21 /plugins | |
parent | 5dcdfde22813291c305220bbd3b122e3be664ed0 (diff) | |
download | prosody-621ee7226fc62b872cb6b74797b97ee509d620c8.tar.gz prosody-621ee7226fc62b872cb6b74797b97ee509d620c8.zip |
mod_storage_sql: Also clear the prosodyarchive table when an user is deleted (fixes #1009)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_storage_sql.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index edbfd5e4..c729c66a 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -416,6 +416,7 @@ end function driver:purge(username) return engine:transaction(function() engine:delete("DELETE FROM \"prosody\" WHERE \"host\"=? AND \"user\"=?", host, username); + engine:delete("DELETE FROM \"prosodyarchive\" WHERE \"host\"=? AND \"user\"=?", host, username); end); end |