Fixed an invalid primary key in web.sql (#7304)

Fixes #7290

Thanks to @Tolimatoi
This commit is contained in:
Lemongrass3110 2022-10-11 18:41:08 +02:00 committed by GitHub
parent 3d3a5159e3
commit 311cda80af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
ALTER TABLE `merchant_configs`
DROP PRIMARY KEY,
ADD PRIMARY KEY (`world_name`, `account_id`, `char_id`, `store_type`)
;

View File

@ -46,5 +46,5 @@ CREATE TABLE IF NOT EXISTS `merchant_configs` (
`char_id` INT(11) UNSIGNED NOT NULL,
`store_type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
`data` longtext NOT NULL,
PRIMARY KEY (`world_name`, `account_id`, `char_id`)
PRIMARY KEY (`world_name`, `account_id`, `char_id`, `store_type`)
) ENGINE=MyISAM;