Docket.Postgres.Migration (docket v0.1.0)

Copy Markdown View Source

Creates and versions the tables owned by Docket's PostgreSQL backend.

Schema version 1 contains durable graphs, runs, and events. Version 2 adds the admission-mode policy row, claim partitions, the authoritative unfinished-scope schedule, sticky logical-run admission, and supporting indexes. Every step is an ordinary transactional migration.

Summary

Functions

current_version()

down(opts \\ [])

@spec down(keyword()) :: :ok

initial_version()

migrated_version(opts \\ [])

@spec migrated_version(keyword() | map()) :: non_neg_integer()

up(opts \\ [])

@spec up(keyword()) :: :ok