Fixed an invalid primary key in web.sql (#7304)
Fixes #7290 Thanks to @Tolimatoi
This commit is contained in:
parent
3d3a5159e3
commit
311cda80af
4
sql-files/upgrades/upgrade_20221001.sql
Normal file
4
sql-files/upgrades/upgrade_20221001.sql
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
ALTER TABLE `merchant_configs`
|
||||||
|
DROP PRIMARY KEY,
|
||||||
|
ADD PRIMARY KEY (`world_name`, `account_id`, `char_id`, `store_type`)
|
||||||
|
;
|
@ -46,5 +46,5 @@ CREATE TABLE IF NOT EXISTS `merchant_configs` (
|
|||||||
`char_id` INT(11) UNSIGNED NOT NULL,
|
`char_id` INT(11) UNSIGNED NOT NULL,
|
||||||
`store_type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
|
`store_type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`data` longtext NOT NULL,
|
`data` longtext NOT NULL,
|
||||||
PRIMARY KEY (`world_name`, `account_id`, `char_id`)
|
PRIMARY KEY (`world_name`, `account_id`, `char_id`, `store_type`)
|
||||||
) ENGINE=MyISAM;
|
) ENGINE=MyISAM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user