dataflow/database
Paul Trowbridge 1791bf0f0a Store stack pivot layouts in DB; drop pivot_layouts FK
pivot_layouts.source_name had a FK to sources(name) preventing stack names
from being used as layout keys. Dropped the FK so any view name works.

- database/migrate_pivot_layouts_drop_fk.sql: drop the FK constraint
- api/routes/stacks.js: add GET/POST/DELETE /:name/layouts routes
- ui/src/api.js: add getStackPivotLayouts / saveStackPivotLayout / deleteStackPivotLayout
- ui/src/pages/Pivot.jsx: use DB for stack layouts instead of localStorage;
  collapse source/stack branches into saveLayout/deleteLayout helpers
- CLAUDE.md: document pivot layout persistence pattern

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 15:19:58 -04:00
..
queries Fix false-positive stale view warnings 2026-04-27 12:51:32 -04:00
functions.sql Status bar, stale tracking, Pivot stack selector, stack view fixes 2026-04-19 09:43:10 -04:00
migrate_input_value_jsonb.sql Add multi-capture regex, computed view fields, collapsible rules, and live preview 2026-03-29 16:37:15 -04:00
migrate_pivot_layouts_drop_fk.sql Store stack pivot layouts in DB; drop pivot_layouts FK 2026-05-02 15:19:58 -04:00
migrate_tps.sql Import log, constraint key overhaul, and dedup improvements 2026-04-13 23:44:30 -04:00
schema.sql Pivot: named layouts saved in DB per source 2026-04-15 07:31:46 -04:00