On Tue, Nov 29, 2011 at 6:13 PM, Matt macourt...@gmail.com 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
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 your
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,
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).
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
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 are
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
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
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
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
10 matches
Mail list logo