mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-17 09:14:34 +00:00
refactor(DB/Player): Unify two player stat tables. (#17188)
* Init. Change query table names, move data to existing table. * Combine two player stat loading functions.
This commit is contained in:
9
data/sql/updates/pending_db_world/condense-tables.sql
Normal file
9
data/sql/updates/pending_db_world/condense-tables.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
ALTER TABLE `player_class_stats`
|
||||
ADD COLUMN `BaseHP` int unsigned NOT NULL DEFAULT '1' AFTER `Level`,
|
||||
ADD COLUMN `BaseMana` int unsigned NOT NULL DEFAULT '1' AFTER `BaseHP`;
|
||||
|
||||
UPDATE player_class_stats AS noo
|
||||
JOIN player_classlevelstats AS ole ON noo.Class = ole.class AND noo.Level = ole.level
|
||||
SET noo.BaseHP = ole.basehp, noo.BaseMana = ole.basemana;
|
||||
|
||||
DROP TABLE IF EXISTS `player_classlevelstats`;
|
||||
Reference in New Issue
Block a user