- Issue created by @scotwith1t
- 🇫🇮Finland tvalimaa
I got message:
For this to work correctly, all tables must have a primary key. The following table(s) do not have a primary key: search_api_db_fulltext_1.
What I did was custom update_hook for custom module.install file
function mymodule_update_10001() { \Drupal::database()->schema()->addPrimaryKey('search_api_db_fulltext_1', ['item_id']); }
- Status changed to Postponed: needs info
over 1 year ago 2:37pm 7 October 2023 - 🇦🇹Austria drunken monkey Vienna, Austria
This seems to be a result of some previous error when first creating the search index. Normally, that table should have a primary key.
Unless you can reproduce this problem from a new installation, please just add the primary key (onitem_id, value
) manually.