From: Michael Tremer Date: Tue, 11 Feb 2025 15:36:14 +0000 (+0000) Subject: ratelimiter: Add primary key X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a1bbf643e97c986f906c4a9f9100fd2c63a75b8;p=pbs.git ratelimiter: Add primary key So that I can edit the table. Signed-off-by: Michael Tremer --- diff --git a/src/database.sql b/src/database.sql index de5d7ac5..41ee97af 100644 --- a/src/database.sql +++ b/src/database.sql @@ -1512,6 +1512,14 @@ ALTER TABLE ONLY public.packages ADD CONSTRAINT packages_pkey PRIMARY KEY (id); +-- +-- Name: ratelimiter ratelimiter_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ratelimiter + ADD CONSTRAINT ratelimiter_pkey PRIMARY KEY (key, "timestamp", address); + + -- -- Name: ratelimiter ratelimiter_unique; Type: CONSTRAINT; Schema: public; Owner: - --