Files
krow_backend/migrations/000007_agent_confirmations.down.sql
2026-08-28 12:21:44 +05:30

17 lines
705 B
SQL

-- Reverses 000007.
--
-- Drops the one table it created, with its two partial indexes.
--
-- Rolling this back discards every outstanding confirmation. Any approval a
-- person has been asked for and not yet given becomes unanswerable — the token
-- they hold will resolve against nothing, and the agent will describe the write
-- again the next time it is asked. That is the correct behaviour for a lost
-- confirmation store: fail closed, ask again. Nothing that was already written
-- is affected, because a spent confirmation has, by then, already done its job.
--
-- No enum type was created, so nothing is left behind.
SET search_path = public;
DROP TABLE IF EXISTS public.agent_confirmations;