Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
552 B
Raw Blame
-- Restore the validated pre-WeChat constraint. This intentionally fails
-- closed while weixin_chat rows remain, because a rollback must not leave a
-- trusted constraint that existing rows violate.
ALTER TABLE issue DROP CONSTRAINT IF EXISTS issue_origin_type_check;
ALTER TABLE issue ADD CONSTRAINT issue_origin_type_check
    CHECK (origin_type IN ('autopilot', 'quick_create', 'lark_chat', 'slack_chat', 'agent_create', 'dingtalk_chat', 'wecom_chat', 'telegram_chat'))
    NOT VALID;
ALTER TABLE issue VALIDATE CONSTRAINT issue_origin_type_check;