Migration.MakeFunctor that creates a migration manager for a given configuration.
Internally creates the tracking table if needed, computes missing migrations, and applies them.
module C : MIGRATION_CONFIGval apply :
Db.conn ->
?read_only:bool ->
?on_init:(unit -> unit Lwt.t) ->
?on_future:(applied:int -> known:int -> unit Lwt.t) ->
?on_applied:(name:string -> duration:Ptime.span -> unit Lwt.t) ->
unit ->
unit Tezos_error_monad.Error_monad.tzresult Lwt.tapply conn ?read_only ?on_init ?on_future ?on_applied () creates the tracking table if absent (calling on_init), determines which migrations are missing, and applies them in order.