Re: Drift 1.4.0 released.

2011-11-30 Thread Phil Hagelberg
On Tue, Nov 29, 2011 at 6:13 PM, Matt wrote: > 1.4.2 is out now and should work with both Clojure 1.2.1 and 1.3.0. > However, Leiningen currently doesn't work with Clojure 1.3.0. > > At work, I actually have a project.clj with Clojure 1.3.0 in the > dependencies, and a Clojure 1.2.1 in the dev-dep

Re: Drift 1.4.0 released.

2011-11-29 Thread Matt
1.4.2 is out now and should work with both Clojure 1.2.1 and 1.3.0. However, Leiningen currently doesn't work with Clojure 1.3.0. At work, I actually have a project.clj with Clojure 1.3.0 in the dependencies, and a Clojure 1.2.1 in the dev-dependencies to make Leiningen work. -Matt On Nov 29, 5

Re: Drift 1.4.0 released.

2011-11-29 Thread Edmund
Confirmed, 1.4.2-SNAPSHOT works with 1.3.0 now, thanks for the help. Edmund On 27/11/2011 16:23, Matt wrote: > I just sent you a pull request to fix the Clojure 1.3 incompatibility. > > Also, you may want to use the current-version and update-version > functions in drift-db.migrate instead of y

Re: Drift 1.4.0 released.

2011-11-27 Thread Matt
I just sent you a pull request to fix the Clojure 1.3 incompatibility. Also, you may want to use the current-version and update-version functions in drift-db.migrate instead of your own home grown functions. Though you would have to create your own initialize function to initialize the drift-db fl

Re: Drift 1.4.0 released.

2011-11-27 Thread Edmund
Bingo! Thanks for that, version 1.3.0 incompatibility it is. On 27/11/2011 13:41, Chris Perkins wrote: > My guess would be a clojure version mismatch, based on the > stacktrace. Have you tried changing your project to use clojure > 1.2.1? > > - Chris > > -- You received this message because you

Re: Drift 1.4.0 released.

2011-11-27 Thread Chris Perkins
My guess would be a clojure version mismatch, based on the stacktrace. Have you tried changing your project to use clojure 1.2.1? - Chris -- 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

Re: Drift 1.4.0 released.

2011-11-27 Thread Edmund
Sadly, there is no improvement. I've made a minimal project to demonstrate. Literally - lein new tdrift - modify project.clj - add migration-config.clj - add appropriate migration directory - lein deps - lein create-migration I've put it up on github (https://github.com/ejackson/tdrift). Perhap

Re: Drift 1.4.0 released.

2011-11-26 Thread Matt
It looks like a bug in Drift. Try adding an init function which takes one argument but doesn't do anything. Your new migrate-config should look something like: (defn migrate-config [] {:init (fn [_] ) :directory "/db/migrations" :current-version db-version :update-version update-db

Re: [ANN] Drift 1.4.0 released.

2011-11-26 Thread Edmund
Hello, Thanks for this library, it'll really help me out. I'm a little stuck on getting bootstrapped, can you perhaps give me some guidance ? Basically I'm stuck at step 5, attempting to create my first migration, what am I missing ? Thanks, Edmund --

[ANN] Drift 1.4.0 released.

2011-11-24 Thread Matt
Drift is a Rails like migration library for Clojure. I've recently released version 1.4.0 of Drift which includes: A new Java interface. You can now run Drift migrations, find out the database version, or determine the highest migration number from java. User generated migration numbers and time