Docket.Postgres.Migration (docket v0.1.0-dev)

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 exact-cap policy and partition authority, the authoritative unfinished-tenant ring, sticky logical-run admission, the domain cursor, the sole TenantFair claim function, 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