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
@spec down(keyword()) :: :ok
@spec migrated_version(keyword() | map()) :: non_neg_integer()
@spec up(keyword()) :: :ok