-- Publish existing non-archived question sets and default future ones to PUBLISHED.
UPDATE question_sets
SET status = 'PUBLISHED',
    updated_at = CURRENT_TIMESTAMP
WHERE status IN ('DRAFT', 'INACTIVE');

ALTER TABLE question_sets
    ALTER COLUMN status SET DEFAULT 'PUBLISHED';
