packages feed

sydtest-persistent-postgresql 0.2.0.2 → 0.2.0.3

raw patch · 4 files changed

+20/−5 lines, 4 files

Files

CHANGELOG.md view
@@ -1,5 +1,11 @@ # Changelog +## [0.2.0.3] - 2023-10-09++### Added++* Compatibility with `GHC >= 9.8`.+ ## [0.2.0.2] - 2022-05-05  ### Added
sydtest-persistent-postgresql.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.34.7.+-- This file has been generated from package.yaml by hpack version 0.35.2. -- -- see: https://github.com/sol/hpack  name:           sydtest-persistent-postgresql-version:        0.2.0.2+version:        0.2.0.3 synopsis:       An persistent-postgresql companion library for sydtest category:       Testing homepage:       https://github.com/NorfairKing/sydtest#readme@@ -19,6 +19,7 @@ extra-source-files:     LICENSE.md     CHANGELOG.md+    test_resources/migration.sql  source-repository head   type: git@@ -40,7 +41,6 @@       base >=4.7 && <5     , monad-logger     , mtl-    , persistent     , persistent-postgresql     , sydtest     , sydtest-persistent@@ -62,11 +62,10 @@   build-depends:       base >=4.7 && <5     , persistent-    , persistent-postgresql     , sydtest     , sydtest-persistent-postgresql+  default-language: Haskell2010   if flag(sydtest_integration_tests)     buildable: True   else     buildable: False-  default-language: Haskell2010
test/Test/Syd/Persistent/Example.hs view
@@ -11,6 +11,7 @@ {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE TypeOperators #-} {-# LANGUAGE UndecidableInstances #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} 
+ test_resources/migration.sql view
@@ -0,0 +1,9 @@+CREATe TABLE "person"("id" SERIAL8  PRIMARY KEY UNIQUE,"name" VARCHAR NOT NULL,"age" INT8 NULL);++-- ATTENTION CODE REVIEWER+-- If this file has been updated, please make sure to check+-- whether this test failed before that happened:+-- "Test.Syd.Persistent.PostgresqlSpec.persistPostgresqlSpec.Can automatically migrate from the previous database schema"+-- If this test failed beforehand, but this golden test has+-- been updated anyway, that means the current migration is+-- dangerous with respect to the current database.