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:
parent
f8a9268b38
commit
0eeb464119
@ -114,7 +114,7 @@ CREATE TABLE IF NOT EXISTS `bonus_script` (
|
|||||||
`flag` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
|
`flag` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
|
||||||
`type` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
|
`type` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
|
||||||
`icon` SMALLINT(3) NOT NULL DEFAULT '-1',
|
`icon` SMALLINT(3) NOT NULL DEFAULT '-1',
|
||||||
PRIMARY KEY (`char_id`, `type`)
|
KEY `char_id` (`char_id`)
|
||||||
) ENGINE=InnoDB;
|
) ENGINE=InnoDB;
|
||||||
|
|
||||||
--
|
--
|
||||||
|
3
sql-files/upgrades/upgrade_20211008.sql
Normal file
3
sql-files/upgrades/upgrade_20211008.sql
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
ALTER TABLE `bonus_script`
|
||||||
|
DROP PRIMARY KEY,
|
||||||
|
ADD KEY `char_id` (`char_id`);
|
Loading…
x
Reference in New Issue
Block a user