Skip to content

Conversation

@mercury-kuba
Copy link
Contributor

@mercury-kuba mercury-kuba commented Dec 1, 2025

Before submitting your PR, check that you've:

  • Ran fourmolu on any changed files (restyled will do this for you, so
    accept the suggested changes if it makes them)
  • Adhered to the code style (see the .editorconfig and fourmolu.yaml files for details)

After submitting your PR:

  • Update the Changelog.md file with a link to your PR
  • Bumped the version number if there isn't an (unreleased) on the Changelog
  • Check that CI passes (or if it fails, for reasons unrelated to your change, like CI timeouts)

This PR adds NoAction as a CascadeAction, so that we can tag foreign keys with this cascade option.

--
-- @since 2.11.0
data CascadeAction = Cascade | Restrict | SetNull | SetDefault
data CascadeAction = Cascade | Restrict | SetNull | SetDefault | NoAction
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 is the core change, all other changes are in support of it.

Copy link
Collaborator

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

Copy link
Collaborator

@parsonsmatt parsonsmatt left a 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
Copy link
Collaborator

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

@@ -1,5 +1,10 @@
# Changelog for persistent

# 2.17.2.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# 2.17.2.0
# 2.18.0.0

Copy link
Collaborator

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!

@@ -1,5 +1,10 @@
# Changelog for persistent-postgresql

# 2.14.1.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# 2.14.1.0
# 2.14.0.1

, postgresql-simple:base
, postgresql-simple:template-haskell
, bytestring-lexing:base
, postgresql-simple-interval:persistent
Copy link
Contributor Author

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.

@parsonsmatt
Copy link
Collaborator

hell yeah

@parsonsmatt parsonsmatt merged commit 5413588 into yesodweb:master Dec 2, 2025
10 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