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.
13 lines
673 B
SQL
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;
|