Permalink
Browse files

Added user email to database and shutdown call

Added user email to database and added shutdown-agents to the create-db
script.
  • Loading branch information...
David Davis
David Davis committed Aug 4, 2012
1 parent 826201c commit 86d833ae318c74d8e49dd1cd80c48732a39a237a
Showing with 7 additions and 1 deletion.
  1. +1 −1 create-db.sh
  2. +6 −0 src/shared_resource/datomic.clj
View
@@ -1,3 +1,3 @@
project_classpath=`lein classpath`
echo $project_classpath
-java -cp $project_classpath clojure.main -i ./src/shared_resource/datomic.clj -e "(use 'shared-resource.datomic) (create-database) (load-schema)"
+java -cp $project_classpath clojure.main -i ./src/shared_resource/datomic.clj -e "(use 'shared-resource.datomic) (create-database) (load-schema) (shutdown-agents)"
@@ -30,6 +30,12 @@
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "A user's full name"
+ :db.install/_attribute :db.part/db}
+ {:db/id #db/id[:db.part/db]
+ :db/ident :user/email
+ :db/valueType :db.type/string
+ :db/cardinality :db.cardinality/one
+ :db/doc "A user's email address"
:db.install/_attribute :db.part/db}])
;; schema for resources

0 comments on commit 86d833a

Please sign in to comment.