From 7d0a865cd47c32a67f79e1efeb4c2de5b3d3114a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogdan-=C8=98tefan=20Neac=C5=9Fu?= Date: Thu, 24 Jul 2025 10:38:42 +0300 Subject: [PATCH] Make allowed_ips unique --- .../migrations/20250605120000_trim_wireguard_peer_data.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/gateway-storage/migrations/20250605120000_trim_wireguard_peer_data.sql b/common/gateway-storage/migrations/20250605120000_trim_wireguard_peer_data.sql index cd627850bf..e8d0c92e7c 100644 --- a/common/gateway-storage/migrations/20250605120000_trim_wireguard_peer_data.sql +++ b/common/gateway-storage/migrations/20250605120000_trim_wireguard_peer_data.sql @@ -8,7 +8,7 @@ DELETE FROM wireguard_peer WHERE client_id IS NULL; CREATE TABLE wireguard_peer_new ( public_key TEXT NOT NULL PRIMARY KEY UNIQUE, - allowed_ips BLOB NOT NULL, + allowed_ips BLOB NOT NULL UNIQUE, client_id INTEGER REFERENCES clients(id) NOT NULL );