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.
14 lines
395 B
Clojure
14 lines
395 B
Clojure
4 years ago
|
(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
|
||
|
state/config
|
||
|
(:database.sql/connection state/system)
|
||
|
(migratus/init config))
|