Skip to content

Allow Rendering of MigrationOnly Fields #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

prikhi
Copy link
Contributor

@prikhi prikhi commented May 29, 2025

Modify the render function to also render fields marked as MigrationOnly. These can only be documented with peristent's inline docs, not via this library.

Tested with both stack test & cabal test --constraint='persistent-2.15.1.0'

Modify the `render` function to also render fields marked as
`MigrationOnly`. These can only be documented with peristent's inline
docs, not via this library.
@@ -9,6 +9,7 @@ you can use string literals to write documentation for the entity itself. The st
| `id` | integer (64) | You can document the user's ID field. |
| `firstName` | string | The user's first name. |
| `active` | boolean | Whether or not the user is able to log in. |
| `sqlOnly` | string | You can only write inline docs for MigrationOnly fields |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will disappear if you run w/ persistent < 2.15.1.0, wasn't sure if I should include it or not

@parsonsmatt parsonsmatt merged commit 4be4293 into parsonsmatt:master May 30, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants