I've not yet tested Lobos with 1.4, I'll have a look at it later today.
Hi,
I'm trying lobos for the first time on a new project, here's my lobos.config:
(ns lobos.config
(:use lobos.connectivity
banddit-api.db))
(def db-for-lobos
(merge
{:classname "org.postgresql.Driver"
:subprotocol "postgresql"}
(db-spec (:database-url app-env))))
(open-global db-for-lobos)
The connection gets properly open. Here's my lobos.migrations:
(ns lobos.migrations
(:refer-clojure :exclude [alter drop
bigint boolean char double float time])
(:use (lobos [migration :only [defmigration]] core schema
config)))
(defmigration add-users-table
(up [] (create
(table :users
(integer :id :unique))))
(down [] (drop (table :users))))
If I run (migrate), it correctly creates the lobos-migrations table, however it doesn't run the add-users-table migration.
If I run (list-migrations), I get an empty vector back.
Interestingly though, if I just run this:
(create
(table :users
(integer :id :unique)))
I am able to correctly create my table. It seems I'm missing something when defining the migration? It must be something silly but I can't really figure it out.
Does this ring any bells? For context, I'm using Clojure 1.4
Cheers,
Leo.