Phil uses this really cool trick:
https://github.com/technomancy/syme/blob/master/src/syme/db.clj#L66-L119

The benefit is that your migrations are just Clojure functions. No messing
around with files or timestamps or whatever. Dead simple.

I hope someone extracts it into a lib with tests around it. He won't on
principle, saying "copy/pasting it emphasizes just how simply this problem
can be solved". But there's something to be said for using a tested lib in
production code.


On Fri, Jun 14, 2013 at 11:24 AM, Reginald Choudari <
adnanchowdhur...@gmail.com> wrote:

> Hello all,
>
> I am trying to implement database migrations with Clojure. So far I have
> been looking at Drift (https://github.com/macourtney/drift) as a
> candidate for implementing this. My question is, does anyone have a
> database migration workflow that they use and would like to share? One
> problem I have been thinking is how to tackle database credentials/db name
> configuration. I know in Rails its common to use a YAML to provide this
> info, wondering if there was something more idiosyncratic to clojure?
>
> Thanks in advance
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to