Postgres module

schema_hash

procedure · 1 overloadsince 0.27.0Source

The schema hash: SHA-256 chained over each migration's name and digest, in order, so it changes when any file is renamed, edited, added or removed. Hex.

schema_hash :: (migrations: [] Migration) -> string

The schema hash: SHA-256 chained over each migration's name and digest, in order, so it changes when any file is renamed, edited, added or removed. Hex.

Parameters

migrations: [] Migration
the migrations, in order.

Returns

string

See also