Skip to content

bickfordb/migratory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

migratory

Clojure migration library

Usage

(ns my.project.migrations
  (:use migratory))

(defmigrations migrations)

(up add-account-table
  (do-sql "create account (id serial primary key, email text)"))

(up add-gender-to-account
  (do-sql "alter table account add column gender text not null default 'male'"))

; main method
(defn -main
 [& args]
 (migrate-up! :migrations migrations
              :conn-spec {... jdbc connection spec ...}))

License

Copyright 2014 Brandon Bickford

Distributed under the GNU GPL V3 or later

About

Barebones Clojure migration library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published