Files
krow_backend/migrations/000012_oauth_clients.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

15 lines
574 B
SQL

-- Reverses 000012.
--
-- Dropping oauth_clients unregisters every connected MCP client. That is the
-- correct meaning of rolling back OAuth client registration, and it destroys no
-- application data: every row here is a registration, not a business record.
-- A client whose registration is gone simply registers again.
--
-- 000013 and 000014 reference this table, so they must be rolled back first.
-- golang-migrate applies down migrations in descending order, which does that
-- by construction.
SET search_path = public;
DROP TABLE IF EXISTS public.oauth_clients;