Liking cljdoc? Tell your friends :D

migratus.core


createclj

(create config & [name type])

Create a new migration with the current date

Create a new migration with the current date
sourceraw docstring

destroyclj

(destroy config & [name])

Destroy migration

Destroy migration
sourceraw docstring

downclj

(down config & ids)

Bring down the migrations identified by ids. Any migrations that are not completed will be skipped.

Bring down the migrations identified by ids.
Any migrations that are not completed will be skipped.
sourceraw docstring

initclj

(init config & [name])

Initialize the data store

Initialize the data store
sourceraw docstring

migrateclj

(migrate config)

Bring up any migrations that are not completed. Returns nil if successful, :ignore if the table is reserved, :failure otherwise. Supports thread cancellation.

Bring up any migrations that are not completed.
Returns nil if successful, :ignore if the table is reserved, :failure otherwise.
Supports thread cancellation.
sourceraw docstring

migrate-until-just-beforeclj

(migrate-until-just-before config migration-id)

Run all migrations preceding migration-id. This is useful when testing that a migration behaves as expected on fixture data. This only considers uncompleted migrations, and will not migrate down.

Run all migrations preceding migration-id. This is useful when testing that a
migration behaves as expected on fixture data. This only considers uncompleted
migrations, and will not migrate down.
sourceraw docstring

migration-nameclj

(migration-name migration)
source

pending-listclj

(pending-list config)

List pending migrations

List pending migrations
sourceraw docstring

require-pluginclj

(require-plugin {:keys [store]})
source

resetclj

(reset config)

Reset the database by down-ing all migrations successfully applied, then up-ing all migratinos.

Reset the database by down-ing all migrations successfully
applied, then up-ing all migratinos.
sourceraw docstring

rollbackclj

(rollback config)

Rollback the last migration that was successfully applied.

Rollback the last migration that was successfully applied.
sourceraw docstring

runclj

(run store ids command)
source

uncompleted-migrationsclj

(uncompleted-migrations config store)
source

upclj

(up config & ids)

Bring up the migrations identified by ids. Any migrations that are already complete will be skipped.

Bring up the migrations identified by ids.
Any migrations that are already complete will be skipped.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close