summaryrefslogblamecommitdiff
path: root/makima/migrations/20260510000000_drop_directive_goal.sql
blob: 0848239cb811f097b7fe95c6baa55790d1c38660 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                        
-- Drop directives.goal and directive_goal_history.
--
-- The unified contract surface makes contracts the source of truth for
-- spec text. A directive is now a folder of contracts; the orchestrator
-- daemon reads the currently-active contract's body when it spawns,
-- replanned, or runs completion. directives.goal was the pre-contract
-- spec field — superseded.
--
-- directive_goal_history tracked edits to the goal field. Contract
-- bodies have their own version field on the contracts table; the
-- amend/replan flow now queries that instead.

DROP TABLE IF EXISTS directive_goal_history;

ALTER TABLE directives DROP COLUMN IF EXISTS goal;
ALTER TABLE directives DROP COLUMN IF EXISTS goal_updated_at;