Postgres module

migrated_catalog

procedure · 1 overloadsince 0.27.0Source

The catalog of the migrations in migrations_folder and their schema hash, read from the schema database on the server config names (built first when there is none); or what went wrong. Runs on a fiber, like every call that talks to the server.

migrated_catalog :: (
    config: Config,
    migrations_folder: string
) -> (Catalog, hash: string, problem: string)

The catalog of the migrations in migrations_folder and their schema hash, read from the schema database on the server config names (built first when there is none); or what went wrong. Runs on a fiber, like every call that talks to the server.

Parameters

config: Config
the server to build the migrations' schema database on.
migrations_folder: string
the folder of migration .sql files.

Returns

hash: string
problem: string

See also