Files
ThordekkCore/sql/playerbot
agathoandClaude Opus 4.5 09eaa1db5f feat(playerbot): Add SQL template validation constraints and corrupt entry fix
Ported from TrinityCore playerbot-dev commits c9d0209ad9 and c70493ebbc

- add_template_validation_constraints.sql: Database-level safeguards
  - CHECK constraints on class_id (1-13), spec_id (>0), role (0-2)
  - BEFORE INSERT/UPDATE triggers for comprehensive validation
  - Validates class_id matches spec_info table

- fix_corrupt_template_entry.sql: Cleanup script for invalid templates
  - Removes templates with class_id=0 or spec_id=0
  - Cleans up orphan statistics entries

Co-Authored-By: Claude Opus 4.5 <[email protected]>
2026-01-23 10:51:36 +01:00
..
2026-01-20 21:33:16 -03:00
2026-01-20 21:33:16 -03:00
2026-01-20 21:33:16 -03:00
2026-01-20 21:33:16 -03:00
2026-01-20 21:33:16 -03:00
2026-01-20 21:33:16 -03:00
2026-01-20 21:33:16 -03:00
2026-01-20 21:33:16 -03:00