Skip to main content

Migrations

Command Pattern

Always target the Infra project with the Web startup project.

dotnet ef migrations add <MigrationName> --project src/xTrakt.Platform.Infra --startup-project src/Web
dotnet ef database update --project src/xTrakt.Platform.Infra --startup-project src/Web

Review Checklist

  1. Confirm entity mappings use snake_case table and column names.
  2. Confirm list and get queries filter tenant data.
  3. Confirm soft-deleted records are excluded from reads.
  4. Confirm audit fields are populated through the shared interceptor.
  5. Review generated migration SQL before applying it to shared environments.