mix pgflow.check_schema (PgFlow v0.1.0)

Copy Markdown View Source

Verifies that the pgflow database schema exists and is compatible with this version of the Elixir implementation.

Usage

mix pgflow.check_schema [options]

Options

  • --repo - The Ecto repo to check. Default: reads from config

Examples

mix pgflow.check_schema
mix pgflow.check_schema --repo MyApp.Repo

What It Checks

  1. The pgflow schema exists
  2. Required tables exist: flows, steps, deps, runs, step_states, step_tasks, workers
  3. Required functions exist: start_flow, complete_task, fail_task, etc.
  4. pgmq extension is available