package sihl-persistence

  1. Overview
  2. Docs

Module Migration.MakeSource

Parameters

Signature

Sourceval register_migration : Sihl_type.Migration.t -> unit

Register a migration, so it can be run by the service.

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

Register multiple migrations.

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

Run a list of migrations.

Sourceval run_all : unit -> unit Lwt.t

Run all registered migrations.

Sourceval register : ?migrations:Sihl_type.Migration.t list -> unit -> Sihl_core.Container.Service.t