PgFlow.Upstream.Spec.V02 (PgFlow v0.7.2)

Copy Markdown View Source

Record of how core V02 was imported from upstream 94490709.

V02 is published. PgFlow.Upstream.Bundle refuses to rebuild it. These functions stay so the pinned files, hashes, and portability rules remain reviewable next to the frozen SQL.

Summary

Functions

Upstream migration filenames, in import order.

Manifest fields that describe the V02 import but are not derived from the SQL.

Upstream commit whose bytes produced core V02.

Portability rules applied when V02 was built.

SHA-256 of each pinned upstream file.

Types

rule()

@type rule() :: %{
  id: atom(),
  match: (String.t() -> boolean()),
  action:
    :omit
    | :reject
    | {:replace, (String.t() -> term())}
    | {:prepend, String.t()},
  expected: non_neg_integer(),
  reason: String.t()
}

Functions

files()

@spec files() :: [String.t()]

Upstream migration filenames, in import order.

manifest_notes()

@spec manifest_notes() :: map()

Manifest fields that describe the V02 import but are not derived from the SQL.

pinned_sha()

@spec pinned_sha() :: String.t()

Upstream commit whose bytes produced core V02.

rules()

@spec rules() :: [rule()]

Portability rules applied when V02 was built.

The first matching rule wins. :reject rules are expected to match nothing in the pinned sources.

source_hashes()

@spec source_hashes() :: %{required(String.t()) => String.t()}

SHA-256 of each pinned upstream file.