diff --git a/src/metabase/cmd/load_from_h2.clj b/src/metabase/cmd/load_from_h2.clj index 326eff4eaa558a9375d127353cc88205dfdc91d4..57cdf7256ee55c8401bbb69b78efce3f7b117500 100644 --- a/src/metabase/cmd/load_from_h2.clj +++ b/src/metabase/cmd/load_from_h2.clj @@ -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]