refactor: simplify database schema and remove role history #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
message_author_id→author_id,reactor_role_at_time→reactor_role)role_historytable and all related code (auditing feature not needed)Net change: -142 lines
Database Migration Checklist
Local Development
Drop all tables:
psql daimyo -c "DROP TABLE IF EXISTS pgmigrations, content_drafts, content_pipeline_runs, content_stories, reactions, role_history CASCADE;"Re-run migrations:
cd backend pnpm migrate upRailway Deployment
Drop all tables via Railway CLI:
Or via psql with DATABASE_URL:
Or via Railway Dashboard:
Trigger a redeploy (migrations run automatically on startup)
Verify Schema
Test plan
pnpm build)pnpm test)🤖 Generated with Claude Code