-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix CORE-3078 bug #931
Fix CORE-3078 bug #931
Conversation
Add custom drop default value statement for postgres.
Thanks for the pull request! We are currently very close to shipping version 3.8.1, and will evaluate your contribution for inclusion in the next release. |
@SteveDonie any estimates on when this can be merged? |
Hi @dmitriy-volkov ! Again thanks for the PR and your time! Would you be able to make update corresponding test: Thanks, Ronak |
Seems reasonable enough of a PR, will size at a RiskMed instead of RiskLow to allow QA time to add tests if needed. |
Overview
On PostgreSQL, the dropDefaultValue command only sets the default value to NULL rather than actually dropping it.
Looking at DropDefaultValueGenerator.java, there's no mention of PostgreSQL anywhere, so it ends up using the default "SET DEFAULT NULL".
Steps to Reproduce
\d
describe that table to see that it now has a default value of nullExpected Results
\d
describe that table to see that it has no default value.