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

feat: drop constraint rule #280

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

MilkeeyCat
Copy link
Contributor

@MilkeeyCat MilkeeyCat commented Oct 21, 2024

I don't know many sql dialects but such syntax is at least supported by postgresql:
https://www.postgresql.org/docs/17/sql-altertable.html

DROP CONSTRAINT [ IF EXISTS ] constraint_name [ RESTRICT | CASCADE ]

Here's a little visual change:
image

@matthias-Q
Copy link
Collaborator

Can you add some tests please?

grammar.js Show resolved Hide resolved
@MilkeeyCat MilkeeyCat requested a review from matthias-Q October 22, 2024 16:43
@DerekStride DerekStride dismissed matthias-Q’s stale review October 22, 2024 16:58

Tests were added as requested

@DerekStride DerekStride merged commit dc2b8f5 into DerekStride:main Oct 22, 2024
4 checks passed
@MilkeeyCat MilkeeyCat deleted the feat/drop-constraint branch October 22, 2024 17:01
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.

3 participants