Fix FEW undeletable images #5
Labels
No Label
bug
Bug: Upstream
duplicate
enhancement
Fanon Wiki
Fire Emblem Wiki
help wanted
High
invalid
Low
Medium
MiiWiki
Pikmin Fanon
question
WiKirby
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: system-theta/openwiki-mtmw#5
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Certain images, such as https://fireemblemwiki.org/wiki/File:GCNRankAxe.gif cannot be deleted due to broken oldimage entries, specifically, they are lacking an oi_archive_name.
Running
SELECT * FROM oldimage WHERE oi_archive_name = "";
returns a total of 794 images with this problem.As this is not a high priority task and there is a risk of breaking things, we should do this the next time there is maintenance.
The way to fix this is to just remove these entries
DELETE FROM oldimage WHERE oi_archive_name ="";
Prior to doing this, we should take note of one of the affected images, and have a link to the exact contribution that uploaded it. This is to find out if referential integrity breaks or not. We may want to keep a backup of the affected rows afterwards for insurance, if a problem is later discovered.
This fix does not delete the actual live files, it merely fixes the cause of why they cannot be deleted.