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

Fix 5288 adds PostgreSql drop constraint #5289

Merged

Conversation

griffio
Copy link
Contributor

@griffio griffio commented Jun 7, 2024

fixes #5288

  • Added grammar DROP CONSTRAINT [ IF EXISTS ] constraint_name [ RESTRICT | CASCADE ]
    • moved higher in precedence as DROP COLUMN conflicts
  • Added fixture test

Note: Currently there is no way, at compile time, to verify that a named check constraints exist

@griffio griffio force-pushed the fix-5288-postgresql-drop-constraint branch from 8f115eb to 004db6a Compare June 12, 2024 06:56
ensure that DROP CONSTRAINT is higher than DROP COLUMN as would match first
consider constraint doesn't exist in table schema
@griffio griffio force-pushed the fix-5288-postgresql-drop-constraint branch from 004db6a to 3e3bc62 Compare July 9, 2024 12:04
@JakeWharton JakeWharton enabled auto-merge (squash) July 9, 2024 14:46
@JakeWharton JakeWharton merged commit a9c61fd into cashapp:master Jul 9, 2024
11 checks passed
@griffio griffio deleted the fix-5288-postgresql-drop-constraint branch July 9, 2024 15:04
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.

Unable to run ALTER TABLE <> DROP CONSTRAINT <> RESTRICT; when using postgresql
2 participants