persistent 2.11.0.0 → 2.11.0.1
raw patch · 3 files changed
+9/−4 lines, 3 files
Files
- ChangeLog.md +6/−0
- Database/Persist/Types/Base.hs +2/−3
- persistent.cabal +1/−1
ChangeLog.md view
@@ -1,5 +1,11 @@ # Changelog for persistent +## 2.11.0.1++* Docs/Bugs fixes [#1153] https://github.com/yesodweb/persistent/pull/1153+ * Fix documentation on `FieldDef.fieldAttrs`.+ * Postgresql backend: Add a space in cascade clause of generated SQL.+ ## 2.11.0.0 * Foreign Key improvements [#1121] https://github.com/yesodweb/persistent/pull/1121
Database/Persist/Types/Base.hs view
@@ -256,7 +256,6 @@ , fieldSqlType :: !SqlType -- ^ The type of the field in a SQL database. , fieldAttrs :: ![FieldAttr]- -- ^ Whether or not the field is gnerated and how. Backend-dependent. -- ^ User annotations for a field. These are provided with the @!@ -- operator. , fieldStrict :: !Bool@@ -416,8 +415,8 @@ renderFieldCascade :: FieldCascade -> Text renderFieldCascade (FieldCascade onUpdate onDelete) = T.unwords- [ foldMap (mappend "ON DELETE " . renderCascadeAction) onDelete- , foldMap (mappend "ON UPDATE " . renderCascadeAction) onUpdate+ [ foldMap (mappend " ON DELETE " . renderCascadeAction) onDelete+ , foldMap (mappend " ON UPDATE " . renderCascadeAction) onUpdate ] -- | An action that might happen on a deletion or update on a foreign key
persistent.cabal view
@@ -1,5 +1,5 @@ name: persistent-version: 2.11.0.0+version: 2.11.0.1 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>