Fixes #5490 log table deletion works now