You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
521 B
Clojure

(ns migrations
(:require [migratus.core :as migratus]
[integrant.repl.state :as state]))
(def config {:store :database
:migration-dir "migrations/"
:init-script "init.sql"
:db {:connection-uri (:jdbcUrl (-> state/config :com.darklimericks.db.core/connection))}})
(comment
config
(migratus/init config)
(migratus/migrate config)
(migratus/create config "User Limericks")
state/config
(:database.sql/connection state/system)
(migratus/init config))