From 2468810cf37b53947bab0f121a875437278a820b Mon Sep 17 00:00:00 2001 From: luis Date: Sun, 23 Aug 2026 02:39:03 -0300 Subject: [PATCH] fix db errors --- .../2026_08_23_04_world_spell_target_position_fix.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 sql/updates/world/master/2026_08_23_04_world_spell_target_position_fix.sql diff --git a/sql/updates/world/master/2026_08_23_04_world_spell_target_position_fix.sql b/sql/updates/world/master/2026_08_23_04_world_spell_target_position_fix.sql new file mode 100644 index 000000000..6ad929e38 --- /dev/null +++ b/sql/updates/world/master/2026_08_23_04_world_spell_target_position_fix.sql @@ -0,0 +1,6 @@ +-- Remove invalid spell_target_position entries that don't have proper target types +-- These spells (91576, 99511) have entries in spell_target_position but don't have +-- TARGET_DEST_DB (17), TARGET_DEST_NEARBY_DB (106), or TARGET_DEST_NEARBY_ENTRY_OR_DB (142) targets +-- These entries are not in the base SQL files and appear to be invalid data + +DELETE FROM `spell_target_position` WHERE `ID` IN (91576, 99511);