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

feat: Add IF NOT EXISTS to type alter add statement #803

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

jpopesculian
Copy link
Contributor

@jpopesculian jpopesculian commented Aug 15, 2024

PR Info

  • Closes
  • Dependencies:
  • Dependents:

New Features

  • Adds an IF NOT EXISTS to type alter add statement

Bug Fixes

Breaking Changes

  • I changed the TypeAlterOpt::Add variant to incoporate if_not_exists. I decided to turn it into a struct with named fields to provide clarity on what the boolean means. It's not backwards compatible, but I would assume it would affect few users considering most people would use the TypeAlterStatement directly and not the underlying enum.

Changes

  • Adds if_not_exists to TypeAlterStatement
  • Adds if_not_exists to TypeAlterOpt
  • Refactors prepare_alter_type_opt for clarity and simplicity and to include IF NOT EXISTS

@tyt2y3 tyt2y3 changed the base branch from master to 0.31.x October 4, 2024 22:47
@tyt2y3 tyt2y3 changed the base branch from 0.31.x to master October 4, 2024 22:47
Copy link
Member

@tyt2y3 tyt2y3 left a comment

Choose a reason for hiding this comment

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

Thank you

@tyt2y3 tyt2y3 merged commit 0ac71eb into SeaQL:master Oct 4, 2024
10 of 13 checks passed
tyt2y3 added a commit that referenced this pull request Oct 5, 2024
* feat: Add  to type alter add statement

* Test

* Revert

---------

Co-authored-by: Chris Tsang <[email protected]>
Copy link

github-actions bot commented Oct 5, 2024

🎉 Released In 0.31.1 🎉

Thank you everyone for the contribution!
This feature is now available in the latest release. Now is a good time to upgrade!
Your participation is what makes us unique; your adoption is what drives us forward.
You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.

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