-
Notifications
You must be signed in to change notification settings - Fork 301
Add NoAction to CascadeAction #1610
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
Add NoAction to CascadeAction #1610
Conversation
| -- | ||
| -- @since 2.11.0 | ||
| data CascadeAction = Cascade | Restrict | SetNull | SetDefault | ||
| data CascadeAction = Cascade | Restrict | SetNull | SetDefault | NoAction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the core change, all other changes are in support of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this adds a data constructor to an exported type, it is a breaking change, and needs a majoe bump
parsonsmatt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are great! Some version bounds and cabal files to update but I can get this out very soon
| -- | ||
| -- @since 2.11.0 | ||
| data CascadeAction = Cascade | Restrict | SetNull | SetDefault | ||
| data CascadeAction = Cascade | Restrict | SetNull | SetDefault | NoAction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this adds a data constructor to an exported type, it is a breaking change, and needs a majoe bump
persistent/ChangeLog.md
Outdated
| @@ -1,5 +1,10 @@ | |||
| # Changelog for persistent | |||
|
|
|||
| # 2.17.2.0 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # 2.17.2.0 | |
| # 2.18.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also don't forget to update cabal file please!
persistent-postgresql/ChangeLog.md
Outdated
| @@ -1,5 +1,10 @@ | |||
| # Changelog for persistent-postgresql | |||
|
|
|||
| # 2.14.1.0 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # 2.14.1.0 | |
| # 2.14.0.1 |
| , postgresql-simple:base | ||
| , postgresql-simple:template-haskell | ||
| , bytestring-lexing:base | ||
| , postgresql-simple-interval:persistent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this to avoid the upper-bound that this library has on persistent, which blocks the build.
|
hell yeah |
Before submitting your PR, check that you've:
fourmoluon any changed files (restyledwill do this for you, soaccept the suggested changes if it makes them)
.editorconfigandfourmolu.yamlfiles for details)After submitting your PR:
(unreleased)on the ChangelogThis PR adds NoAction as a CascadeAction, so that we can tag foreign keys with this cascade option.