- Issue created by @Chris64
- πΊπΈUnited States cilefen
key_value does have a primary key:
'primary key' => ['collection', 'name']
. - Status changed to Postponed: needs info
over 1 year ago 9:27pm 2 May 2023 - πΊπΈUnited States cilefen
I can't reproduce this on 10.1.x-dev. Table key_value has had a primary key for as long as it has existed.
- π«π·France Chris64 France
You are right @cilefen. Line 318 in
core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php
. So it is our own problem. Our databases are not regular. Problem solves with sql command,
ALTER TABLE `<database>`.`key_value` DROP INDEX `collection`, ADD PRIMARY KEY (`collection`, `name`) USING BTREE;
No Drupal error message any more after that. Those databases come from D8 through D9. - Status changed to Closed: works as designed
over 1 year ago 2:43pm 3 May 2023