# `mix pgflow.check_schema`
[🔗](https://github.com/agoodway/pgflow/blob/v0.1.0/lib/mix/tasks/pgflow.check_schema.ex#L1)

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
