Files
archie/internal/infrastructure/postgres/migrations/0057_repost_open_chat_states.sql
T

12 lines
389 B
SQL

-- 0056 read the old posted flag as "the current status was posted", but a
-- task flagged by its approval request and now holding an open pull request
-- was never told about the PR. Tasks in a reportable non-final state post it
-- once.
-- +goose Up
UPDATE tasks SET outcome_posted_status = ''
WHERE origin <> '' AND status IN ('waiting_approval', 'pr_open');
-- +goose Down
SELECT 1;