Skip to content

fix(history): keep existing event and template history - #339

Merged
stakach merged 1 commit into
masterfrom
fix/keep-legacy-history
Oct 20, 2026
Merged

stakach merged 1 commit into
masterfrom
fix/keep-legacy-history

Conversation

@stakach

@stakach stakach commented Oct 20, 2026

Copy link
Copy Markdown
Member

Follow up to #337

The unified history migration dropped the previous history rows on the assumption nothing read them, but staff-api writes calendar event changes there and serves them from GET /events/history.

The migration now renames the old table, copies its rows into the new one (type → resource_type, template → signage_template) and then drops it. Down restores them.

Environments that have already run 9.121's migration have lost those rows; this keeps them everywhere else.

Review

  • Ran Up, Down and Up again on Postgres 18 with old history and group_history rows: event and template rows are kept in both directions, alongside the migrated group history.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the type: bug something isn't working label Oct 20, 2026
@stakach
stakach merged commit 5bad5c8 into master Oct 20, 2026
8 checks passed
@stakach
stakach deleted the fix/keep-legacy-history branch October 20, 2026 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant