mix orkestra.projection.migrate (orkestra v0.2.0)

Copy Markdown View Source

Runs all pending migrations for the named projection.

The projection's migration directory and migration tracking table are discovered via __projection_config__/0 on the projector module (generated by use Orkestra.Projector).

Usage

mix orkestra.projection.migrate MyApp.OrderProjector

Each projection uses an isolated migration_source table so migrations for different projections never interfere with each other.