Skip to content

Support CREATE INDEX IF NOT EXISTS in generic parser (#1142)#1146

Merged
gfx merged 1 commit intomasterfrom
gfx/fix_1142
Mar 4, 2026
Merged

Support CREATE INDEX IF NOT EXISTS in generic parser (#1142)#1146
gfx merged 1 commit intomasterfrom
gfx/fix_1142

Conversation

@gfx
Copy link
Contributor

@gfx gfx commented Mar 4, 2026

The generic parser didn't support CREATE INDEX IF NOT EXISTS, causing psqldef to fall back to the pgquery parser. This led to unnecessary foreign key constraint migrations due to differing constraintOptions representations between the two parsers (nil vs {false, false}).

close #1142 in favor of this PR.

The generic parser didn't support CREATE INDEX IF NOT EXISTS, causing
psqldef to fall back to the pgquery parser. This led to unnecessary
foreign key constraint migrations due to differing constraintOptions
representations between the two parsers (nil vs {false, false}).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gfx gfx added this pull request to the merge queue Mar 4, 2026
Merged via the queue into master with commit 0bb0d54 Mar 4, 2026
26 checks passed
@gfx gfx deleted the gfx/fix_1142 branch March 4, 2026 01:12
@sqldef-bot sqldef-bot bot mentioned this pull request Mar 4, 2026
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.

1 participant