Adjusts bonus_script SQL table keys (#6276)

Fixes #5405.
Adds a normal key index as the uniqueness can be less restrictive.
Removes the primary keys.

Thanks to @Surefirer, @Patotron, and @gen1x8!
This commit is contained in:
Aleos 2021-10-08 11:57:08 -04:00 committed by GitHub
parent f8a9268b38
commit 0eeb464119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -114,7 +114,7 @@ CREATE TABLE IF NOT EXISTS `bonus_script` (
`flag` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`type` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
`icon` SMALLINT(3) NOT NULL DEFAULT '-1',
PRIMARY KEY (`char_id`, `type`)
KEY `char_id` (`char_id`)
) ENGINE=InnoDB;
--

View File

@ -0,0 +1,3 @@
ALTER TABLE `bonus_script`
DROP PRIMARY KEY,
ADD KEY `char_id` (`char_id`);