packages feed

hasql-migration 0.1.2 → 0.1.3

raw patch · 2 files changed

+5/−4 lines, 2 filesdep ~basedep ~base64-bytestringdep ~bytestringPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, base64-bytestring, bytestring, contravariant, cryptohash, data-default-class, directory, hasql, hasql-transaction, hspec, text, time, transformers

API changes (from Hackage documentation)

Files

hasql-migration.cabal view
@@ -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
test/Hasql/MigrationTest.hs view
@@ -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