Setup/Factions

* fix switched base rep field indizes, causing Profiler to miscalculate
   character standing
 * replace hardcoded sql table prefixes
This commit is contained in:
Sarjuuk
2025-10-20 19:08:55 +02:00
parent 33cd290dc3
commit 14c159c164
6 changed files with 43 additions and 35 deletions

View File

@@ -863,8 +863,8 @@ CREATE TABLE `aowow_factions` (
`baseRepClassMask4` mediumint(8) unsigned NOT NULL,
`baseRepValue1` mediumint(9) NOT NULL,
`baseRepValue2` mediumint(9) NOT NULL,
`baseRepValue4` mediumint(9) NOT NULL,
`baseRepValue3` mediumint(9) NOT NULL,
`baseRepValue4` mediumint(9) NOT NULL,
`side` tinyint(3) unsigned NOT NULL,
`expansion` tinyint(3) unsigned NOT NULL,
`qmNpcIds` varchar(12) NOT NULL COMMENT 'space separated',

View File

@@ -0,0 +1,8 @@
ALTER TABLE `aowow_factions`
DROP COLUMN `baseRepValue3`,
DROP COLUMN `baseRepValue4`,
ADD COLUMN `baseRepValue3` mediumint(9) NOT NULL AFTER `baseRepValue2`,
ADD COLUMN `baseRepValue4` mediumint(9) NOT NULL AFTER `baseRepValue3`
;
UPDATE `aowow_dbversion` SET `sql` = CONCAT(IFNULL(`sql`, ''), ' factions');