Skip to content

Conversation

@benjie
Copy link
Member

@benjie benjie commented Sep 30, 2020

Description

The existing @uniqueKey smart tag is a bit rubbish. Now we have infrastructure for @primaryKey and @foreignKey fake constraints, it makes sense to add @unique fake constraints too. This PR does that.

Fixes #664

Performance impact

Negligible.

Security impact

None.

Checklist

  • My code matches the project's code style and yarn lint:fix passes.
  • I've added tests for the new feature, and yarn test passes.
  • I have detailed the new feature in the relevant documentation.
  • I have added this feature to 'Pending' in the RELEASE_NOTES.md file (if one exists).
  • If this is a breaking change I've explained why.

@benjie
Copy link
Member Author

benjie commented Sep 30, 2020

Docs added: graphile/graphile.github.io@1cfa3b6

@benjie
Copy link
Member Author

benjie commented Sep 30, 2020

@uniqueKey should be officially deprecated.

@benjie benjie merged commit 5cd51b6 into v4 Sep 30, 2020
@benjie benjie deleted the view-unique-constraint branch September 30, 2020 11:30
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.

How to specify a unique constraint on a view ?

2 participants