Problem/Motivation
According to Drupal's advice, when we change the default transaction isolation level from "REPEATABLE READ" to READ-COMMITTED for databases, the following error is reported.
Transaction isolation level:READ-COMMITTED
Error:
For this to work correctly, all tables must have a primary key. The following table(s) do not have a primary key: forum_index. See the setting MySQL transaction isolation level page for more information.
Steps to reproduce
Install forum module in Drupal 10.1
Visit admin/reports/status
View warning about forum_index table missing primary key.
Proposed resolution
Add a primary key to the forum_index table
Remaining tasks
Review
Commit