API Migration Service (MILTON.ApiMigrationService)

A lightweight background worker that applies the API’s Entity Framework Core migrations to its database (milton-db) on startup, then exits. It references the API project (which owns AppDbContext and the Migrations/) and runs Database.MigrateAsync so the API never has to apply migrations itself.

Only databases owned by a relational service need a migrator. MILTON.DocumentGenerator uses a separate database (docgen-db) purely for Wolverine saga + inbox/outbox storage, which Wolverine self-provisions — so it has no migrator. As more services take ownership of their own databases, each gets its own lightweight migrator of this shape.

0 items under this folder.