package sihl-facade

  1. Overview
  2. Docs

Module Sihl_facade.MigrationSource

Sourceval empty : string -> Sihl_contract.Migration.t
Sourceval create_step : label:string -> ?check_fk:bool -> string -> Sihl_contract.Migration.step
include Sihl_contract.Migration.Sig
Sourceval register_migration : Sihl_contract.Migration.t -> unit

register_migration migration registers a migration migration with the migration service so it can be executed with `run_all`.

Sourceval register_migrations : Sihl_contract.Migration.t list -> unit

register_migrations migrations registers migrations migrations with the migration service so it can be executed with `run_all`.

Sourceval execute : Sihl_contract.Migration.t list -> unit Lwt.t

execute migrations runs all migrations migrations.

Sourceval run_all : unit -> unit Lwt.t

run_all () runs all migrations that have been registered.