Skip to content
Snippets Groups Projects
Commit 586c9a49 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

fix issue with lowercasing of column name which was causing issues with...

fix issue with lowercasing of column name which was causing issues with postgres, which allows for strict casing on column names.
parent 08b6fcdc
No related merge requests found
......@@ -75,7 +75,11 @@
(doseq [chunk (partition-all 300 objs)]
(print (color/blue \.))
(flush)
(k/insert e (k/values chunk)))
(k/insert e (k/values (if (= e DashboardCard)
;; mini-HACK to fix korma/h2 lowercasing these couple attributes
;; luckily this is the only place in our schema where we have camel case names
(mapv #(set/rename-keys % {:sizex :sizeX, :sizey :sizeY}) chunk)
chunk))))
(println (color/green "[OK]")))
(defn- insert-self-referencing-entity [e objs]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment