1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
|
## Unreleased changes
## 2.12.0.0
* Decomposed `HaskellName` into `ConstraintNameHS`, `EntityNameHS`, `FieldNameHS`. Decomposed `DBName` into `ConstraintNameDB`, `EntityNameDB`, `FieldNameDB` respectively. [#1174](https://github.com/yesodweb/persistent/pull/1174)
* [#1214](https://github.com/yesodweb/persistent/pull/1214):
* This package was asborbed into `persistent` itself.
## 2.9.1.0
* [#1145](https://github.com/yesodweb/persistent/pull/1148)
* Fix a bug where the `SqlType` for a shared primary key was being
incorrectly set to `SqlString` instead of whatever the target primary key
sql type was.
* [#1151](https://github.com/yesodweb/persistent/pull/1151)
* Automatically generate `SymbolToField` instances for datatypes, allowing
`OverloadedLabels` to be used with the `EntityField` type.
## 2.9
* Always use the "stock" strategy when deriving Show/Read for keys [#1106](https://github.com/yesodweb/persistent/pull/1106)
* This fixes a regression from 2.8.0, which started using the `newtype` strategy when deriving `Show`/`Read` for keys
* In practice, this means that from 2.8.0–2.8.3.1, for the following schema:
```
Person
name Text
CustomPrimary
anInt Int
Primary anInt
name Text
```
`PersonKey 1` would show as `"SqlBackendKey {unSqlBackendKey = 1}"`
and `CustomPrimaryKey 1` would show as `"1"`
This was generally poor for debugging and logging, since all tables keys would print the same. For Persistent < 2.8.0 and > 2.8.3.1, they instead will show as:
`"PersonKey {unPersonKey = SqlBackendKey {unSqlBackendKey = 1}}"`
and `"CustomPrimaryKey {unCustomPrimaryKey = 1}"`
This could be a breaking change if you have used `Show` on a key, wrote that string into some persistent storage like a database, and are trying to `Read` it back again later.
## 2.8.3.1
* Allow aeson 1.5. [#1085](https://github.com/yesodweb/persistent/pull/1085)
## 2.8.3.0
* Add `Lift` instances for the cascade types. [#1060](https://github.com/yesodweb/persistent/pull/1060)
* Use `DeriveLift` to implement all `Lift` instances. Among other benefits,
this provides implementations of `liftTyped` on `template-haskell-2.16` (GHC
8.10) or later. [#1064](https://github.com/yesodweb/persistent/pull/1064)
## 2.8.2.3
* Require extensions in a more friendly manner. [#1030](https://github.com/yesodweb/persistent/pull/1030)
* Specify a strategy for all deriving clauses, which avoids the `-Wmissing-deriving-strategy` warning introduced in GHC 8.8.2. [#1030](https://github.com/yesodweb/persistent/pull/1030)
## 2.8.2.2
* Fix the `mkPersist` function to not require importing the classes explicitly. [#1027](https://github.com/yesodweb/persistent/pull/1027)
## 2.8.2.1
* Fix the test-suite for persistent-template. [#1023](https://github.com/yesodweb/persistent/pull/1023)
## 2.8.2
* Add `fieldError` to the export list of `Database.Persist.TH` [#1008](https://github.com/yesodweb/persistent/pull/1008)
## 2.8.1
* Let the user pass instances that will be derived for record and for key types (https://github.com/yesodweb/persistent/pull/990
## 2.8.0.1
* Small optimization/code cleanup to generated Template Haskell code size, by slimming the implementation of to/fromPersistValue for Entities. [#1014](https://github.com/yesodweb/persistent/pull/1014)
## 2.8.0
* Reduces the amount of code generated by Template Haskell. The amount of code generated for a certain function was O(N^2) with respect to the number of fields on a given Entity. This change shows dramatic improvements in benchmarks for compiling Persistent models. [#]()
* Drops support for GHC 8.0, so that `DerivingStrategies` can be used by `persistent-template`
* `persistent-template` now requires `DerivingStrategies`, `GeneralizedNewtypeDeriving`, and `StandaloneDeriving` to be enabled in the file where Persistent entities are created
* Fixes a long-standing issue where persistent-template would fail when `DeriveAnyClass` was enabled (See #578)
* [#1002](https://github.com/yesodweb/persistent/pull/1002)
## 2.7.4
* Remove an overlapping instance for `Lift a`. [#998](https://github.com/yesodweb/persistent/pull/998)
## 2.7.3
* Update module documentation for `Database.Persist.TH` to better describe the purpose of the module [#968](https://github.com/yesodweb/persistent/pull/968)
* Support template-haskell-2.15 [#959](https://github.com/yesodweb/persistent/pull/959)
## 2.7.2
* Expose the knot tying logic of `parseReferences` so that users can build
migrations from independently define entities at runtime [#932](https://github.com/yesodweb/persistent/pull/932)
## 2.7.1
* Add the `mkEntityDefList` function to work around [#902](https://github.com/yesodweb/persistent/issues/902). [#904](https://github.com/yesodweb/persistent/pull/904)
## 2.7.0
* Depends on `persistent-2.10.0` which provides the `OnlyOneUniqueKey` and `AtLeastOneUniqueKey` classes. Automatically generates instances for these classes based on how many unique keys the entity definition gets. This changes requires `UndecidableInstances` to be enabled on each module that generates entity definitions. [#885](https://github.com/yesodweb/persistent/pull/885)
* Removed deprecated `sqlOnlySettings`. Please use `sqlSettings` instead. [#894](https://github.com/yesodweb/persistent/pull/894)
## 2.6.0
* [persistent#846](https://github.com/yesodweb/persistent/pull/846): Improve error message when marshalling fails
* [persistent#826](https://github.com/yesodweb/persistent/pull/826): Change `Unique` derive `Show`
## 2.5.4
* [persistent#778](https://github.com/yesodweb/persistent/issues/778): Add `persistManyFileWith`.
## 2.5.3.1
* Slight improvement to the error message when a Persistent field can't be parsed from database results
## 2.5.3
* Exposed `parseReferences` to allow custom QuasiQuoters
## 2.5.2
* Fix incorrect `ToJSON`/`FromJSON` instance generation for generic
backends
## 2.5.1.6
Allow non-null self-references in a list
## 2.5.1.4
* Allow composite Primary keys for tables that contain nullable fields.
* Support foreign keys to non-integer ids
## 2.5.1.3
* fix GHC 7.8 bug when a field name is "type"
## 2.5.1.2
* fix a bad Eq instance /= definition for Key when mpsGenetric=True
## 2.5.0.1
* workaround TH bug in GHC 7.10
## 2.5
* read/write typeclass split
## 2.1.6
* aeson 0.11
* transformers 0.5
## 2.1.4
support http-api-data for url serialization
## 2.1.3.3
By default explicitly use Int64 for foreign key references.
This avoids confusion on a 32 bit system.
## 2.1.3.1
Support foreign key references to composite primary keys
## 2.1.0.1
Support for monad-control 1.0
|