From e9fbe61cf0d5e19fd649f1f39be774674f0a6598 Mon Sep 17 00:00:00 2001
From: Hendrik Osterholz <53285-hosterholz@users.noreply.drupalcode.org>
Date: Tue, 14 Jan 2025 13:29:29 +0100
Subject: [PATCH] Issue #3499640 by hosterholz: Key column 'path' doesn't exist
 in table: ALTER TABLE "restrict_ip_whitelisted_ip_addresses" ADD PRIMARY KEY
 ("path")

---
 restrict_ip.install | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/restrict_ip.install b/restrict_ip.install
index c9e308f..3026dcb 100644
--- a/restrict_ip.install
+++ b/restrict_ip.install
@@ -132,7 +132,7 @@ function restrict_ip_update_500001(): void {
 
   if (!$schema->indexExists('restrict_ip_whitelisted_ip_addresses', 'PRIMARY')) {
     // Add primary key to "restrict_ip_whitelisted_ip_addresses" table.
-    $schema->addPrimaryKey('restrict_ip_whitelisted_ip_addresses', ['path']);
+    $schema->addPrimaryKey('restrict_ip_whitelisted_ip_addresses', ['ip_address']);
   }
 }
 
-- 
GitLab