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
Fixed autoIncrement incrementBy/startWith support in MySQL, H2, HSQLDB, and MariaDB #3026
Conversation
@nvoxland Can you update the PR name to better describe the fix in context of automating release notes when you review this one please? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Changes improve handling of incrementBy and startWith attributes.
- New unit tests added.
- No additional testing required.
APPROVED
This change is breaking our liquibase version upgrade. I have a MySQL DB on which we had the incrementBy attribute in the changeset. Since this is a validation error now, removed the incrementBy attribute from changeset and now, liquibase fails with modified checksum error(Because the md5 is different in databasechangelog for this changeset prior to the removal). If I enable "runOnChange=true", that fails because the table already exists. Ideally, I would expect the incrementBy attribute removal shouldn't cause a checksum difference error if the validation error is introduced for this. Am I missing something? How to get past this error? |
@th3lon3w0lf it's been a while since your post, but what seems to work is:
For example:
|
Impact
Description
Mysql / MariaDB
Neither support specifying incrementBy, so that is now a validation error.
H2 / Hsql
In both databases, incrementBy and startWith were ignored in both createTable and addAutoIncrement changes. Both those should now be supported.
Things to be aware of
Things to worry about