SQL script to erase old deleted posts and files (should be in prev. ↓ commit)

This commit is contained in:
Juribiyan 2019-03-02 14:31:59 +05:00
parent 74e68d18b5
commit 55c35b37e6
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
-- This will irreversibly erase the information amout deleted posts and files (duh)
UPDATE `posts` SET
`name` = '',
`tripcode` = '',
`email` = '',
`subject` = '',
`message` = '',
`country` = '',
`password` = ''
WHERE `IS_DELETED` = 1;
UPDATE `files` SET
`file_md5` = '',
`file_original` = '',
`file_size` = 0,
`file_size_formatted` = '',
`image_w` = 0,
`image_h` = 0,
`thumb_w` = 0,
`thumb_h` = 0,
`spoiler` = 0
WHERE `file` = 'removed';