diff --git a/jdbc/src/ragtime/jdbc.clj b/jdbc/src/ragtime/jdbc.clj index 5ed7d19..c767c99 100644 --- a/jdbc/src/ragtime/jdbc.clj +++ b/jdbc/src/ragtime/jdbc.clj @@ -70,7 +70,7 @@ (defn- execute-sql! [db-spec statements] (doseq [s statements] - (sql/execute! db-spec [s]))) + (sql/execute! db-spec (if (string? s) [s] s)))) (defrecord SqlMigration [id up down] p/Migration diff --git a/jdbc/test/migrations/001-test.edn b/jdbc/test/migrations/001-test.edn index 46d1cf3..4530070 100644 --- a/jdbc/test/migrations/001-test.edn +++ b/jdbc/test/migrations/001-test.edn @@ -1,2 +1,3 @@ -{:up ["CREATE TABLE foo (id int)"] +{:up ["CREATE TABLE foo (id int)" + ["INSERT INTO foo(id) VALUES(?)" 1]] :down ["DROP TABLE foo"]}