dc07ca8872
Decision (option a): a private marking stays a real booking (eget uttag/insattning), so it remains blocked in a locked or closed period; the legal escape for rows that are not affarshandelser is ignore. Private + locked now returns TX_CATEGORIZE_PRIVATE_PERIOD_LOCKED with remediation naming the ignore paths instead of a bare PERIOD_LOCKED, on all four categorize surfaces and the bulk driver. New v1 POST/DELETE /transactions/{id}/ignore (isTransactionBooked-based 409, idempotent) and a staged MCP gnubok_ignore_transaction (+ accounted_ alias, search visibility to respect the tools/list payload ceiling) with operation_type ignore_transaction; the CHECK pair 20260831070000/070001 rebuilds the constraint from main's newest list plus the new value. Dashboard toast gains an Ignorera i stallet action. Closes #1661
7 lines
285 B
SQL
7 lines
285 B
SQL
-- Validate the operation type CHECK re-added in 20260831070000.
|
|
-- This separate transaction avoids a full-table scan while the preceding
|
|
-- migration holds its stronger table lock.
|
|
|
|
ALTER TABLE public.pending_operations
|
|
VALIDATE CONSTRAINT pending_operations_operation_type_check;
|