OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-persistent?expand=0&rev=127
728 lines
31 KiB
Plaintext
728 lines
31 KiB
Plaintext
-------------------------------------------------------------------
|
|
Wed Jul 9 17:45:02 UTC 2025 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.17.1.0.
|
|
# 2.17.1.0
|
|
|
|
* [#1601](https://github.com/yesodweb/persistent/pull/1601)
|
|
* Fix parsing of quoted entity field attributes
|
|
* Add and enforce `psQuotedAttributeErrorLevel` to deprecate quoted entity field attributes
|
|
* Improve parsing of types and entity fields
|
|
|
|
-------------------------------------------------------------------
|
|
Fri May 23 22:09:56 UTC 2025 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.17.0.0.
|
|
# 2.17.0.0
|
|
|
|
* [#1595](https://github.com/yesodweb/persistent/pull/1595)
|
|
* Add `tabulateEntityApply` to `PersistEntity` class similar to
|
|
`tabulateEntityA` but that works on `Apply` type instead of `Applicative`.
|
|
This allows you to use `foldMap1` and other non-empty structures with
|
|
tabulating and manipulating records.
|
|
|
|
-------------------------------------------------------------------
|
|
Tue May 20 01:50:03 UTC 2025 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.16.0.0.
|
|
# 2.16.0.0
|
|
|
|
* [#1584](https://github.com/yesodweb/persistent/pull/1584)
|
|
* Rename `Span` to `SourceSpan`
|
|
* Parse entity definitions using Megaparsec.
|
|
* Support Haddock-style multiline pre-comments.
|
|
* [#1589](https://github.com/yesodweb/persistent/pull/1589)
|
|
* Support configurable parse errors and warnings
|
|
* [#1585](https://github.com/yesodweb/persistent/pull/1585)
|
|
* Support parsing PersistField UTCTime from text with timezone, e.g. "2025-04-12T06:53:42Z".
|
|
This is needed for Sqlite, which has no native datetime support but uses e.g. TEXT.
|
|
* [#1587](https://github.com/yesodweb/persistent/pull/1587)
|
|
* Improve documentation of `mpsFieldLabelModifier`.
|
|
|
|
# 2.15.1.0
|
|
|
|
* [#1519](https://github.com/yesodweb/persistent/pull/1519/files/9865a295f4545d30e55aacb6efc25f27f758e8ad#diff-5af2883367baae8f7f266df6a89fc2d1defb7572d94ed069e05c8135a883bc45)
|
|
* Add `keyAndEntityFieldsDatabase`. This was intended to be added in 2.14.7.0 but was not properly re-exported.
|
|
|
|
# 2.15.0.1
|
|
|
|
* [#1575](https://github.com/yesodweb/persistent/pull/1575)
|
|
* Fix benchmark build for GHC 9.8-9.12
|
|
* Support `template-haskell` up to 2.24
|
|
|
|
# 2.15.0.0
|
|
|
|
* [#1569](https://github.com/yesodweb/persistent/pull/1569)
|
|
* Add position information to `EntityDef`, `UnboundEntityDef` via a `Span`
|
|
field as a preliminary design that just gives the entire span of the
|
|
input text (i.e. the entire file or quasiquote the item is defined in).
|
|
* Move `Database.Persist.TH` internals to `Database.Persist.TH.Internal` and
|
|
no longer export the following internals:
|
|
* lensPTH
|
|
* parseReferences
|
|
* embedEntityDefs
|
|
* fieldError
|
|
* AtLeastOneUniqueKey(..)
|
|
* OnlyOneUniqueKey(..)
|
|
* pkNewtype
|
|
|
|
-------------------------------------------------------------------
|
|
Tue Apr 8 06:14:53 UTC 2025 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.6.3 revision 1.
|
|
Upstream has revised the Cabal build instructions on Hackage.
|
|
|
|
-------------------------------------------------------------------
|
|
Wed Aug 28 19:05:19 UTC 2024 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.6.3.
|
|
## 2.14.6.3
|
|
|
|
* [#1544](https://github.com/yesodweb/persistent/pull/1544)
|
|
* Fix type error message when no unique keys are defined on a model and you
|
|
use a function with constraint `AtLeastOneUniqueKey`.
|
|
|
|
-------------------------------------------------------------------
|
|
Fri Jul 19 00:45:58 UTC 2024 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.6.2.
|
|
## 2.14.6.2
|
|
|
|
* [#1536](https://github.com/yesodweb/persistent/pull/1536/)
|
|
* Build with GHC 9.10
|
|
|
|
-------------------------------------------------------------------
|
|
Tue Mar 12 15:08:38 UTC 2024 - Peter Simons <psimons@suse.com>
|
|
|
|
- Drop obsolete 'drop-dependency-on-empty-attoparsec-aeson-library.patch'.
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Feb 8 20:24:57 UTC 2024 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.6.1.
|
|
## 2.14.6.1
|
|
|
|
* [#1528](https://github.com/yesodweb/persistent/pull/1528)
|
|
* The `PersistField Int{,8,16,32,64}` instances will now work with a
|
|
`PersistRational`, provided that the denominator is 1. This fixes the bug
|
|
where `SUM` in Postgres would change the type of a column being summed.
|
|
|
|
-------------------------------------------------------------------
|
|
Tue Oct 3 23:49:28 UTC 2023 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.6.0.
|
|
## 2.14.6.0
|
|
|
|
* [#1477](https://github.com/yesodweb/persistent/pull/1477)
|
|
* Qualified references to other tables will work
|
|
* [#1503](https://github.com/yesodweb/persistent/pull/1503)
|
|
* Create Haddocks from entity documentation comments
|
|
* [1497](https://github.com/yesodweb/persistent/pull/1497)
|
|
* Always generates `SymbolToField "id"` instance
|
|
* [#1509](https://github.com/yesodweb/persistent/pull/1509)
|
|
* Provide `ViaPersistEntity` for defining `PathMultiPiece` for entity keys.
|
|
* [#1480](https://github.com/yesodweb/persistent/pull/1480)
|
|
* Add `mpsAvoidHsKeyword` in `MkPersistSettings`
|
|
*
|
|
## 2.14.5.2
|
|
|
|
* [#1513](https://github.com/yesodweb/persistent/pull/1513)
|
|
* Support GHC 9.8 and `aeson-2.2`
|
|
|
|
- Apply drop-dependency-on-empty-attoparsec-aeson-library.patch to
|
|
fix the build.
|
|
|
|
-------------------------------------------------------------------
|
|
Mon Jul 3 11:31:10 UTC 2023 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.5.1 revision 1.
|
|
Upstream has revised the Cabal build instructions on Hackage.
|
|
|
|
-------------------------------------------------------------------
|
|
Wed Jun 28 18:54:31 UTC 2023 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.5.1.
|
|
## 2.14.5.1
|
|
|
|
* [#1496](https://github.com/yesodweb/persistent/pull/1496)
|
|
* Fixes name shadowing error at the generated `keyFromRecordM` function.
|
|
* [#1505](https://github.com/yesodweb/persistent/pull/1505)
|
|
* Fixes the comment line parsing rule so that accommodates paragraph breaks.
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Mar 30 17:07:52 UTC 2023 - Peter Simons <psimons@suse.com>
|
|
|
|
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
|
|
|
|
-------------------------------------------------------------------
|
|
Sat Mar 4 19:05:21 UTC 2023 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.5.0.
|
|
Upstream has edited the change log file since the last release in
|
|
a non-trivial way, i.e. they did more than just add a new entry
|
|
at the top. You can review the file at:
|
|
http://hackage.haskell.org/package/persistent-2.14.5.0/src/ChangeLog.md
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Jan 5 16:07:36 UTC 2023 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.4.4.
|
|
## 2.14.4.4
|
|
|
|
* [#1460] https://github.com/yesodweb/persistent/pull/1460
|
|
* Fix a problem where a `Primary` key causes `mkPersist` to generate code
|
|
that doesn't compile under `NoFieldSelectors`
|
|
|
|
-------------------------------------------------------------------
|
|
Sat Dec 17 20:28:05 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.4.3.
|
|
## 2.14.4.3
|
|
|
|
* [#1452](https://github.com/yesodweb/persistent/pull/1452)
|
|
* Implement `repsert` as a special case of `respertMany`. Allows backend
|
|
specific behavior.
|
|
|
|
-------------------------------------------------------------------
|
|
Mon Dec 5 21:40:33 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.4.2.
|
|
## 2.14.4.2
|
|
|
|
* [#1451](https://github.com/yesodweb/persistent/pull/1451)
|
|
* Support `mtl >= 2.3`
|
|
|
|
## 2.14.4.1
|
|
|
|
* [#1449](https://github.com/yesodweb/persistent/pull/1449)
|
|
* Default implementation for `insert_` which doesn't perform any unnecessary
|
|
queries.
|
|
|
|
-------------------------------------------------------------------
|
|
Sat Dec 3 00:54:38 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.4.0.
|
|
## 2.14.4.0
|
|
|
|
* [#1440](https://github.com/yesodweb/persistent/pull/1440)
|
|
* Defined NFData PersistValue
|
|
|
|
## 2.14.3.2
|
|
|
|
* [#1446](https://github.com/yesodweb/persistent/pull/1446)
|
|
* Foreign key discovery was fixed for qualified names, `Key Model`, and
|
|
`Maybe` references.
|
|
* [#1438](https://github.com/yesodweb/persistent/pull/1438)
|
|
* Clarify wording on the error message for null in unique constraint
|
|
* [#1447](https://github.com/yesodweb/persistent/pull/1447)
|
|
* Fix `SafeToInsert` not being generated correctly for some `Id` columns
|
|
|
|
## 2.14.3.1
|
|
|
|
* [#1428](https://github.com/yesodweb/persistent/pull/1428)
|
|
* Fix that the documentation for `discoverEntities` was not being generated.
|
|
|
|
-------------------------------------------------------------------
|
|
Wed Oct 19 18:16:04 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.3.0 revision 1.
|
|
Upstream has revised the Cabal build instructions on Hackage.
|
|
|
|
-------------------------------------------------------------------
|
|
Mon Sep 12 22:00:15 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.3.0.
|
|
## 2.14.3.0
|
|
|
|
* [#1425](https://github.com/yesodweb/persistent/pull/1425)
|
|
* Introduce an alias `setPsUseSnakeCaseForeignKeys` for
|
|
`setPsUseSnakeCaseForiegnKeys` due to a typo in the latter;
|
|
deprecate `setPsUseSnakeCaseForiegnKeys`
|
|
|
|
-------------------------------------------------------------------
|
|
Wed Aug 24 15:43:34 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.2.0.
|
|
## 2.14.2.0
|
|
|
|
* [#1421](https://github.com/yesodweb/persistent/pull/1421)
|
|
* Add `mpsCamelCaseCompositeKeySelector` field to `MkPersistSettings`,
|
|
which define the style of the entity's composite key.
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Aug 11 19:52:45 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.1.0.
|
|
## 2.14.1.0
|
|
|
|
* [#1418](https://github.com/yesodweb/persistent/pull/1418/)
|
|
* Re-export `SafeToInsert` from `Database.Persist.Class`, which should
|
|
re-export it through `Database.Persist`, `Database.Persist.Sql`, etc.
|
|
* [#1409](https://github.com/yesodweb/persistent/pull/1409)
|
|
* Fix incorrect reference to rawSql in documentation.
|
|
|
|
-------------------------------------------------------------------
|
|
Wed Jul 27 07:49:12 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.0.3 revision 1.
|
|
Upstream has revised the Cabal build instructions on Hackage.
|
|
|
|
-------------------------------------------------------------------
|
|
Wed Jul 20 22:16:13 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.0.3.
|
|
## 2.14.0.3
|
|
|
|
* [#1411](https://github.com/yesodweb/persistent/pull/1411)
|
|
* Fix the docs for `FieldNameDB`, and update `FieldDef.fieldComments` docs
|
|
since the quasiquoter *supports* field comments now.
|
|
|
|
-------------------------------------------------------------------
|
|
Fri Jun 10 15:19:57 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.14.0.2.
|
|
## 2.14.0.2
|
|
|
|
* [#1407](https://github.com/yesodweb/persistent/pull/1407)
|
|
* Fix a name shadowing warning.
|
|
|
|
## 2.14.0.1
|
|
|
|
* [#1392](https://github.com/yesodweb/persistent/pull/1392)
|
|
* Enhance `selectList` documentation with TypeApplications examples.
|
|
* Clarify `selectSource` documentation wording.
|
|
* [#1391](https://github.com/yesodweb/persistent/pull/1391)
|
|
* Increasing quasi module test coverage, improve error assertions
|
|
* [#1401](https://github.com/yesodweb/persistent/pull/1401)
|
|
* Change `Entity` back into a regular record and drop the `HasField`
|
|
instance. This is technically a breaking change, but [the bug in GHC's
|
|
`COMPLETE` annotations](https://gitlab.haskell.org/ghc/ghc/-/issues/15681)
|
|
rendered a super common pattern a much more invasive breaking change than
|
|
anticipated. As a result, upgrading to `persistent-2.14` was untenable.
|
|
|
|
If you *did* upgrade and this broke your codebase *again*, please let me
|
|
know and I can release another patch to shim it.
|
|
|
|
## 2.14.0.0
|
|
|
|
* [#1343](https://github.com/yesodweb/persistent/pull/1343)
|
|
* Implement Type Literal based field definitions
|
|
* [#1387](https://github.com/yesodweb/persistent/pull/1387)
|
|
* Better UX with `insert`. We now report a type error when you try to
|
|
`insert` an `Entity` or a function, and we also forbid `insert`ing if the
|
|
database would throw an error missing a primary key.
|
|
* [#1383](https://github.com/yesodweb/persistent/pull/1383)
|
|
* Primary keys have a `NonEmpty` of fields, not a `[]` of fields.
|
|
* A `Primary` key on an entity now creates a `Unique` constructror for that
|
|
record, with the name `#{entityName}PrimaryKey`. This also affects the
|
|
generation of `AtLeastOneUniqueKey` and `OnlyOneUniqueKey` instances, so
|
|
you may need to change behavior on these classes.
|
|
* [#1381](https://github.com/yesodweb/persistent/pull/1381)
|
|
* `Entity` is given a `HasField` instance that uses the database field
|
|
names. This is primarily done to support `OverloadedRecordDot` in GHC 9.2
|
|
and above.
|
|
* A consequence of this is that the `Entity` constructor has been renamed to
|
|
`Entity'`. A pattern synonym is provided that should work in almost all
|
|
cases. You may incur a `MonadFail m` constraint if you are pattern
|
|
matching directly on the constructor in a `do` result.
|
|
* [#1364](https://github.com/yesodweb/persistent/pull/1346)
|
|
* The type `SomePersistField` was removed in favor of using `PersistValue`
|
|
directly.
|
|
* [#1386](https://github.com/yesodweb/persistent/pull/1386)
|
|
* The module `Database.Persist.Class.DeleteCascade` was deleted since you
|
|
can put cascade behavior directly on your database models.
|
|
* Removed `mkSave` from `Database.Persist.TH`. Use `mkEntityDefList`
|
|
instead.
|
|
* Remove the `CompositeDef` constructor from `ReferenceDef` which was not
|
|
used internally anymore.
|
|
* [#1385](https://github.com/yesodweb/persistent/pull/1385)
|
|
* The support for entity-level sum types is deprecated. It adds a
|
|
considerable amount of complexity to the code, and the pattern is not
|
|
particularly good for actually supporting sum types in most databases.
|
|
* [#1384](https://github.com/yesodweb/persistent/pull/1384)
|
|
* Add `tabulateEntityA` to the `PersistEntity` class, allowing you to
|
|
construct an `Entity a` by providing a function `EntityField a t -> f t`.
|
|
Note that this doesn't make sense for sum entities, and the implementation
|
|
`error`s.
|
|
* Add `tabulateEntity` as a pure version of that.
|
|
|
|
## 2.13.3.5
|
|
|
|
* [#1374](https://github.com/yesodweb/persistent/pull/1374)
|
|
* Increasing test coverage for errors thrown when parsing entity definitions
|
|
|
|
## 2.13.3.4
|
|
* [#1379](https://github.com/yesodweb/persistent/pull/1379)
|
|
* `mkPersist` now generates code that compiles under `NoFieldSelectors` and `DuplicateRecordFields` even if field labels are not prefixed
|
|
* [#1376](https://github.com/yesodweb/persistent/pull/1376)
|
|
* Add coverage for parsing nested parens/lists in field types
|
|
* [#1370](https://github.com/yesodweb/persistent/pull/1370)
|
|
* Add spec to assert Persistent.TH is the only import required when defining entities
|
|
|
|
-------------------------------------------------------------------
|
|
Tue Mar 15 14:49:55 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.13.3.3.
|
|
## 2.13.3.3
|
|
|
|
* [#1369](https://github.com/yesodweb/persistent/pull/1369)
|
|
* Fix `withObject` needing to be imported
|
|
|
|
-------------------------------------------------------------------
|
|
Mon Mar 14 19:11:29 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.13.3.2.
|
|
## 2.13.3.2
|
|
|
|
* [#1315](https://github.com/yesodweb/persistent/pull/1315)
|
|
* Refactor entity constraint parsing in Quasi module
|
|
|
|
## 2.13.3.1
|
|
|
|
* [#1367](https://github.com/yesodweb/persistent/pull/1367),
|
|
[#1366](https://github.com/yesodweb/persistent/pull/1367),
|
|
[#1338](https://github.com/yesodweb/persistent/pull/1338),
|
|
[#1335](https://github.com/yesodweb/persistent/pull/1335)
|
|
* Support GHC 9.2
|
|
* [#1356](https://github.com/yesodweb/persistent/pull/1356)
|
|
* Improve parse errors in generated FromJSON instances
|
|
|
|
-------------------------------------------------------------------
|
|
Sat Jan 29 00:08:22 UTC 2022 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update persistent to version 2.13.3.0.
|
|
## 2.13.3.0
|
|
|
|
* [#1341](https://github.com/yesodweb/persistent/pull/1341)
|
|
* Add `SqlBackendHooks` to allow for instrumentation of queries.
|
|
* [#1327](https://github.com/yesodweb/persistent/pull/1327)
|
|
* Update `SqlBackend` to use new `StatementCache` interface
|
|
instead of `IORef (Map Text Statement)`
|
|
|
|
## 2.13.2.2
|
|
|
|
* [#1351](https://github.com/yesodweb/persistent/pull/1351/)
|
|
* `aeson-2.0` support
|
|
|
|
-------------------------------------------------------------------
|
|
Tue Oct 19 07:23:41 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.13.2.1 revision 1.
|
|
Upstream has revised the Cabal build instructions on Hackage.
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Oct 14 08:01:08 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.13.2.1.
|
|
## 2.13.2.1
|
|
|
|
* [#1329](https://github.com/yesodweb/persistent/pull/1329)
|
|
* Prevent discovery of constrained `PersistEntity` instances in
|
|
`discoverEntities` (since the discovered instances won't work without
|
|
constraints anyway).
|
|
|
|
## 2.13.2.0
|
|
|
|
* [#1314](https://github.com/yesodweb/persistent/pull/1314)
|
|
* Fix typos and minor documentation issues in Database.Persist and
|
|
Database.Persist.Quasi.
|
|
* [#1317](https://github.com/yesodweb/persistent/pull/1317)
|
|
* Expose `orderClause` from the Persistent internals, which allows users
|
|
to produce well-formatted `ORDER BY` clauses.
|
|
|
|
* [#1319](https://github.com/yesodweb/persistent/pull/1319)
|
|
* Add a `Num` instance for `OverflowNatural`
|
|
|
|
-------------------------------------------------------------------
|
|
Tue Oct 12 09:50:03 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.13.1.2 revision 1.
|
|
Upstream has revised the Cabal build instructions on Hackage.
|
|
|
|
-------------------------------------------------------------------
|
|
Fri Sep 3 11:57:07 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.13.1.2.
|
|
## 2.13.1.2
|
|
|
|
* [#1308](https://github.com/yesodweb/persistent/pull/1308)
|
|
* Consolidate the documentation for the Persistent quasiquoter in
|
|
Database.Persist.Quasi.
|
|
* [#1312](https://github.com/yesodweb/persistent/pull/1312)
|
|
* Reorganize documentation and link to more modules.
|
|
* Expose `Database.Persist.Sql.Migration`
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Jul 1 12:50:46 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.13.1.1.
|
|
## 2.13.1.1
|
|
|
|
* [#1294](https://github.com/yesodweb/persistent/pull/1294)
|
|
* Fix an issue where documentation comments on fields are in reverse line
|
|
order.
|
|
|
|
## 2.13.1.0
|
|
|
|
* [#1264](https://github.com/yesodweb/persistent/pull/1264)
|
|
* Support declaring Maybe before the type in model definitions
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Jun 24 11:30:26 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.13.0.4.
|
|
## 2.13.0.4
|
|
|
|
* [#1277](https://github.com/yesodweb/persistent/pull/1277)
|
|
* Corrected the documentation of `addMigration` to match the actual
|
|
behaviour - this will not change the behaviour of your code.
|
|
|
|
-------------------------------------------------------------------
|
|
Sat Jun 19 17:44:59 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.13.0.3.
|
|
Upstream has edited the change log file since the last release in
|
|
a non-trivial way, i.e. they did more than just add a new entry
|
|
at the top. You can review the file at:
|
|
http://hackage.haskell.org/package/persistent-2.13.0.3/src/ChangeLog.md
|
|
|
|
-------------------------------------------------------------------
|
|
Wed May 26 08:45:16 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.13.0.2.
|
|
## 2.13.0.2
|
|
|
|
* [#1265](https://github.com/yesodweb/persistent/pull/1265)
|
|
* Support GHC 9
|
|
|
|
-------------------------------------------------------------------
|
|
Tue May 11 17:19:27 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.13.0.1.
|
|
Upstream has edited the change log file since the last release in
|
|
a non-trivial way, i.e. they did more than just add a new entry
|
|
at the top. You can review the file at:
|
|
http://hackage.haskell.org/package/persistent-2.13.0.1/src/ChangeLog.md
|
|
|
|
-------------------------------------------------------------------
|
|
Sat May 8 10:05:44 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.13.0.0 revision 2.
|
|
Upstream has revised the Cabal build instructions on Hackage.
|
|
|
|
-------------------------------------------------------------------
|
|
Fri May 7 09:28:38 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.13.0.0 revision 1.
|
|
Upstream has revised the Cabal build instructions on Hackage.
|
|
|
|
-------------------------------------------------------------------
|
|
Thu May 6 09:11:03 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.13.0.0.
|
|
## 2.13.0.0
|
|
|
|
* [#1244](https://github.com/yesodweb/persistent/pull/1244)
|
|
* Implement config for customising the FK name
|
|
* [#1252](https://github.com/yesodweb/persistent/pull/1252)
|
|
* `mkMigrate` now defers to `mkEntityDefList` and `migrateModels` instead of
|
|
fixing the foreign key references itself.
|
|
* `mkSave` was deprecated - the function did not fix foreign key references.
|
|
Please use `mkEntityDefList` instead.
|
|
* `EntityDef` will now include fields marked `MigrationOnly` and
|
|
`SafeToRemove`. Beforehand, those were filtered out, and `mkMigrate`
|
|
applied. The function `getEntityFields` wll only return fields defined on
|
|
the Haskell type - for all columns, see `getEntityFieldsDatabase`.
|
|
* [#1225](https://github.com/yesodweb/persistent/pull/1225)
|
|
* The fields and constructor for `SqlBackend` are no longer exported by
|
|
default. They are available from an internal module,
|
|
`Database.Persist.Sql.Types.Internal`. Breaking changes from `Internal`
|
|
modules are not reflected in the major version. This will allow us to
|
|
release new functionality without breaking your code. It's recommended to
|
|
switch to using the smart constructor functions and setter functions that
|
|
are now exported from `Database.Persist.Sql` instead.
|
|
* A new API is available for constructing and using a `SqlBackend`, provided
|
|
in `Database.Persist.SqlBackend`. Instead of using the `SqlBackend`
|
|
directly, use `mkSqlBackend` and the datatype `MkSqlBackendArgs`. The
|
|
`MkSqlBackendArgs` record has the same field names as the `SqlBackend`, so
|
|
the translation is easy:
|
|
```diff
|
|
- SqlBackend
|
|
+ mkSqlBackend MkSqlBackendArgs
|
|
{ connInsertSql = ...
|
|
, connCommit = ...
|
|
, connEscapeFieldName = ...
|
|
, connEscapeTableName = ...
|
|
, etc
|
|
}
|
|
```
|
|
Some fields were omitted in `MkSqlBackendArgs`. These fields are
|
|
*optional* - they provide enhanced or backend-specific functionality. For
|
|
these, use the setter functions like `setConnUpsertSql`.
|
|
* Previously hidden modules are now exposed under the `Internal` namespace.
|
|
* The `connLimitOffset` function used to have a `Bool` parameter. This
|
|
parameter is unused and has been removed.
|
|
* [#1234](https://github.com/yesodweb/persistent/pull/1234)
|
|
* You can now customize the default implied ID column. See the documentation
|
|
in `Database.Persist.ImplicitIdDef` for more details.
|
|
* Moved the various `Name` types into `Database.Persist.Names`
|
|
* Removed the `hasCompositeKey` function. See `hasCompositePrimaryKey` and
|
|
`hasNaturalKey` as replacements.
|
|
* The `EntityDef` constructor and field labels are not exported by default.
|
|
Get those from `Database.Persist.EntityDef.Internal`, but you should
|
|
migrate to the getters/setters in `Database.Persist.EntityDef` as you can.
|
|
* Added the `Database.Persist.FieldDef` and
|
|
`Database.Persist.FieldDef.Internal` modules.
|
|
* The `PersistSettings` type was made abstract. Please migrate to the
|
|
getters/setters defined in that `Database.Persist.Quasi`, or use
|
|
`Database.Persist.Quasi.Internal` if you don't mind the possibility of
|
|
breaking changes.
|
|
* Add the `runSqlCommand` function for running arbitrary SQL during
|
|
migrations.
|
|
* Add `migrateModels` function for a TH-free migration facility.
|
|
* [#1253](https://github.com/yesodweb/persistent/pull/1253)
|
|
* Add `discoverEntities` to discover instances of the class and return their
|
|
entity definitions.
|
|
* [#1250](https://github.com/yesodweb/persistent/pull/1250)
|
|
* The `mpsGeneric` function has been deprecated. If you need this
|
|
functionality, please comment with your needs on the GitHub issue tracker.
|
|
We may un-deprecate it, or we may provide a new and better means of
|
|
facilitating a solution to your problem.
|
|
* [#1255](https://github.com/yesodweb/persistent/pull/1255)
|
|
* `mkPersist` now checks to see if an instance already exists for
|
|
`PersistEntity` for the inputs.
|
|
|
|
## 2.12.1.2
|
|
|
|
* [#1258](https://github.com/yesodweb/persistent/pull/1258)
|
|
* Support promoted types in Quasi Quoter
|
|
* [#1243](https://github.com/yesodweb/persistent/pull/1243)
|
|
* Assorted cleanup of TH module
|
|
* [#1242](https://github.com/yesodweb/persistent/pull/1242)
|
|
* Refactor setEmbedField to use do notation
|
|
* [#1237](https://github.com/yesodweb/persistent/pull/1237)
|
|
* Remove nonEmptyOrFail function from recent tests
|
|
* [#1256](https://github.com/yesodweb/persistent/pull/1256)
|
|
* The QuasiQuoter has been refactored and improved.
|
|
* You can now use `mkPersistWith` to pass in a list of pre-existing
|
|
`EntityDef` to improve foreign key detection and splitting up models
|
|
across multiple modules.
|
|
* The `entityId` field now returns an `EntityIdDef`, which specifies what
|
|
the ID field actually is. This is a move to better support natural keys.
|
|
* Several types that had lists have been refactored to use nonempty lists to
|
|
better capture the semantics.
|
|
* `mkDeleteCascade` is deprecated. Please use the Cascade behavior directly
|
|
on fields.
|
|
* You can use `Key Foo` and `FooId` interchangeably in fields.
|
|
* Support for GHC < 8.4 dropped.
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Apr 22 08:38:42 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.12.1.1.
|
|
Upstream has edited the change log file since the last release in
|
|
a non-trivial way, i.e. they did more than just add a new entry
|
|
at the top. You can review the file at:
|
|
http://hackage.haskell.org/package/persistent-2.12.1.1/src/ChangeLog.md
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Apr 8 20:12:52 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.12.1.0.
|
|
## 2.12.1.0
|
|
|
|
* [#1226](https://github.com/yesodweb/persistent/pull/1226)
|
|
* Expose the `filterClause` and `filterClauseWithValues` functions to support
|
|
the `upsertWhere` functionality in `persistent-postgresql`.
|
|
|
|
-------------------------------------------------------------------
|
|
Mon Apr 5 14:14:50 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.12.0.2.
|
|
Upstream has edited the change log file since the last release in
|
|
a non-trivial way, i.e. they did more than just add a new entry
|
|
at the top. You can review the file at:
|
|
http://hackage.haskell.org/package/persistent-2.12.0.2/src/ChangeLog.md
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Apr 1 07:49:46 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.12.0.1 revision 1.
|
|
Upstream has revised the Cabal build instructions on Hackage.
|
|
|
|
-------------------------------------------------------------------
|
|
Tue Mar 30 09:23:55 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.12.0.1.
|
|
Upstream has edited the change log file since the last release in
|
|
a non-trivial way, i.e. they did more than just add a new entry
|
|
at the top. You can review the file at:
|
|
http://hackage.haskell.org/package/persistent-2.12.0.1/src/ChangeLog.md
|
|
|
|
-------------------------------------------------------------------
|
|
Fri Mar 19 09:15:33 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.11.0.4.
|
|
## 2.11.0.4
|
|
|
|
* Fix a compile error [#1213](https://github.com/yesodweb/persistent/pull/1213)
|
|
* That's what I get for running this stuff with flakey CI!
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Mar 18 12:01:41 UTC 2021 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.11.0.3.
|
|
## 2.11.0.3
|
|
|
|
* Backported the fix from [#1207](https://github.com/yesodweb/persistent/pull/1207) for asynchronous exceptions.
|
|
* Deprecated the `Acquire` family of functions.
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
|
|
|
- disable %{ix86} build
|
|
|
|
-------------------------------------------------------------------
|
|
Sat Dec 12 17:48:28 UTC 2020 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.11.0.2.
|
|
Upstream has edited the change log file since the last release in
|
|
a non-trivial way, i.e. they did more than just add a new entry
|
|
at the top. You can review the file at:
|
|
http://hackage.haskell.org/package/persistent-2.11.0.2/src/ChangeLog.md
|
|
|
|
-------------------------------------------------------------------
|
|
Sat Nov 7 15:34:17 UTC 2020 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.11.0.1.
|
|
Upstream has edited the change log file since the last release in
|
|
a non-trivial way, i.e. they did more than just add a new entry
|
|
at the top. You can review the file at:
|
|
http://hackage.haskell.org/package/persistent-2.11.0.1/src/ChangeLog.md
|
|
|
|
-------------------------------------------------------------------
|
|
Tue Nov 3 10:09:25 UTC 2020 - psimons@suse.com
|
|
|
|
- Update persistent to version 2.10.5.3.
|
|
## 2.10.5.3
|
|
|
|
* Backported the fix from [#1135](https://github.com/yesodweb/persistent/pull/1135) to the 2.10 branch.
|
|
This should fix reading `PersistUTCTime` values.
|
|
|
|
-------------------------------------------------------------------
|
|
Tue Aug 18 10:45:42 UTC 2020 - Peter Simons <psimons@suse.com>
|
|
|
|
- Replace %setup -q with the more modern %autosetup macro.
|
|
|
|
-------------------------------------------------------------------
|
|
Tue Jul 28 15:45:37 UTC 2020 - Michel Normand <normand@linux.vnet.ibm.com>
|
|
|
|
- Add _constraints min 4GB disk space for few arches
|
|
aarch64 ppc64 ppc64le
|
|
|
|
-------------------------------------------------------------------
|
|
Tue Jun 9 09:26:36 UTC 2020 - psimons@suse.com
|
|
|
|
- Add persistent at version 2.10.5.2.
|
|
|