             (db.dataset-version/new-dataset-version tenant-conn
                                  next-dataset-version)
             (db.transformation/touch-dataset tenant-conn {:id dataset-id})
-            (db.transformation/drop-table tenant-conn {:table-name previous-table-name})
-            (lib/created next-dataset-version)))
+            (db.transformation/drop-table tenant-conn {:table-name previous-table-name})))
         (let [transformation (assoc (first transformations) :dataset-id dataset-id)
               {:keys [success? message columns execution-log] :as transformation-result}
               (try-apply-operation deps table-name columns transformation)]

(ns akvo.lumen.lib.transformation.engine
  (:require [akvo.lumen.lib :as lib]
            [akvo.lumen.util :as util]
            [akvo.lumen.db.transformation :as db.transformation]
            [akvo.lumen.db.dataset-version :as db.dataset-version]
            [clojure.set :as set]

                                                                                                  columns))))
                                    :columns (w/keywordize-keys columns)}]
          (db.dataset-version/new-dataset-version tenant-conn next-dataset-version)
          (db.transformation/touch-dataset tenant-conn {:id dataset-id}))))))

(defn- apply-undo [{:keys [tenant-conn] :as deps} dataset-id job-execution-id current-dataset-version]
  (let [imported-table-name (:imported-table-name current-dataset-version)
