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.
- config: the server to build the migrations' schema database on.
- migrations_folder: the folder of migration
.sqlfiles.
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
.sqlfiles.
Returns
- hash: string
- problem: string