fix(db_world): clamp VerifiedBuild for MEDIUMINT (spell_target_position)

MariaDB rejects 34149345 for VerifiedBuild when the column is MEDIUMINT
(signed max 8388607), as in old 8.x schema migrations. Replace corrupt
value with 0 in archive and base dumps.

Add data/sql/tools/clamp_verifiedbuild_mediumint.py to re-scan archive,
updates, and base INSERT/UPDATE blocks that list VerifiedBuild.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Dawnforger
2026-05-09 00:45:38 -05:00
parent b797877558
commit ba1cca9521
3 changed files with 273 additions and 2 deletions
@@ -546,7 +546,7 @@ INSERT INTO `spell_target_position` VALUES
(48274,0,575,302.36,-352.01,90.54,2.2,0),
(48275,0,575,291.39,-352.01,90.54,0.91,0),
(48276,0,575,296.651,-346.293,108.547,1.58,0),
(48324,0,571,3454.11,-2802.37,202.14,0,34149345),
(48324,0,571,3454.11,-2802.37,202.14,0,0),
(48622,0,571,4274.53,-3055.55,319.463,2.535,0),
(48760,0,571,3876.16,6984.44,106.32,6.279,0),
(48960,0,571,4313.37,-2958.17,318.463,1.98,0),