Files
Agent-System/deploy/postgres/goose/00052_2026-09-17-document-duty-locked.sql
T
weichenandCursor 7d3474816b feat(db): add document_records duty_locked and duty_policy columns
Stamp instance-governed document duties at create time so heal/revoke can
skip locked rows without importing projectinstance.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 09:59:38 +00:00

12 lines
418 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- +goose Up
-- 实例治理职责锁定:受工作流实例规划约束的文档标记 duty_locked,heal/revoke 跳过。
ALTER TABLE document_records
ADD COLUMN IF NOT EXISTS duty_locked BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN IF NOT EXISTS duty_policy TEXT NOT NULL DEFAULT '';
-- +goose Down
ALTER TABLE document_records
DROP COLUMN IF EXISTS duty_policy,
DROP COLUMN IF EXISTS duty_locked;