packages feed

beam-migrate 0.5.5.0 → 0.6.0.0

raw patch · 4 files changed

+26/−5 lines, 4 filesdep ~aesondep ~beam-coredep ~haskell-src-extsPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: aeson, beam-core, haskell-src-exts, time

API changes (from Hackage documentation)

- Database.Beam.Migrate.SQL.BeamExtensions: class BeamMigrateSqlBackend be => BeamSqlBackendHasSerial be
+ Database.Beam.Migrate.SQL.BeamExtensions: class BeamMigrateSqlBackend be => BeamSqlBackendHasSerial n be
- Database.Beam.Migrate.SQL.BeamExtensions: genericSerial :: (BeamSqlBackendHasSerial be, FieldReturnType 'True 'False be (SqlSerial Int) a) => Text -> a
+ Database.Beam.Migrate.SQL.BeamExtensions: genericSerial :: (BeamSqlBackendHasSerial n be, FieldReturnType 'True 'False be (SqlSerial n) a) => Text -> a

Files

ChangeLog.md view
@@ -1,3 +1,23 @@+# 0.6.0.0++## Interface changes++* `BeamSqlBackendHasSerial` is now polymorphic over the column's underlying+  integer type. The class gained a new parameter `n` and `genericSerial` now+  has type `FieldReturnType 'True 'False be (SqlSerial n) a => Text -> a`,+  matching the corresponding generalisation of `genericSerial` in+  `beam-core` (#534). Existing instances must be updated to declare which+  integer types they support (e.g. `Int16`, `Int32`, `Int64`).++## Added features++* Added a `weekField` definition to the `IsSql92ExtractFieldSyntax` instance+  for `HsExpr`, in support of the new `week_` extract field in `beam-core`.++## Updated dependencies++* Bumped the lower bound on `beam-core` to `0.11`.+ # 0.5.5.0  ## Added features
Database/Beam/Haskell/Syntax.hs view
@@ -644,6 +644,7 @@   hourField    = hsVar "hourField"   yearField    = hsVar "yearField"   monthField   = hsVar "monthField"+  weekField     = hsVar "weekField"   dayField     = hsVar "dayField"  instance IsSql92ExpressionSyntax HsExpr where
Database/Beam/Migrate/SQL/BeamExtensions.hs view
@@ -29,6 +29,6 @@ --   'genericSerial' may appear and may fail at run-time if these conditions --   aren't met. Please refer to the backend of your choice for more --   information.-class BeamMigrateSqlBackend be =>-  BeamSqlBackendHasSerial be where-  genericSerial :: FieldReturnType 'True 'False be (SqlSerial Int) a => Text -> a+class (BeamMigrateSqlBackend be) =>+  BeamSqlBackendHasSerial n be where+  genericSerial :: FieldReturnType 'True 'False be (SqlSerial n) a => Text -> a
beam-migrate.cabal view
@@ -1,5 +1,5 @@ name:                beam-migrate-version:             0.5.5.0+version:             0.6.0.0 synopsis:            SQL DDL support and migrations support library for Beam description:         This package provides type classes to allow backends to implement                      SQL DDL support for beam. This allows you to use beam syntax to@@ -56,7 +56,7 @@                        Database.Beam.Migrate.Types.Predicates    build-depends:       base                 >=4.11    && <5.0,-                       beam-core            >=0.10    && <0.11,+                       beam-core            >=0.11    && <0.12,                        text                 >=1.2     && <2.2,                        aeson                >=0.11    && <2.3,                        bytestring           >=0.10    && <0.13,