(create config & [name type])
Create a new migration with the current date
Create a new migration with the current date
(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.
(init config & [name])
Initialize the data store
Initialize the data store
(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.
(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.
(pending-list config)
List pending migrations
List pending migrations
(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.
(rollback config)
Rollback the last migration that was successfully applied.
Rollback the last migration that was successfully applied.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close