Fix migration 0 for cd server

setting every component to 1901 instead of just component 39
Add migration to fix it for existing users
and set the values back to what they were
This commit is contained in:
Aaron Kimbre 2022-04-19 21:30:38 -05:00
parent 4cf9865431
commit d4adb0e6e5
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
BEGIN TRANSACTION; BEGIN TRANSACTION;
UPDATE ComponentsRegistry SET component_id = 1901 WHERE id = 12916; UPDATE ComponentsRegistry SET component_id = 1901 WHERE id = 12916 AND component_type = 39;
INSERT INTO ActivityRewards (objectTemplate, ActivityRewardIndex, activityRating, LootMatrixIndex, CurrencyIndex, ChallengeRating, description) VALUES (1901, 166, -1, 598, 1, 4, 'NT Foot Race'); INSERT INTO ActivityRewards (objectTemplate, ActivityRewardIndex, activityRating, LootMatrixIndex, CurrencyIndex, ChallengeRating, description) VALUES (1901, 166, -1, 598, 1, 4, 'NT Foot Race');
COMMIT; COMMIT;

View File

@ -0,0 +1,3 @@
UPDATE ComponentsRegistry SET component_id = 12702 WHERE id = 12916 AND component_type = 2;
UPDATE ComponentsRegistry SET component_id = 6280 WHERE id = 12916 AND component_type = 3;
UPDATE ComponentsRegistry SET component_id = 1791 WHERE id = 12916 AND component_type = 7;