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 committed Jan 3, 2017
1 parent e2dfec1 commit 90ae0cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql/base/characters.sql
Expand Up @@ -21,7 +21,7 @@

DROP TABLE IF EXISTS `character_db_version`;
CREATE TABLE `character_db_version` (
`required_12942_01_characters_reset_talents` bit(1) DEFAULT NULL
`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';

--
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_10008_01_realmd_realmd_db_version"
#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 90ae0cf

Please sign in to comment.