 
 (defn- new-current-sql []
   (str "INSERT INTO " (qualified-current)
-       " (dataset, collection, feature_id, version, all_versions, valid_from, valid_to, feature, tiles)
-VALUES (?, ?, ? ,?, ?, ?, ?, ?, ?)"))
+       " (dataset, collection, feature_id, version, valid_from, valid_to, feature, tiles)
+VALUES (?, ?, ? ,?, ?, ?, ?, ?)"))
 
 (defn- new-current
   ([db features]
    (try
-     (let [transform-fn (juxt :_dataset :_collection :_id :_version :_all_versions
+     (let [transform-fn (juxt :_dataset :_collection :_id :_version
                               :_valid_from :_valid_to pg/to-json :_tiles)
            records (map transform-fn features)]
        (j/execute! db (cons (new-current-sql) records) :multi? true :transaction? false))

               [:collection "varchar(255)"]
               [:feature_id "varchar(100)"]
               [:version "uuid"]
               [:all_versions "uuid[]"]
               [:valid_from "timestamp without time zone"]
               [:valid_to "timestamp without time zone"]
               [:feature "text"]

          for-cache
          (map (fn [[ds col fid f]] [ [ds col fid]] (pg/from-json f) ) (drop 1 results))]
      for-cache)))

(defn- delete-current-sql []
  (str "DELETE FROM " (qualified-current)
