Files
TradarrV2/backend/internal/database/migrations/000027_qa_optional_passage.up.sql

7 lines
354 B
SQL

-- Empty means a general question about the full synthesis. Keep NOT NULL and
-- every historical passage; relax only the lower length bound.
ALTER TABLE summary_qa_turns
ALTER COLUMN passage SET DEFAULT '',
DROP CONSTRAINT summary_qa_turns_passage_check,
ADD CONSTRAINT summary_qa_turns_passage_check CHECK (char_length(passage) BETWEEN 0 AND 8000);