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

20 lines
798 B
SQL

-- Reverses 000006.
--
-- Drops exactly the one table it created. Its indexes and constraints go with
-- it, and the self-reference on parent_run_id needs no special handling
-- because the whole table leaves at once.
--
-- No enum type was created — termination is text with a CHECK — so nothing is
-- left behind.
--
-- Rolling this back destroys every recorded trajectory. That is the correct
-- meaning of reversing the migration that introduced them, and it is worth
-- stating plainly: it discards the evidence for every agent run this
-- deployment has served, including the failed ones. It reaches nothing else —
-- agent and skill definitions are 000005's and are untouched by both
-- directions of this migration.
SET search_path = public;
DROP TABLE IF EXISTS public.agent_runs;