Workflow Database Migrations
Summary
The Workflow project contains one migration, its generated designer, one model snapshot and one design-time DbContext factory.
Migration ownership
Initial migration
The migration creates the default schema, 11 tables, foreign keys, indexes and constraints represented by the current mapping. Its down path removes those objects.
Startup behavior
Automatic migration occurs only in Development and only when not explicitly skipped. Production execution is not implemented in the service startup path.
Design time
The factory builds the same context with a bypass tenant adapter. Connection resolution exists in source but sensitive values are intentionally omitted from this public documentation.
Requires Confirmation
Production migration tooling, approval, rollback rehearsal, drift detection and credential ownership require confirmation.
Source References
microservices/src/workflow-service/Infrastructure/Migrations/20260706165438_InitialWorkflowSchema.csmicroservices/src/workflow-service/Infrastructure/Migrations/WorkflowDbContextModelSnapshot.csmicroservices/src/workflow-service/Infrastructure/Persistence.csmicroservices/src/workflow-service/Program.cs
Related Articles
See Also
Keywords
Workflow database, EF Core, Workflow schema.
Revision Information
- Status: Draft
- Last reviewed: 2026-07-20
- Next review: 2026-10-20