Files
paliad/internal/db/migrations/075_project_events_timeline_kind.down.sql
m 49c260b888 feat(t-paliad-171): migration 075 — project_events.timeline_kind opt-in column
Adds a nullable text column on paliad.project_events so a subset of
audit rows can opt into surfacing as SmartTimeline content. Existing
rows stay NULL (audit-only); the partial index keeps the lookup tiny
because the SmartTimeline read filter is the indexed predicate.

Value space (enforced in code in internal/services/projection_service.go):
  'milestone'        — structural event (counterclaim_filed, ...)
  'custom_milestone' — free-text "Eigener Meilenstein"
  NULL               — audit only (default)

Design ref: docs/design-smart-timeline-2026-05-08.md §2.2.
2026-05-08 23:33:53 +02:00

7 lines
202 B
SQL

-- t-paliad-171 down — drop the SmartTimeline opt-in column.
DROP INDEX IF EXISTS paliad.project_events_timeline_kind_idx;
ALTER TABLE paliad.project_events
DROP COLUMN IF EXISTS timeline_kind;