From 223d06645d111955164f77cdd6d34f0671a0040e Mon Sep 17 00:00:00 2001 From: Uleat Date: Fri, 17 Oct 2014 21:04:29 -0400 Subject: [PATCH] Added clarification to 'drop_bots.sql' notes for cases of failed script --- utils/sql/git/bots/drop_bots.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/sql/git/bots/drop_bots.sql b/utils/sql/git/bots/drop_bots.sql index 326194ad6..df8ca4fa8 100644 --- a/utils/sql/git/bots/drop_bots.sql +++ b/utils/sql/git/bots/drop_bots.sql @@ -5,6 +5,10 @@ -- There may still be remnants of bot activity in tables `guild_members` and -- `group_id`. If these entries are causing issues, you may need to manually -- remove them. +-- +-- If this script fails due to a 'SQL Error (1068): Multiple primary key defined' +-- error, run this query: ALTER TABLE `guild_members` DROP PRIMARY KEY; +-- and it should remove the key so this script will process in its entirety. ALTER TABLE `guild_members` ADD PRIMARY KEY (`char_id`);