 
 (defn -main []
   (migrate #'initial-schema
-           #'add-promoted-field))+           #'add-promoted-field))

                     [(str (:name (meta migration)))
                      (Timestamp. (System/currentTimeMillis))]))

(defn migrate [& migrations]
  (sql/with-connection (config :db)
    (try (sql/create-table "migrations"
                           [:name :varchar "NOT NULL"]

(ns clojars.db.migrate
  (:require [clojure.java.jdbc :as sql]
            [clojure.java.io :as io]
            [clojars.config :refer [config]])
  (:import (java.sql Timestamp)))

