diff --git a/hasql-migration.cabal b/hasql-migration.cabal
--- a/hasql-migration.cabal
+++ b/hasql-migration.cabal
@@ -1,5 +1,5 @@
 name:                       hasql-migration
-version:                    0.1.2
+version:                    0.1.3
 synopsis:                   PostgreSQL Schema Migrations
 homepage:                   https://github.com/tvh/hasql-migration
 Bug-reports:                https://github.com/tvh/hasql-migration/issues
@@ -40,7 +40,7 @@
                             data-default-class          >= 0.0.1    && < 0.2,
                             directory                   >= 1.2      && < 1.4,
                             hasql                       >= 0.19     && < 0.20,
-                            hasql-transaction           >= 0.4      && < 0.5,
+                            hasql-transaction           >= 0.5      && < 0.6,
                             text                        >= 1.2      && < 1.3,
                             time                        >= 1.4      && < 1.7
 
@@ -54,6 +54,6 @@
                             bytestring                  >= 0.10     && < 0.11,
                             hasql                       >= 0.19     && < 0.20,
                             hasql-migration,
-                            hasql-transaction           >= 0.4      && < 0.5,
+                            hasql-transaction           >= 0.5      && < 0.6,
                             hspec                       >= 2.2      && < 2.4,
                             transformers                >= 0.3      && < 0.6
diff --git a/test/Hasql/MigrationTest.hs b/test/Hasql/MigrationTest.hs
--- a/test/Hasql/MigrationTest.hs
+++ b/test/Hasql/MigrationTest.hs
@@ -17,6 +17,7 @@
 import           Hasql.Session                        (run, Error)
 import           Hasql.Connection
 import qualified Hasql.Transaction                    as Tx
+import qualified Hasql.Transaction.Sessions           as Tx
 import           Hasql.Migration
 import           Hasql.Migration.Util                 (existsTable)
 import           Test.Hspec                           (Spec, describe, it,
@@ -24,7 +25,7 @@
 
 runTx :: Connection -> Tx.Transaction a -> IO (Either Error a)
 runTx con act = do
-    run (Tx.run act Tx.ReadCommitted Tx.Write) con
+    run (Tx.transaction Tx.ReadCommitted Tx.Write act) con
 
 migrationSpec :: Connection -> Spec
 migrationSpec con = describe "Migrations" $ do
