From 3c4f9feb1a9ef05f1175c3cd6c16081e4ebabd4b Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 25 May 2025 16:49:24 +0200 Subject: Store root question in db --- src/chef/database.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/chef/database.clj') 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]]}) -- cgit v1.2.3