-
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
CORE-3594 Automatic dropping of default values on MS SQL #1003
Conversation
Thanks for the pull request and for including tests! Here’s what happens next: A member of the Liquibase team will take a look at your contribution and may suggest changes, additional tests, or provide other feedback. The PR will be prioritized according to our internal development and testing capacity. Thanks again! |
closes #CORE-3594 |
I see this was already in the backlog, so I am going to push this PR along internally. |
https://liquibase.jira.com/projects/CORE/issues/CORE-3594
Error Message During Column Drop with Default Value
{CODE}
RROR Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE TEST DROP COLUMN COL2: The object 'DF_GENERIC_ENTITY_COL2' is dependent on column 'COL2'.
{CODE}
Steps to Reproduce
{CODE}
<changeSet id="C2" labels="dropColumnWithDefaultValue>
{CODE}
2. Execute a Liquibase update to deploy C1 to a SQL Server database:
{CODE}
liquibase --changeLogFile=mychangelog.xml --labels=columnWithDefaultValue update
{CODE}
3. Execute a second Liquibase update to deploy C2:
{CODE}
liquibase --changeLogFile=mychangelog.xml --labels=dropColumnWithDefaultValue update
{CODE}
Expected Results
There is no error dropping the column.
Actual Results
The error identified earlier in the description is output during dropColumn execution.
Manual Test Criteria
Automated Test Criteria
┆Issue is synchronized with this Jira Bug by Unito
┆fixVersions: Community 4.x,Liquibase 4.3.0