load_migrations for tools: the migrations, or a message saying what is wrong with the folder.
relative_to is a file whose folder relative paths start at; empty for the working directory.
- folder: the migrations folder.
- relative_to: a file whose folder relative paths start at; empty for the working directory.
read_migrations :: (
folder: string,
relative_to := ""
) -> ([] Migration, problem: string)
load_migrations for tools: the migrations, or a message saying what is wrong with the folder.
relative_to is a file whose folder relative paths start at; empty for the working directory.
Parameters
- folder: string
- the migrations folder.
- relative_to := ""
- a file whose folder relative paths start at; empty for the working directory.
Returns
- [] Migration
- problem: string