Created
January 6, 2020 15:40
-
-
Save jonpugh/a0464af7aca1e69afa41372500669d8f to your computer and use it in GitHub Desktop.
Aegir Hosting Task Logs Cleanup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Delete all hosting_task_logs from all sites that are deleted. | |
DELETE htl.* FROM hosting_task_log htl LEFT JOIN hosting_task ht ON htl.vid = ht.vid LEFT JOIN hosting_site hs ON ht.rid = hs.nid WHERE hs.status = -2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment