From b7e33283a5755bb85a7beee8acdfbac7c32ff231 Mon Sep 17 00:00:00 2001 From: Ryan Turner Date: Sat, 1 Mar 2025 23:33:10 +0000 Subject: [PATCH] feat(DB): clarify IDs for faction changes (#20480) --- .../rev_1731031220479040900.sql | 159 ++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1731031220479040900.sql diff --git a/data/sql/updates/pending_db_world/rev_1731031220479040900.sql b/data/sql/updates/pending_db_world/rev_1731031220479040900.sql new file mode 100644 index 000000000..bc83a7b91 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1731031220479040900.sql @@ -0,0 +1,159 @@ +-- Adding COMMENT COLUMN +-- Achievements +ALTER TABLE `player_factionchange_achievement` +ADD `alliance_comment` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci' AFTER `alliance_id`, +ADD `horde_comment` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci' AFTER `horde_id`; +-- Reputations +ALTER TABLE `player_factionchange_reputations` +ADD `alliance_comment` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci' AFTER `alliance_id`, +ADD `horde_comment` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci' AFTER `horde_id`; + +-- Adding Achievements +DELETE FROM `player_factionchange_achievement` WHERE `alliance_id` IN +(33,34,35,37,41,58,202,203,206,220,225,230,246,388,433,434,435,436,437,438,439,440,441,442,470,471,472,473,604,610,611,612,613,614,701,707,709,711,713,764,899,907,908,942,948,963,966,969,970,1012,1022,1023,1024,1028,1029,1030,1034,1035,1038,1040,1151,1167,1169,1172,1184,1189,1191,1192,1255,1262,1279,1466,1563,1656,1676,1678,1681,1684,1686,1692,1697,1707,1737,1752,1757,1762,1782,2016,2144,2194,2419,2421,2536,2760,2761,2762,2763,2764,2770,2777,2778,2779,2780,2781,2782,2797,2817,3356,3478,3556,3576,3580,3596,3676,3846,3851,3856,3857,4156,4296,4298,4436,4784,4786); +INSERT INTO `player_factionchange_achievement` (`alliance_id`, `alliance_comment`, `horde_id`, `horde_comment`) VALUES +-- Achievements +(33, "Nothing Boring About Borean", 1358, "Nothing Boring About Borean"), +(34, "I've Toured the Fjord", 1356, "I've Toured the Fjord"), +(35, "Might of Dragonblight", 1359, "Might of Dragonblight"), +(37, "Fo' Grizzle My Shizzle", 1357, "Fo' Grizzle My Shizzle"), +(41, "Loremaster of Northrend", 1360, "Loremaster of Northrend"), +(58, "Deaths from Drek'Thar", 593, "Deaths from Vanndar Stormpike"), +(202, "Quick Cap", 1502, "Quick Cap"), +(203, "Not In My House", 1251, "Not In My House"), +(206, "Supreme Defender", 1252, "Supreme Defender"), +(220, "Stormpike Perfection", 873, "Frostwolf Perfection"), +(225, "Everything Counts", 1164, "Everything Counts"), +(230, "Battlemaster", 1175, "Battlemaster"), +(246, "Know Thy Enemy", 1005, "Know Thy Enemy"), +(388, "City Defender", 1006, "City Defender"), +(433, "Grand Marshal", 443, "High Warlord"), +(434, "Field Marshal", 445, "Warlord"), +(435, "Commander", 444, "Lieutenant General"), +(436, "Lieutenant Commander", 447, "Champion"), +(437, "Knight-Champion", 448, "Centurion"), +(438, "Knight-Captain", 469, "Legionnaire"), +(439, "Knight", 451, "Stone Guard"), +(440, "Sergeant Major", 452, "First Sergeant"), +(441, "Master Sergeant", 450, "Senior Sergeant"), +(442, "Private", 454, "Scout"), +(470, "Corporal", 468, "Grunt"), +(471, "Sergeant", 453, "Sergeant"), +(472, "Knight-Lieutenant", 449, "Blood Guard"), +(473, "Marshal", 446, "General"), +(604, "Wrath of the Alliance", 603, "Wrath of the Horde"), +(610, "Death to the Warchief!", 615, "Storming Stormwind"), +(611, "Bleeding Bloodhoof", 616, "Death to the King!"), +(612, "Downing the Dark Lady", 617, "Immortal No More"), +(613, "Killed in Quel'Thalas", 618, "Putting Out the Light"), +(614, "For The Alliance!", 619, "For The Horde!"), +(701, "Freedom of the Alliance", 700, "Freedom of the Horde"), +(707, "Stormpike Battle Charger", 706, "Frostwolf Howler"), +(709, "Hero of the Stormpike Guard", 708, "Hero of the Frostwolf Clan"), +(711, "Knight of Arathor", 710, "The Defiler"), +(713, "Silverwing Sentinel", 712, "Warsong Outrider"), +(764, "The Burning Crusader", 763, "The Burning Crusader"), +(899, "Oh My, Kurenai", 901, "Mag'har of Draenor"), +(907, "The Justicar", 714, "The Conqueror"), +(908, "Call to Arms!", 909, "Call to Arms!"), +(942, "The Diplomat", 943, "The Diplomat"), +(948, "Ambassador of the Alliance", 762, "Ambassador of the Horde"), +(963, "Tricks and Treats of Kalimdor", 965, "Tricks and Treats of Kalimdor"), +(966, "Tricks and Treats of Eastern Kingdoms", 967, "Tricks and Treats of Eastern Kingdoms"), +(969, "Tricks and Treats of Outland", 968, "Tricks and Treats of Outland"), +(970, "Tricks and Treats of Azeroth", 971, "Tricks and Treats of Azeroth"), +(1012, "The Winds of the North", 1011, "The Winds of the North"), +(1022, "Flame Warden of Eastern Kingdoms", 1025, "Flame Keeper of Eastern Kingdoms"), +(1023, "Flame Warden of Kalimdor", 1026, "Flame Keeper of Kalimdor"), +(1024, "Flame Warden of Outland", 1027, "Flame Keeper of Outland"), +(1028, "Extinguishing Eastern Kingdoms", 1031, "Extinguishing Eastern Kingdoms"), +(1029, "Extinguishing Kalimdor", 1032, "Extinguishing Kalimdor"), +(1030, "Extinguishing Outland", 1033, "Extinguishing Outland"), +(1034, "The Fires of Azeroth", 1036, "The Fires of Azeroth"), +(1035, "Desecration of the Horde", 1037, "Desecration of the Alliance"), +(1038, "The Flame Warden", 1039, "The Flame Keeper"), +(1040, "Rotten Hallow", 1041, "Rotten Hallow"), +(1151, "Loyal Defender", 224, "Loyal Defender"), +(1167, "Master of Alterac Valley", 1168, "Master of Alterac Valley"), +(1169, "Master of Arathi Basin", 1170, "Master of Arathi Basin"), +(1172, "Master of Warsong Gulch", 1173, "Master of Warsong Gulch"), +(1184, "Strange Brew", 1203, "Strange Brew"), +(1189, "To Hellfire and Back", 1271, "To Hellfire and Back"), +(1191, "Terror of Terokkar", 1272, "Terror of Terokkar"), +(1192, "Nagrand Slam", 1273, "Nagrand Slam"), +(1255, "Scrooge", 259, "Scrooge"), +(1262, "Loremaster of Outland", 1274, "Loremaster of Outland"), +(1279, "Flirt With Disaster", 1280, "Flirt With Disaster"), +(1466, "Most Alliance factions at Exalted", 926, "Most Horde factions at Exalted"), +(1563, "Hail to the Chef", 1784, "Hail to the Chef"), +(1656, "Hallowed Be Thy Name", 1657, "Hallowed Be Thy Name"), +(1676, "Loremaster of Eastern Kingdoms", 1677, "Loremaster of Eastern Kingdoms"), +(1678, "Loremaster of Kalimdor", 1680, "Loremaster of Kalimdor"), +(1681, "The Loremaster", 1682, "The Loremaster"), +(1684, "Brewmaster", 1683, "Brewmaster"), +(1686, "Bros. Before Ho Ho Ho's", 1685, "Bros. Before Ho Ho Ho's"), +(1692, "Merrymaker", 1691, "Merrymaker"), +(1697, "Nation of Adoration", 1698, "Nation of Adoration"), +(1707, "Fool For Love", 1693, "Fool For Love"), +(1737, "Destruction Derby", 2476, "Destruction Derby"), +(1752, "Master of Wintergrasp", 2776, "Master of Wintergrasp"), +(1757, "Defense of the Ancients", 2200, "Defense of the Ancients"), +(1762, "Not Even a Scratch", 2192, "Not Even a Scratch"), +(1782, "Our Daily Bread", 1783, "Our Daily Bread"), +(2016, "Grizzled Veteran", 2017, "Grizzled Veteran"), +(2144, "What A Long, Strange Trip It's Been", 2145, "What A Long, Strange Trip It's Been"), +(2194, "Master of Strand of the Ancients", 2195, "Master of Strand of the Ancients"), +(2419, "Spring Fling", 2497, "Spring Fling"), +(2421, "Noble Garden", 2420, "Noble Garden"), +(2536, "Mountain o' Mounts", 2537, "Mountain o' Mounts"), +(2760, "Exalted Champion of Darnassus", 2768, "Exalted Champion of Thunder Bluff"), +(2761, "Exalted Champion of the Exodar", 2767, "Exalted Champion of Silvermoon City"), +(2762, "Exalted Champion of Gnomeregan", 2766, "Exalted Champion of Sen'jin"), +(2763, "Exalted Champion of Ironforge", 2769, "Exalted Champion of the Undercity"), +(2764, "Exalted Champion of Stormwind", 2765, "Exalted Champion of Orgrimmar"), +(2770, "Exalted Champion of the Alliance", 2771, "Exalted Champion of the Horde"), +(2777, "Champion of Darnassus", 2786, "Champion of Thunder Bluff"), +(2778, "Champion of the Exodar", 2785, "Champion of Silvermoon City"), +(2779, "Champion of Gnomeregan", 2784, "Champion of Sen'jin"), +(2780, "Champion of Ironforge", 2787, "Champion of the Undercity"), +(2781, "Champion of Stormwind", 2783, "Champion of Orgrimmar"), +(2782, "Champion of the Alliance", 2788, "Champion of the Horde"), +(2797, "Noble Gardener", 2798, "Noble Gardener"), +(2817, "Exalted Argent Champion of the Alliance", 2816, "Exalted Argent Champion of the Horde"), +(3356, "Winterspring Frostsaber", 3357, "Venomhide Ravasaur"), +(3478, "Pilgrim", 3656, "Pilgrim"), +(3556, "Pilgrim's Paunch", 3557, "Pilgrim's Paunch"), +(3576, "Now We're Cookin'", 3577, "Now We're Cookin'"), +(3580, "Pilgrim's Peril", 3581, "Pilgrim's Peril"), +(3596, "Pilgrim's Progress", 3597, "Pilgrim's Progress"), +(3676, "A Silver Confidant", 3677, "The Sunreavers"), +(3846, "Resource Glut", 4176, "Resource Glut"), +(3851, "Mine", 4177, "Mine"), +(3856, "Demolition Derby", 4256, "Demolition Derby"), +(3857, "Master of Isle of Conquest", 3957, "Master of Isle of Conquest"), +(4156, "A Tribute to Immortality", 4079, "A Tribute to Immortality"), +(4296, "Trial of the Champion", 3778, "Trial of the Champion"), +(4298, "Heroic: Trial of the Champion", 4297, "Heroic: Trial of the Champion"), +(4436, "BB King", 4437, "BB King"), +(4784, "Emblematic", 4785, "Emblematic"), +(4786, "Operation: Gnomeregan", 4790, "Zalazane's Fall"); + +-- Reputation +DELETE FROM `player_factionchange_reputations` WHERE `alliance_id` IN +(47,54,69,72,509,730,890,930,946,978,1037,1050,1068,1094,1126); +INSERT INTO `player_factionchange_reputations` (`alliance_id`, `alliance_comment`, `horde_id`, `horde_comment`) VALUES +(47, "Ironforge", 530, "Darkspear Trolls"), +(54, "Gnomeregan Exiles", 81, "Thunder Bluff"), +(69, "Darnassus", 68, "Undercity"), +(72, "Stormwind", 76, "Orgrimmar"), +(509, "The League of Arathor", 510, "The Defilers"), +(730, "Stormpike Guard", 729, "Frostwolf Clan"), +(890, "Silverwing Sentinels", 889, "Warsong Outriders"), +(930, "Exodar", 911, "Silvermoon City"), +(946, "Honor Hold", 947, "Thrallmar"), +(978, "Kurenai", 941, "The Mag'har"), +(1037, "Alliance Vanguard", 1052, "Horde Expedition"), +(1050, "Valiance Expedition", 1085, "Warsong Offensive"), +(1068, "Explorers' League", 1064, "The Taunka"), +(1094, "The Silver Covenant", 1124, "The Sunreavers"), +(1126, "The Frostborn", 1067, "The Hand of Vengeance");