Skip to content

Conversation

@kev1N916
Copy link

@kev1N916 kev1N916 commented Oct 10, 2025

PR Info

Closes #995

New Features

This pull request implements DROP COLUMN IF EXISTS for Postgres which is not supported by sea-query currently.

///
/// // SQL and Sqlite do not support DROP COLUMN IF EXISTS
/// ```
pub fn drop_column_if_exists<T>(&mut self, col_name: T) -> &mut Self
Copy link
Member

Choose a reason for hiding this comment

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

Should we implement polyfills for other backends to avoid a panic?
@tyt2y3

@kev1N916 kev1N916 force-pushed the feature/drop_column_if_exists branch from 4a713f7 to a9e3e43 Compare October 11, 2025 16:26
@kev1N916
Copy link
Author

@Huliiiiii I've made the changes.

@Huliiiiii Huliiiiii requested a review from tyt2y3 October 12, 2025 15:11
@Huliiiiii Huliiiiii requested a review from Expurple October 21, 2025 18:23
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 drop_column_if_exists

2 participants