luminus-framework/luminus-migrations

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

luminus-migrations

The library is a command line wrapper for Migratus.

Usage

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)
License

Copyright © 2016 Dmitri Sotnikov

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.