We used drift for a while, but found it didn't add much over plain sql, and
was forcing us to write "down"  migrations, which imho are a mistake.

We ended up moving to Flyway, a very straightforward Java migration
library, with a thin clojure wrapper. This has the advantages of using
plain sql files for migrations, and having a command-line migration tool
that is very handy for running migrations on prod.

- Korny
On 15 Jun 2013 09:41, "Alex Baranosky" <alexander.barano...@gmail.com>
wrote:

> Inspired by Technomancy's suggestion to try a simpler approach to
> migrations on IRC, I came up with this tiny library based heavily on code
> from the clojars repo, that Phil pointed me to.  Personally, I thought
> Ragtime and Lobos, were overkill.
>
> https://github.com/runa-dev/kits/blob/master/src/kits/db_migrator.clj
>
> On Fri, Jun 14, 2013 at 3:32 PM, Juha Syrjälä <juha.syrj...@gmail.com>wrote:
>
>> There are also following libraries to handle migrations:
>>
>> Ragtime: https://github.com/weavejester/ragtime
>> Lobos: https://github.com/budu/lobos
>>
>> Lobos has its own DSL to implement database manipulation. Ragtime uses
>> normal Clojure functions instead.
>>
>>
>> On Friday, June 14, 2013 7:24:39 PM UTC+3, Reginald Choudari 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<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.
>
>
>

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