Commits

Shantanu Kumar committed 86826f6

add convenience visitor to enforce InnoDB engine for MySQL

Comments (0)

Files changed (1)

src/main/clj/org/bituf/clj_liquibase/sql_visitor.clj

                                  v)))
                   (mu/illegal-argval
                     'k ":include/:append/:prepend/:replace" k)))]
-    (into [] (reduce concat (map (fn [[k v]] (makev k v)) pairs)))))
+    (into [] (reduce concat (map (fn [[k v]] (makev k v)) pairs)))))
+
+
+;; ===== Some common visitors =====
+
+(def ^{:doc "SQL visitor to enforce InnoDB storage engine on MySQL"}
+      mysql-innodb (for-dbms! :mysql (make-append-visitor " engine=InnoDB")))