All checks were successful
Deploy Development / deploy (push) Successful in 48s
Test Suite / pytest-backend (push) Successful in 3m54s
Test Suite / lint-backend (push) Successful in 3s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 19s
Test Suite / playwright-smoke (push) Successful in 15s
Epics als Backlog-Container mit Baum-UI, Convert-Guard und pytest-Abdeckung — Roll-up bleibt für P4 offen. Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
607 B
SQL
15 lines
607 B
SQL
-- AP2.2f / ADP Backlog Epic-Hierarchie — parent_backlog_id + item_kind epic
|
|
|
|
ALTER TABLE backlog_items
|
|
ADD COLUMN IF NOT EXISTS parent_backlog_id UUID NULL
|
|
REFERENCES backlog_items (id) ON DELETE SET NULL;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_backlog_parent_backlog
|
|
ON backlog_items (tenant_id, initiative_id, parent_backlog_id)
|
|
WHERE parent_backlog_id IS NOT NULL;
|
|
|
|
ALTER TABLE backlog_items DROP CONSTRAINT IF EXISTS backlog_items_item_kind_check;
|
|
ALTER TABLE backlog_items
|
|
ADD CONSTRAINT backlog_items_item_kind_check
|
|
CHECK (item_kind IN ('story', 'bug', 'issue', 'epic'));
|