A component for handling migrations on a SQL database.
A component for handling migrations on a SQL database.
(migrate {:keys [datastore migrations strategy reporter]})Migrates the dependent database to the latest migration.
Migrates the dependent database to the latest migration.
(ragtime options)Create a Ragtime component for handling migrations. Expects a dependency :db that has a key :spec containing a clojure.java.jdbc compatible db-spec map.
Takes the following options:
:resource-path - the resource path to find migration files :strategy - the Ragtime strategy (defaults to ragtime.strategy/raise-error) :reporter - the reporter function (defaults to ragtime.repl/default-reporter)
Create a Ragtime component for handling migrations. Expects a dependency :db
that has a key :spec containing a clojure.java.jdbc compatible db-spec map.
Takes the following options:
:resource-path - the resource path to find migration files
:strategy - the Ragtime strategy
(defaults to ragtime.strategy/raise-error)
:reporter - the reporter function
(defaults to ragtime.repl/default-reporter)(reload {:keys [resource-path] :as component})Reload the migrations of a Ragtime component and return a new component.
Reload the migrations of a Ragtime component and return a new component.
(rollback component)(rollback {:keys [datastore migrations reporter]} amount-or-id)Rolls the dependent database back to a specific migration ID, or by a fixed number of migrations. If supplied with only one argument, the database is rolled back by only one migration.
Rolls the dependent database back to a specific migration ID, or by a fixed number of migrations. If supplied with only one argument, the database is rolled back by only one migration.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |