yesodweb / persistent

Persistence interface for Haskell allowing multiple storage methods.
MIT License
467 stars 297 forks source link

Add keyAndEntityFieldsDatabase function to return key with migration only fields #1519

Closed josephsumabat closed 1 year ago

josephsumabat commented 1 year ago

This PR adds a version of the keyAndEntityFields function which includes MigrationOnly and SafeToRemove fields. We would like to make use of this in persistent-documentation in order to generate documentation for fields marked by those modifiers.

Before submitting your PR, check that you've:

After submitting your PR: