- Issue created by @Ryo Ichiyama
- 🇮🇳India sarwan_verma
I have fixed this issue
Missing primary key in table `restrict_ip_paths' and `restrict_ip_whitelisted_ip_addresses'
and also attached patch. - 🇯🇵Japan Ryo Ichiyama
Thank you for responding so quickly.
I have patched and reinstalled the module and have confirmed that the warning is gone. drush eval "\Drupal\Core\Database\Database::getConnection()->schema()->addPrimaryKey('restrict_ip_whitelisted_ip_addresses', ['ip_address']);"
drush eval "\Drupal\Core\Database\Database::getConnection()->schema()->addPrimaryKey('restrict_ip_paths', ['path']);"do these if you don't want to reinstall it
- Status changed to Needs review
12 months ago 7:44pm 3 January 2024 - 🇺🇸United States mmenavas
Here's an updated patch that combines @andikanio's suggestion as a database update hook and @sarwan_verma's patch.
- 🇯🇵Japan Ryo Ichiyama
@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. - Status changed to Needs work
5 months ago 10:28am 9 August 2024 - First commit to issue fork.
- Merge request !23Issue #3385862: Missing primary key in table restrict_ip_paths and... → (Open) created by rollins
- Status changed to Needs review
4 months ago 8:17am 29 August 2024 - Status changed to Needs work
1 day ago 9:35am 21 December 2024 - 🇩🇪Germany Anybody Porta Westfalica
Okay failing tests seem unrelated, but we should fix them first in a separate issue. Meanwhile this can be tested manually.