godcrm/scripts/adr-0003-C6-express-research-log.rollback.sql
GOD CRM Release f89e074dd1
Some checks failed
CI / Lint / Typecheck / Test / Build (push) Has been cancelled
CI / PostgreSQL Integration Tests (push) Has been cancelled
GOD CRM — public scrubbed snapshot
Governed substrate for autonomous agents: scoped identity (passports),
audited actions, MCP workspace. Infra IPs and secrets redacted for public release.
2026-08-10 04:01:45 +03:00

20 lines
639 B
PL/PgSQL

-- ADR-0003 Phase 0 · C-6 rollback (ticket 126812)
-- Removes the express_research_log column definition. Payload
-- (table_rows.data->>'express_research_log') is preserved by default; uncomment
-- the second statement to purge.
BEGIN;
DELETE FROM table_columns
WHERE table_id = 2197 AND column_name = 'express_research_log';
-- Optional: purge the key from existing row payloads.
-- UPDATE table_rows SET data = data - 'express_research_log'
-- WHERE table_id = 2197 AND data ? 'express_research_log';
COMMIT;
-- Verify
SELECT COUNT(*) AS remaining
FROM table_columns
WHERE table_id = 2197 AND column_name = 'express_research_log';