Skip to content

Commit

Permalink
[6872] Make guid key in guild_member table unique.
Browse files Browse the repository at this point in the history
Signed-off-by: hunuza <[email protected]>
  • Loading branch information
hunuza committed Dec 3, 2008
1 parent 5bc3cdd commit 7a3e58f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql/characters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ CREATE TABLE `guild_member` (
`BankRemSlotsTab5` int(11) unsigned NOT NULL default '0',
KEY `guildid_key` (`guildid`),
KEY `guildid_rank_key` (`guildid`,`rank`),
KEY `guid_key` (`guid`)
UNIQUE KEY `guid_key` (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Guild System';

--
Expand Down
2 changes: 2 additions & 0 deletions sql/updates/2008_12_03_01_character_guild_member.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE `guild_member` DROP INDEX `guid_key` ,
ADD UNIQUE `guid_key` ( `guid` );
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "6871"
#define REVISION_NR "6872"
#endif // __REVISION_NR_H__

0 comments on commit 7a3e58f

Please sign in to comment.