feat(db): commit initial migration SQL for production deployment - #10
Conversation
Generated via drizzle-kit generate from current 9-table schema (signals, signal_rules, workflows, workflow_schedules, executions, execution_steps, agents, agent_tools, tool_registry). These files are required for db:migrate to work in production containers. NEVER use db:push in production \xe2\x80\x94 see migrations/README.md in cluster-deploy. https://claude.ai/code/session_01VZPc4xQECHmaTddwaq6zf2
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR adds the initial database migration for an event-driven workflow execution system in PostgreSQL. It defines five ENUM types for status tracking and creates eight tables to manage agents, tools, executions, signals, scheduling, and workflows, along with B-tree indexes for query optimization and migration metadata snapshots. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
server/src/db/migrations/0000_bizarre_the_hunter.sql(5.9 KB, 9 tables) — generated viapnpm db:generate. Required fordb:migrateto work in production.server/src/db/migrations/meta/— drizzle journal + schema snapshot.Tables covered:
signals,signal_rules,workflows,workflow_schedules,executions,execution_steps,agents,agent_tools,tool_registry.Verification
cd server && pnpm install && pnpm db:generatereproduces the SQL.Test plan
docker compose exec sigops-server pnpm db:migrateapplies cleanlyhttps://claude.ai/code/session_01VZPc4xQECHmaTddwaq6zf2
Summary by CodeRabbit
Release Notes