Skip to content

Conversation

ryanslade
Copy link
Contributor

@ryanslade ryanslade commented Dec 12, 2024

Converts DROP TABLE statements in these forms:

DROP TABLE foo
DROP TABLE foo RESTRICT
DROP TABLE foo.bar
DROP TABLE IF EXISTS foo

These forms fall back to raw SQL:

DROP TABLE foo CASCADE

Part of #504

@ryanslade ryanslade changed the title Convert DROP INDEX SQL to pgroll operation Convert DROP TABLE SQL to pgroll operation Dec 12, 2024
@ryanslade ryanslade merged commit 51b2641 into main Dec 12, 2024
28 checks passed
@ryanslade ryanslade deleted the rs/sql2pgroll-drop-table branch December 12, 2024 13:21
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.

2 participants