Skip to content

Commit

Permalink
[12949] Cleanup mangle ranks and reset talents for druids
Browse files Browse the repository at this point in the history
Resolves issue with disappearing mangle ranks for existing characters, core is able to sort it out after talent reset automatically.
  • Loading branch information
Warlockbugs authored and Fabi committed Jan 3, 2017
1 parent e2075f5 commit bd33552
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sql/base/characters.sql
Expand Up @@ -21,8 +21,8 @@

DROP TABLE IF EXISTS `character_db_version`;
CREATE TABLE `character_db_version` (
`required_12942_01_characters_reset_talents` bit(1) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
`required_12949_01_characters_mangle_cleanup` bit(1) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Last applied sql update to DB';

--
-- Dumping data for table `character_db_version`
Expand Down
4 changes: 4 additions & 0 deletions sql/updates/characters/12949_01_characters_mangle_cleanup.sql
@@ -0,0 +1,4 @@
ALTER TABLE character_db_version CHANGE COLUMN required_12942_01_characters_reset_talents required_12949_01_characters_mangle_cleanup bit;

UPDATE characters as c JOIN character_spell as cs ON c.guid = cs.guid SET c.at_login = c.at_login | 4 WHERE cs.spell in (33876,33878,33982,33983,33986,33987,48563,48564,48565,48566);
DELETE FROM character_spell WHERE spell in (33876,33878,33982,33983,33986,33987,48563,48564,48565,48566);
2 changes: 1 addition & 1 deletion src/shared/revision_sql.h
@@ -1,6 +1,6 @@
#ifndef __REVISION_SQL_H__
#define __REVISION_SQL_H__
#define REVISION_DB_REALMD "required_c12484_02_realmd_account_access"
#define REVISION_DB_CHARACTERS "required_12942_01_characters_reset_talents"
#define REVISION_DB_CHARACTERS "required_12949_01_characters_mangle_cleanup"
#define REVISION_DB_MANGOS "required_12948_04_mangos_npc_trainer_template"
#endif // __REVISION_SQL_H__

0 comments on commit bd33552

Please sign in to comment.