(redo! props)
Reapply the last applied migration. This will roll it back first
Reapply the last applied migration. This will roll it back first
(run {create-ctx-fn :create-ctx!
create-store-fn :create-store!
shutdown-fn :shutdown!
migrations-dir :migrations-dir
action :action})
A run function to be used in a Deps.edn project to execute migrations using the file loader.
:init-store! - Should be given a symbol that resolves to a datastore init function. :migrations-dir - should be a resource path to a directory containing migration files that will be loaded using the file loader. :action - should be given an action to perform. One of #{:up :down :next :undo :redo}
A run function to be used in a Deps.edn project to execute migrations using the file loader. :init-store! - Should be given a symbol that resolves to a datastore init function. :migrations-dir - should be a resource path to a directory containing migration files that will be loaded using the file loader. :action - should be given an action to perform. One of #{:up :down :next :undo :redo}
(run-down! props)
Rollback all applied migrations
Rollback all applied migrations
(run-next! props)
Run the next unapplied migration
Run the next unapplied migration
(run-up! props)
Execute all unapplied migrations
Execute all unapplied migrations
(undo! props)
Rollback the last applied migration
Rollback the last applied migration
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close