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

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
(migratus/migrate config)
(migratus/create config "User Limericks")
4 years ago
state/config
(:database.sql/connection state/system)
(migratus/init config))