Skip to content

Conversation

@mguinness
Copy link
Contributor

Closes #3682

Copilot AI review requested due to automatic review settings December 9, 2025 00:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #3682 by adding the CASCADE option to the SQL generated for CREATE EXTENSION commands in PostgreSQL migrations. The change ensures that when an extension is created, any required dependencies are automatically installed as well, which is consistent with PostgreSQL best practices for extension installation.

Key Changes

  • Modified GenerateCreateExtension method to append CASCADE; instead of just ; to the CREATE EXTENSION SQL statement

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@roji roji merged commit 7867fd8 into npgsql:main Dec 10, 2025
10 checks passed
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.

Add CASCADE when installing a PG extensions

2 participants