summaryrefslogtreecommitdiff
path: root/src/chef/database.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/chef/database.clj')
-rw-r--r--src/chef/database.clj6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/chef/database.clj b/src/chef/database.clj
index ec5d89d..af34b72 100644
--- a/src/chef/database.clj
+++ b/src/chef/database.clj
@@ -2,11 +2,13 @@
(:require [honey.sql :as sql]
[next.jdbc :as jdbc]
- [chef.database.init :as cdinit]))
+ [chef.database.init :as cdinit]
+ [chef.database.root-category :as cdroot-category]))
(def db (delay (jdbc/get-datasource {:dbtype "sqlite" :dbname "chef.db"})))
-(def ^:private patches {"init" cdinit/exec!})
+(def ^:private patches {"init" cdinit/exec!
+ "root-category" cdroot-category/exec!})
(defn run-patches! []
(->> (sql/format {:create-table [:applied-patches :if-not-exists]
:with-columns [[:name :text]]})