nidus-sync/db/migrations/00045_comms_text_sid.sql
Eli Ribble a68b8781e7
Add ability to make LLM agent forget the conversation history
This is extremely useful for testing.

In order to do this I needed to actually deploy the migration to a bob
fork so I could start to add support for behaviors I really want.
Specifically the ability to search for ids in a slice.
2026-01-27 18:44:02 +00:00

13 lines
673 B
SQL

-- +goose Up
ALTER TABLE comms.text_log ADD COLUMN twilio_sid TEXT UNIQUE;
ALTER TABLE comms.text_log ADD COLUMN twilio_status TEXT;
UPDATE comms.text_log SET twilio_status = '';
ALTER TABLE comms.text_log ALTER COLUMN twilio_status SET NOT NULL;
ALTER TABLE comms.text_log ADD COLUMN is_visible_to_llm BOOLEAN;
UPDATE comms.text_log SET is_visible_to_llm = FALSE;
ALTER TABLE comms.text_log ALTER COLUMN is_visible_to_llm SET NOT NULL;
ALTER TYPE comms.TextOrigin ADD VALUE 'command-response';
-- +goose Down
ALTER TABLE comms.text_log DROP COLUMN is_visible_to_llm;
ALTER TABLE comms.text_log DROP COLUMN twilio_status;
ALTER TABLE comms.text_log DROP COLUMN twilio_sid;