diff options
author | Tim <contact@bytim.eu> | 2025-05-16 16:08:34 +0200 |
---|---|---|
committer | Tim <contact@bytim.eu> | 2025-05-16 16:08:34 +0200 |
commit | 89761adad91ff03e7a203b94133474f02a760697 (patch) | |
tree | 8272dad3c23f99d668d1efba07afd6830659c57e /src/chef | |
parent | 5f5028307374b471301a38436e2dab2263e005a1 (diff) | |
download | chef-89761adad91ff03e7a203b94133474f02a760697.tar.xz chef-89761adad91ff03e7a203b94133474f02a760697.zip |
Fix some things at the categories table
Diffstat (limited to 'src/chef')
-rw-r--r-- | src/chef/database/init.clj | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chef/database/init.clj b/src/chef/database/init.clj index c1128e9..7f23d27 100644 --- a/src/chef/database/init.clj +++ b/src/chef/database/init.clj @@ -4,10 +4,10 @@ (defn exec! [db] (jdbc/execute! db (sql/format {:create-table :categories - :with-columns [[:id :integer :auto-increment :primary-key] + :with-columns [[:id :integer :primary-key :autoincrement] [:name :text] [:question :text] - [:parent :text]]})) ;TODO: create root category + [:parent :integer]]})) ;TODO: create root category (jdbc/execute! db (sql/format {:create-table :recipes :with-columns [[:id :integer :auto-increment :primary-key] [:category :integer] |