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.

16 lines
467 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 (-> state/config :database.sql/connection :jdbcUrl)}})
(comment
(migratus/migrate config)
(migratus/create config "User Limericks")
state/config
(:database.sql/connection state/system)
(migratus/init config))