mix durable.gen.upgrade (Durable v0.1.0-rc)

View Source

Generates an Ecto migration that upgrades Durable's internal database schema.

This is the host-application counterpart to mix durable.gen.migration. Durable migrations are explicit: when Durable adds new internal migrations, generate a new wrapper migration and run mix ecto.migrate.

Usage

mix durable.gen.upgrade
mix durable.gen.upgrade -r MyApp.Repo
mix durable.gen.upgrade --prefix private
mix durable.gen.upgrade --to 20260413000000

Options

  • -r, --repo - The Ecto repo to generate the migration for
  • --prefix - Durable PostgreSQL schema prefix (default: "durable")
  • --to - Durable migration version to upgrade to (default: latest)
  • --migrations-path - Destination migrations path