Hi,
When the Transaction Level in MariaDB is set to READ-COMMITTED, the following warning appears on the report page (/admin/reports/status).
TRANSACTION ISOLATION LEVEL
READ-COMMITTED
For this to work correctly, all tables must have a primary key. The following table(s) do not have a primary key: forum_index, honeypot_user, restrict_ip_paths, restrict_ip_whitelisted_ip_addresses. See the setting MySQL transaction isolation level page for more information.# My site is on Drupal version 10.1.2.
Reference URL:
https://www.drupal.org/docs/getting-started/system-requirements/setting-the-mysql-transaction-isolation-level
Can you please consider supporting this?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | interdiff_2-5.txt | 624 bytes | mmenavas |
| #5 | restrict_ip-Add-missing-primary-keys-3385862-05.patch | 1.36 KB | mmenavas |
| #2 | restrict_ip-3385862.patch | 839 bytes | sarwan_verma |
Issue fork restrict_ip-3385862
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
sarwan_verma commentedI have fixed this issue
Missing primary key in table `restrict_ip_paths' and `restrict_ip_whitelisted_ip_addresses'
and also attached patch.
Comment #3
ryo ichiyama commentedThank you for responding so quickly.
I have patched and reinstalled the module and have confirmed that the warning is gone.
Comment #4
andikanio commenteddo these if you don't want to reinstall it
Comment #5
mmenavas commentedHere's an updated patch that combines @andikanio's suggestion as a database update hook and @sarwan_verma's patch.
Comment #6
ryo ichiyama commented@andikanio , @mmenavas
Thank you very much.
If I can get my environment back to normal I will try to see if I can update it without reinstalling the module.
Comment #7
anybodyPlease provide the patches as MR instead!
Comment #10
rollins commentedComment #11
anybodyPHPUnit tests are failing
Comment #12
anybodyOkay failing tests seem unrelated, but we should fix them first in a separate issue. Meanwhile this can be tested manually.
Comment #13
smustgrave commented