ALTER TABLE task_table ADD COLUMN IF NOT EXISTS timestamp_required BOOLEAN NOT NULL DEFAULT FALSE;

ALTER TABLE qna_table ADD COLUMN IF NOT EXISTS start_ts BIGINT;

CREATE INDEX IF NOT EXISTS ix_qna_task_id_timestamp_id ON qna_table (task_id, start_ts, id);
