                     (println "nil by author" (th :thread/id)))
                   [:db/add [:thread/id (th :thread/id)]
                    :thread/group [:group/id grp]])))))]
-    (d/transact db/*conn* tx)))
+    (d/transact db/conn tx)))
 
 (defn migrate-2016-05-07
   "Change how user preferences are stored"
   []
   ; rename old prefs
-  (d/transact db/*conn* [{:db/id :user/preferences
+  (d/transact db/conn [{:db/id :user/preferences
                           :db/ident :user/preferences-old}])
   ; create new entity type
-  (d/transact db/*conn*
+  (d/transact db/conn
     [{:db/ident :user/preferences
       :db/valueType :db.type/ref
       :db/cardinality :db.cardinality/many

(defn migrate-2016-03-02
  "Add extension user"
  []
  (d/transact db/*conn*
    [{:db/ident :extension/user
      :db/valueType :db.type/ref
      :db/cardinality :db.cardinality/one

(defn migrate-2016-04-29
  "Add group admins"
  []
  (d/transact db/conn
    [{:db/ident :group/admins
      :db/valueType :db.type/ref
      :db/cardinality :db.cardinality/many
