Skip to content
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

Remove constraint addition from OpAlterColumn #530

Open
3 tasks
ryanslade opened this issue Dec 13, 2024 · 0 comments
Open
3 tasks

Remove constraint addition from OpAlterColumn #530

ryanslade opened this issue Dec 13, 2024 · 0 comments
Labels
breaking-changes breaking changes to pgroll
Milestone

Comments

@ryanslade
Copy link
Collaborator

Now that we have OpCreateConstraint we should remove the ability to add constraints via the OpAlterColumn type:

type OpAlterColumn struct {

Having the ability to create constraints in two ways is confusing and the older method of using OpAlterColumn only supports single column constraints.

We should remove the following constraint fields:

  • Check
  • References
  • Unique
@ryanslade ryanslade added the breaking-changes breaking changes to pgroll label Dec 13, 2024
@ryanslade ryanslade added this to the v1 milestone Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-changes breaking changes to pgroll
Projects
None yet
Development

No branches or pull requests

1 participant