Files
krow_backend/migrations/000015_rate_limits.down.sql
Aravind f2aa3b3ad8
Some checks failed
CI / fixture (push) Has been cancelled
CI / test (push) Has been cancelled
mcp connection
2026-09-22 10:58:02 +05:30

14 lines
543 B
SQL

-- Reverses 000015.
--
-- Dropping the counters removes every in-flight rate limit window. The effect
-- is that limits reset once, which is the correct meaning of rolling back a
-- counter table: it destroys no application data, and a caller who was at their
-- limit gets a fresh window rather than a permanent refusal.
--
-- The in-process limiter in httpserver/ratelimit.go is untouched by this
-- migration and by its rollback; login limiting keeps working either way.
SET search_path = public;
DROP TABLE IF EXISTS public.rate_limits;