packages feed

peregrin 0.2.0 → 0.3.0

raw patch · 2 files changed

+13/−6 lines, 2 filesdep ~pg-harness-clientdep ~postgresql-simple

Dependency ranges changed: pg-harness-client, postgresql-simple

Files

peregrin.cabal view
@@ -1,12 +1,12 @@+Cabal-version:       2.2 Name:                peregrin-Version:             0.2.0+Version:             0.3.0 Synopsis:            Database migration support for use in other libraries. Description:         Database migration support for use in other libraries.                      Currently only supports PostgreSQL. License:             MIT License-file:        LICENSE Category:            Database-Cabal-version:       >=1.10 Build-type:          Simple Author:              Bardur Arantsson Maintainer:          Bardur Arantsson <bardur@scientician.net>@@ -18,7 +18,7 @@ Library   build-depends:      base >= 4.9 && < 5                     , bytestring >= 0.10 && < 0.11-                    , postgresql-simple >= 0.5.2.1 && < 0.6+                    , postgresql-simple >= 0.5.2.1 && < 0.7                     , text >= 1.1.0 && < 2   default-language:   Haskell2010   ghc-options:        -Wall@@ -31,8 +31,8 @@   hs-source-dirs:     src-test   main-is:            Main.hs   build-depends:      base == 4.*-                    , pg-harness-client >= 0.4.0 && < 0.5.0-                    , postgresql-simple >= 0.5.2.1 && < 0.6+                    , pg-harness-client >= 0.6.0 && < 0.7.0+                    , postgresql-simple >= 0.5.2.1 && < 0.7                     , resource-pool >= 0.2.1 && < 0.3                     , text >= 1.0 && < 2                     , transformers >= 0.5.2 && < 0.6
src-test/Database/PeregrinSpec.hs view
@@ -49,7 +49,14 @@         -- Verify:         assertCanSelectFromX -      it "throws an error if SQL is changed for a given change set ID" $ do+      it "throws an error if SQL is changed for a given change set ID (single call)" $ do+        -- Exercise:+        migrate' schema [ (cid0, createXSql, ())+                        , (cid0, createXSqlBad, ()) ]+          -- Verify: Should throw here+          `shouldThrow` (== MigrationModifiedError cid0)++      it "throws an error if SQL is changed for a given change set ID (multiple calls)" $ do         -- Exercise:         migrate' schema [ (cid0, createXSql, ()) ]         migrate' schema [ (cid0, createXSqlBad, ()) ]