Name: luminus-migrations
Owner: luminus-framework
Description: Migrations library for Luminus
Created: 2016-02-28 19:13:40.0
Updated: 2018-03-19 08:02:36.0
Pushed: 2018-02-01 01:41:29.0
Homepage: null
Size: 26
Language: Clojure
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The library is a command line wrapper for Migratus.
The migrations can now be invoked by running luminus-migrations.core/migrate
. The function accepts
a vector of arguments follows by an options map. The options follow the Migratus ones, except for the
:db
key that's set to the :database-url
key using in Luminus.
myapp.db
require [luminus-migrations.core :refer migrate]))
opts {:database-url "<db-url>"})
set the databse
rate ["reset"] opts)
st pending migrations
rate ["pending"] opts)
stroy the migration
rate ["destroy" "201506104553"] opts)
n all outstanding migrations
rate ["migrate"] opts)
llback last migration
rate ["rollback"] opts)
n specified migrations
rate ["migrate" "201506104553" "201506120401"] opts)
llback specified migrations
rate ["rollback" "201506104553" "201506120401"] opts)
Copyright © 2016 Dmitri Sotnikov
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.